From patchwork Tue May 27 06:27:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 352715 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 0F38C140084 for ; Tue, 27 May 2014 16:29:48 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 75FD34B782; Tue, 27 May 2014 08:29:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0+76xL74Q34Q; Tue, 27 May 2014 08:29:27 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E3F0EA7404; Tue, 27 May 2014 08:28:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 117CE4B77E for ; Tue, 27 May 2014 08:28:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pUDV-00WzfK2 for ; Tue, 27 May 2014 08:28:23 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by theia.denx.de (Postfix) with ESMTP id B56CF4B7A9 for ; Tue, 27 May 2014 08:28:08 +0200 (CEST) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile11) with ESMTP id s4R6Rk34029479; Tue, 27 May 2014 15:27:46 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili15) with ESMTP id s4R6RlB06854; Tue, 27 May 2014 15:27:47 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi13) id s4R6RlQd011340; Tue, 27 May 2014 15:27:47 +0900 Received: from poodle by lomi13.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id s4R6Rkj5011282; Tue, 27 May 2014 15:27:46 +0900 Received: from beagle.diag.org (beagle.diag.org [10.184.179.16]) by poodle (Postfix) with ESMTP id B91CE2743A5D; Tue, 27 May 2014 15:27:46 +0900 (JST) From: Masahiro Yamada To: u-boot@lists.denx.de Date: Tue, 27 May 2014 15:27:36 +0900 Message-Id: <1401172063-17281-8-git-send-email-yamada.m@jp.panasonic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1401172063-17281-1-git-send-email-yamada.m@jp.panasonic.com> References: <1401172063-17281-1-git-send-email-yamada.m@jp.panasonic.com> Cc: Tom Rini Subject: [U-Boot] [RFCv2b PATCH 07/14] MAKEALL: adjust for Kconfig X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Use "make _defconfig" instead of "make _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 --- 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