|
@ -16,6 +16,41 @@ |
|
|
|
|
|
|
|
|
const SDECFG_TRG_TARDIBA ${target:-$SDECFG_TARGET} |
|
|
const SDECFG_TRG_TARDIBA ${target:-$SDECFG_TARGET} |
|
|
|
|
|
|
|
|
|
|
|
# helper functions |
|
|
|
|
|
get_target_choice() { |
|
|
|
|
|
cd target/$SDECFG_TARGET/$1 |
|
|
|
|
|
for x in $( ls -1 *.choice ); do |
|
|
|
|
|
grep -H "^# *Description *: " $x | tr ' ' '_' | |
|
|
|
|
|
sed -e 's,^[0-9][0-9]*-,,' \ |
|
|
|
|
|
-e 's,\.choice:#_*Description_*:_, ,' |
|
|
|
|
|
done |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
comment ' ' |
|
|
|
|
|
comment '- Target Hardware' |
|
|
|
|
|
|
|
|
|
|
|
# Hardware Vendor |
|
|
|
|
|
comment 'Vendor - Model - Product Number' |
|
|
|
|
|
choice SDECFG_TRG_TARDIBA_HW_VENDOR none none 'No Hardware Vendor specified' \ |
|
|
|
|
|
$( get_target_choice hardware ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$SDECFG_TRG_TARDIBA_HW_VENDOR" != "none" ] ; then |
|
|
|
|
|
|
|
|
|
|
|
# Hardware Model |
|
|
|
|
|
choice SDECFG_TRG_TARDIBA_HW_MODEL none none 'No Model specified' \ |
|
|
|
|
|
$( get_target_choice hardware/$SDECFG_TRG_TARDIBA_HW_VENDOR ) |
|
|
|
|
|
|
|
|
|
|
|
# Hardware P/N |
|
|
|
|
|
if [ "$SDECFG_TRG_TARDIBA_HW_MODEL" != "none" ] ; then |
|
|
|
|
|
choice SDECFG_TRG_TARDIBA_HW_PN none none 'No P/N specified' \ |
|
|
|
|
|
$( get_target_choice "hardware/$SDECFG_TRG_TARDIBA_HW_VENDOR/$SDECFG_TRG_TARDIBA_HW_MODEL" ) |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! -s $cfgtmpdir/tardiba.config.in ]; then |
|
|
if [ ! -s $cfgtmpdir/tardiba.config.in ]; then |
|
|
SDECFG_TRG_MNEMOSYNE=$( cat ./target/$SDECFG_TRG_TARDIBA/extends ) |
|
|
SDECFG_TRG_MNEMOSYNE=$( cat ./target/$SDECFG_TRG_TARDIBA/extends ) |
|
|
if ! perl ./target/$SDECFG_TRG_MNEMOSYNE/mnemosyne.pl "./target/$SDECFG_TRG_TARDIBA/pkgsel" TRG_TARDIBA \ |
|
|
if ! perl ./target/$SDECFG_TRG_MNEMOSYNE/mnemosyne.pl "./target/$SDECFG_TRG_TARDIBA/pkgsel" TRG_TARDIBA \ |
|
@ -26,6 +61,8 @@ if [ ! -s $cfgtmpdir/tardiba.config.in ]; then |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ -s $cfgtmpdir/tardiba.config.in ]; then |
|
|
if [ -s $cfgtmpdir/tardiba.config.in ]; then |
|
|
|
|
|
comment ' ' |
|
|
|
|
|
comment '- Target Options' |
|
|
. $cfgtmpdir/tardiba.rules.in |
|
|
. $cfgtmpdir/tardiba.rules.in |
|
|
. $cfgtmpdir/tardiba.config.in |
|
|
. $cfgtmpdir/tardiba.config.in |
|
|
else |
|
|
else |
|
|