From 23cf2277fc82a948482adf6f11ae132f58cf263e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 2 Mar 2016 21:31:26 +0100 Subject: build host u-boot when mkimage is not installed --- scripts/prereq.sh | 8 ++++++++ target/config/Config.in.tools | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/prereq.sh b/scripts/prereq.sh index 231d66655..e9391357e 100755 --- a/scripts/prereq.sh +++ b/scripts/prereq.sh @@ -462,6 +462,11 @@ if ! which m4 >/dev/null 2>&1; then host_build_m4=1 fi +host_build_mkimage=0 +if ! which mkimage >/dev/null 2>&1; then + host_build_mkimage=1 +fi + host_build_mksh=0 if ! which mksh >/dev/null 2>&1; then host_build_mksh=1 @@ -594,6 +599,9 @@ fi if [ $host_build_m4 -eq 1 ]; then printf "\t%s\n" "select ADK_HOST_BUILD_M4" >> $topdir/target/config/Config.in.prereq fi +if [ $host_build_mkimage -eq 1 ]; then + printf "\t%s\n" "select ADK_HOST_BUILD_U_BOOT" >> $topdir/target/config/Config.in.prereq +fi if [ $host_build_mksh -eq 1 ]; then printf "\t%s\n" "select ADK_HOST_BUILD_MKSH" >> $topdir/target/config/Config.in.prereq fi diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools index 4218eb1cc..391586100 100644 --- a/target/config/Config.in.tools +++ b/target/config/Config.in.tools @@ -77,10 +77,6 @@ config ADK_HOST_BUILD_U_BOOT bool default n -config ADK_HOST_BUILD_U_BOOT_GIT - bool - default n - config ADK_HOST_BUILD_U_BOOT_XTENSA bool default y if ADK_TARGET_ARCH_XTENSA -- cgit v1.2.3