Use "make <board>_defconfig" instead of "make <board>_config".

WARNING
This adjustment is not enough.
MAKEALL should parse defconfig files instead of boards.cfg.
This commit has not got this rework done yet.

Signed-off-by: Masahiro Yamada <yamad...@jp.panasonic.com>
---

 MAKEALL | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/MAKEALL b/MAKEALL
index 37ef71e..8781504 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -506,9 +506,9 @@ get_target_location() {
 
        set ${line}
 
-       CONFIG_NAME="${7%_config}"
+       CONFIG_NAME="${7%_defconfig}"
 
-       [ "${BOARD_NAME}" ] || BOARD_NAME="${7%_config}"
+       [ "${BOARD_NAME}" ] || BOARD_NAME="${7%_defconfig}"
 
        if [ $# -gt 5 ]; then
                if [ "$6" = "-" ] ; then
@@ -640,12 +640,20 @@ build_target() {
            MAKE=make
        fi
 
+       if [ "$target_arch" = aarch64 ]; then
+               target_arch_fixup=arm
+       else
+               target_arch_fixup=$target_arch
+       fi
+
+       MAKE="$MAKE ARCH=$target_arch_fixup"
+
        if [  "${output_dir}" != "." ] ; then
                MAKE="${MAKE} O=${output_dir}"
        fi
 
        ${MAKE} distclean >/dev/null
-       ${MAKE} -s ${target}_config
+       ${MAKE} -s ${target}_defconfig
 
        ${MAKE} ${JOBS} ${CHECK} all \
                >${LOG_DIR}/$target.MAKELOG 2> ${LOG_DIR}/$target.ERR
-- 
1.9.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to