From patchwork Tue Nov 27 19:12:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 1003981 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="HBJZjfGY"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="IS+AiT3J"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 434D2q0R6rz9s1c for ; Wed, 28 Nov 2018 06:13:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=PuMego1X5Jc20HQ4OTWg8LkqKhs2ohmoRDMstPyLt5M=; b=HBJ ZjfGYQktfxt1MtKiEB1O/8KDwG+PCra82Tv2XyYWyzBAhfA2yN3aVI3H2Jj6frzf5//sN/VzHIXtS HUP604I8saWwVNyzXsHrf1kTSYyDd4PaUd37Zk8qRE7OSHcFmRhku21KejXqLimO+EYrXLh7/WSek tYIL7FFENTm0G5/pu6fBImhzWZKjuFcowcFDg7z+bAMgxCqgPke+UXXIfwES5JEgax1A8OtWd2rEm 8Cahm/vdlFYU2KSIqfzNjc3JF970NC91iEC21urnSSpQOuF2X6ccduHIO/kMax9a+QmFHXvMhAubT vWO6NS2H4xvpUyT/oFgTMH6N+59oUhA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRinQ-0003GA-RH; Tue, 27 Nov 2018 19:13:20 +0000 Received: from smtprelay2.synopsys.com ([198.182.60.111] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRinJ-0002QW-0Z for linux-snps-arc@lists.infradead.org; Tue, 27 Nov 2018 19:13:19 +0000 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id A9FEF10C0DAB; Tue, 27 Nov 2018 11:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1543345981; bh=tfOrSQJ87rND5pmvFArlMrfs56cUMbjJC72xfZaOxbk=; h=From:To:Cc:Subject:Date:From; b=IS+AiT3JgtuISL0mdOmX6v81AwNi6YDtWoicQlGejAXILeIC4LnBLKcBlN1kJHjxQ vI5cmIAZ4liqXngtDwOA+pAjZN7VewiT9tkqx6mn+laiwbCJUIoxvWfkipO2EsNWmj DRrDToY7h8voPvo+A3RkXoIfjTfA7+sKkEujREUO2NECTt/VwMG/d3TF5bl+2rFJde rujBEfyKOPhrVsTjSI7ytrLrneVKT0EYmVDzVDrNr/1VFwzRzQ861rU792er+ND6yn dr1nqMzaMbc28YdOaMoP41EHy2XXQUP4FhZzkn8LcTQbjy1hE2k3s+BpEHrS2V3OzW km8iCUlq1cLyA== Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 8500D5D06; Tue, 27 Nov 2018 11:12:57 -0800 (PST) From: Alexey Brodkin To: openembedded-core@lists.openembedded.org Subject: [PATCH] u-boot-tools: Improve build preparation Date: Tue, 27 Nov 2018 22:12:55 +0300 Message-Id: <20181127191255.39052-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181127_111313_114627_B9E23896 X-CRM114-Status: GOOD ( 10.49 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Tom Rini , Martin Jansa , Otavio Salvador , Andrea Galbusera , Alexey Brodkin , Khem Raj , Richard Purdie , linux-snps-arc@lists.infradead.org, Ross Burton MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Even though we're not going to build here real U-Boot binary it is still required to "configure" U-Boot to get get to the tools building. We used to use "sandbox_defconfig" for that purpose but since U-Boot v2018.11 it started to cause problems [1] due to [2]. So to have less dependencies let's create super minimalistic configuration which is good enough to allow us to run "make tools". [1] http://errors.yoctoproject.org/Errors/Details/202185/ [2] http://git.denx.de/?p=u-boot.git;a=commitdiff;h=a4958a71017fb142542f977c843c5fce769fc6ea Signed-off-by: Alexey Brodkin Cc: Richard Purdie Cc: Otavio Salvador Cc: Martin Jansa Cc: Andrea Galbusera Cc: Ross Burton Cc: Tom Rini Cc: Marek Vasut --- meta/recipes-bsp/u-boot/u-boot-tools_2018.11.bb | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/meta/recipes-bsp/u-boot/u-boot-tools_2018.11.bb b/meta/recipes-bsp/u-boot/u-boot-tools_2018.11.bb index 127c4c15d1..d1cfea05f5 100644 --- a/meta/recipes-bsp/u-boot/u-boot-tools_2018.11.bb +++ b/meta/recipes-bsp/u-boot/u-boot-tools_2018.11.bb @@ -18,14 +18,11 @@ EXTRA_OEMAKE_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" H EXTRA_OEMAKE_class-nativesdk = 'CROSS_COMPILE="${HOST_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" STRIP=true V=1' do_compile () { - oe_runmake sandbox_defconfig - - # Disable CONFIG_CMD_LICENSE, license.h is not used by tools and - # generating it requires bin2header tool, which for target build - # is built with target tools and thus cannot be executed on host. - sed -i "s/CONFIG_CMD_LICENSE=.*/# CONFIG_CMD_LICENSE is not set/" .config - - oe_runmake cross_tools NO_SDL=1 + # Create the simplest configuration which is just enough + # to get to the building of tools. + echo "CONFIG_SYS_TEXT_BASE=0" > .config + oe_runmake olddefconfig + oe_runmake cross_tools } do_install () {