summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2009-06-09 17:18:09 +0000
committerWolfram Sang <w.sang@pengutronix.de>2009-06-09 17:18:09 +0000
commita5cdc7f308e11b2d2c470dab5205a786c42edc9d (patch)
treec4451a46e69d982e25312f766149d27c27f8ae84 /bin
parent0dc7701574e9eacce4330085f502e179a16953fa (diff)
downloadptxdist-a5cdc7f308e11b2d2c470dab5205a786c42edc9d.tar.gz
ptxdist-a5cdc7f308e11b2d2c470dab5205a786c42edc9d.tar.xz
* ptxdist: only show u-boot-v2 in the menu if it is selected
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10665 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ptxdist8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/ptxdist b/bin/ptxdist
index f4cf49215..c185f5fff 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -42,11 +42,15 @@ menu_select() {
menu() {
local kernel_version="$(ptxd_get_ptxconf PTXCONF_KERNEL_VERSION)"
local u_boot_v2_version="$(ptxd_get_ptxconf PTXCONF_U_BOOT_V2_VERSION)"
+ declare -a u_boot_v2_string
local platform="$(ptxd_get_ptxconf PTXCONF_PLATFORM)"
local ptxconfig cmd
kernel_version="${kernel_version:-none}"
- u_boot_v2_version="${u_boot_v2_version:-none}"
+
+ if [ -n "${u_boot_v2_version}" ]; then
+ u_boot_v2_string=("u-boot-v2" "Configure U-Boot-v2 (${u_boot_v2_version})")
+ fi
ptxconfig="$(readlink -e "${PTXDIST_PTXCONFIG}")"
ptxconfig="${ptxconfig#${PTXDIST_WORKSPACE}/}"
@@ -69,7 +73,7 @@ menu() {
"menuconfig" "Configure Software Platform" \
"platformconfig" "Configure Hardware Platform" \
"kernel" "Configure Kernel (${kernel_version})" \
- "u-boot-v2" "Configure U-Boot-v2 (${u_boot_v2_version})" \
+ "${u_boot_v2_string[@]}" \
"--------------" "--------------------------------------------" \
"select" "Select Software Platform (${ptxconfig})" \
"platform" "Select Hardware Platform (${platform})" \