diff mbox

[U-Boot,RFCv2b,07/14] MAKEALL: adjust for Kconfig

Message ID 1401172063-17281-8-git-send-email-yamada.m@jp.panasonic.com
State RFC
Headers show

Commit Message

Masahiro Yamada May 27, 2014, 6:27 a.m. UTC
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 <yamada.m@jp.panasonic.com>
---

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

Patch

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