Browse Source

build host u-boot when mkimage is not installed

Waldemar Brodkorb 8 years ago
parent
commit
23cf2277fc
2 changed files with 8 additions and 4 deletions
  1. 8 0
      scripts/prereq.sh
  2. 0 4
      target/config/Config.in.tools

+ 8 - 0
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

+ 0 - 4
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