summaryrefslogtreecommitdiff
path: root/scripts/create-menu
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-03-10 08:18:06 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-03-10 08:18:31 +0100
commitaaad05868286671ad90510e5c9d987abfc82fed1 (patch)
tree1252a7672e7132981ee63cbf9a8764b27d2246d3 /scripts/create-menu
parent1cc62e5994359dfd7741031fec98d072f804c2cf (diff)
make parts of the menu visible if architecture is choosen to guarentee defaults are set right
Diffstat (limited to 'scripts/create-menu')
-rwxr-xr-xscripts/create-menu5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/create-menu b/scripts/create-menu
index e0552d44b..f9c3a1b93 100755
--- a/scripts/create-menu
+++ b/scripts/create-menu
@@ -15,7 +15,7 @@ printf "source target/config/Config.in.system.choice\n" >> target/config/Config.
if [ -d "$topdir/tasks" ];then
printf "# autogenerated via scripts/create-menu\n" > $topdir/target/config/Config.in.tasks
printf "choice\n" >> $topdir/target/config/Config.in.tasks
- printf "prompt \"Task\"\n\n" >> $topdir/target/config/Config.in.tasks
+ printf "prompt \"Task\" if !ADK_TARGET_CHOOSE_ARCH\n\n" >> $topdir/target/config/Config.in.tasks
cat $topdir/tasks/* >> $topdir/target/config/Config.in.tasks 2>/dev/null
printf "\nendchoice\n\n" >> $topdir/target/config/Config.in.tasks
fi
@@ -80,6 +80,9 @@ cat > $topdir/target/config/Config.in.arch.choice << EOD
choice
prompt "Architecture"
+config ADK_TARGET_CHOOSE_ARCH
+ bool "choose architecture"
+
EOD
for arch in $(cat $topdir/target/arch.lst);do