#! /usr/bin/env tclshcpp
# $Id: setup_packages 1146 2019-05-05 06:25:13Z mueller $
#
# pkg_mkIndex uses tclLog to write, which by default writes to stderr
# this is 'make -s' unfriendly, so redefined tclLog to use plain puts

proc tclLog args {
  puts {*}$args
}

pkg_mkIndex -verbose ../lib \
            librlinktpp.so \
            librusbtpp.so \
            librutiltpp.so \
            librwxxtpp.so
#
pkg_mkIndex -verbose rutil    *.tcl
pkg_mkIndex -verbose rlink    *.tcl
pkg_mkIndex -verbose rbtest   *.tcl
pkg_mkIndex -verbose rbmoni   *.tcl
pkg_mkIndex -verbose rbbram   *.tcl
pkg_mkIndex -verbose rbs3hio  *.tcl
pkg_mkIndex -verbose rbemon   *.tcl
pkg_mkIndex -verbose rbsysmon *.tcl
#
pkg_mkIndex -verbose rw11     *.tcl
pkg_mkIndex -verbose rw11util *.tcl
#
# each package in following section should be also included in regmap.tcl
pkg_mkIndex -verbose ibd_deuna  *.tcl
pkg_mkIndex -verbose ibd_dl11   *.tcl
pkg_mkIndex -verbose ibd_dz11   *.tcl
pkg_mkIndex -verbose ibd_ibmon  *.tcl
pkg_mkIndex -verbose ibd_ibtst  *.tcl
pkg_mkIndex -verbose ibd_lp11   *.tcl
pkg_mkIndex -verbose ibd_m9312  *.tcl
pkg_mkIndex -verbose ibd_pc11   *.tcl
pkg_mkIndex -verbose ibd_rhrp   *.tcl
pkg_mkIndex -verbose ibd_rk11   *.tcl
pkg_mkIndex -verbose ibd_rl11   *.tcl
pkg_mkIndex -verbose ibd_tm11   *.tcl
#
pkg_mkIndex -verbose tst_mig      *.tcl
pkg_mkIndex -verbose tst_rlink    *.tcl
pkg_mkIndex -verbose tst_sram     *.tcl
