From patchwork Fri Feb 2 11:51:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 126634 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp564631ljc; Fri, 2 Feb 2018 03:51:35 -0800 (PST) X-Google-Smtp-Source: AH8x225klLQHYWUKmbCLvexM2n9ADzCeXiHQVPZem0z0ALjelcBGhWy++kW8N8cuZ1Ri6tcs9eAr X-Received: by 10.200.58.129 with SMTP id x1mr60297628qte.146.1517572295220; Fri, 02 Feb 2018 03:51:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517572295; cv=none; d=google.com; s=arc-20160816; b=KXwu+V09gocCnrdrVpfdY2JluCrgvgU9ILYgmWd1eQqYq2Zz1X19eKgzaDuGWxipQN C4eVd+ftRNG7G8bhyql9WygkHj28esfyBNgubkaKhW3UxZG7SdnehIpx9brIbMJZtG26 NVUV31eyewlfV94aT3e8AUBIqW+HU9WnGCvRjd23Xm0xW2dJhjAiOKugBIDIKJm+xLlR Dj1bnWWIoXVD1448QuBrkBbTYW5mKJNP9I23FsggSK6TgI02Gz1s+tfJq+8J1oT5Ilc9 Go+U8GBZrUSQz9clRerXC3fMNi5d7X+880VhAGKUyyZqMOcrpQY4GjXEXO1Ho46/Icyl azHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=6lNeWbHLkSu1+BriQs5hdSmrLqGh3JUH4R6Bp6dJNaI=; b=hCXi5NLsVxdKZdnrshQ0NoSxf3EpM1i7C/wIOdgbBX0NCcEZlrm8KRnIqYOTECGtFd QiwgUSStJevHNosMU9yKdhZ1fOAfHFNpP/q+dtdQQ7g16VZwff6HsmweqMTgNGJpptmN JfqatibWZDeL0Yf4weaSuNm4grofobjzylG1x7sG9Fwfkhz3hHWtVTtvRRB8KeTvzBK3 EP7FJtmb1IPeLyHTeiwRpdpzIJp2ib/LL4Nch97ZCTb6b0fwMuaXfV1OR8GWuVIspo/l FdNPQ9Is/yrSu3a3AznqLAgHhqXCozp5bUznCJS2oMmKy4T8KQtz8FNskCS8OfzMwEcF 4zkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id y187si637225qkb.402.2018.02.02.03.51.34; Fri, 02 Feb 2018 03:51:35 -0800 (PST) Received-SPF: pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linaro-uefi-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=linaro-uefi-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 52B4161787; Fri, 2 Feb 2018 11:51:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 9623461765; Fri, 2 Feb 2018 11:51:30 +0000 (UTC) X-Original-To: linaro-uefi@lists.linaro.org Delivered-To: linaro-uefi@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A5EE661765; Fri, 2 Feb 2018 11:51:27 +0000 (UTC) Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by lists.linaro.org (Postfix) with ESMTPS id A2A136174E for ; Fri, 2 Feb 2018 11:51:26 +0000 (UTC) Received: by mail-pl0-f66.google.com with SMTP id q17so3784217pll.1 for ; Fri, 02 Feb 2018 03:51:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cuQlesWaUWWt5LxmbEPjLIZdBvX/mrhv17sVU2igxmY=; b=bi/2EukoXCH0Cw6TXuixHlLRB+4rCimWGtVyaJzLh/6LwYqZzBiDZwlDWOdbf/jZhx /w3CjChUYZtc3U1nWkUGpirtizpCVd8ZllqHgdyjkgCyikB9C9Q4PDsJ6jffi2EOIwHW 4t0zxXdZwml1iiXXTj2TA/LKXcS4R8rulBOOLUpYzJDUben+AJhvBHlguopeCg20lS8Y qSo2A1T1abCFRR53WlVsQ6gTMu+QC/fjPUg2Kgh2NhWd1PUPU5ma85xNpR/gLvWpcNAZ y/E0jr8cSnHSM9b9aif3WOjOSqatgg2p9NBrbsiM0JcsbmsiAvOihnaK4qkcCMObjbqI cK+g== X-Gm-Message-State: AKwxytf5Jcphtqt1I1V/8mu0WdzHPxcgXKpeOGxHzzBspG/8N0wFJmtd tP1sVecbZEAcoSClWQBlDBGhm2/V9gCsoQ== X-Received: by 2002:a17:902:7c98:: with SMTP id y24-v6mr2455509pll.305.1517572285602; Fri, 02 Feb 2018 03:51:25 -0800 (PST) Received: from localhost.localdomain ([64.64.108.125]) by smtp.gmail.com with ESMTPSA id i187sm3790408pfc.99.2018.02.02.03.51.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Feb 2018 03:51:24 -0800 (PST) From: Haojian Zhuang To: linaro-uefi@lists.linaro.org, leif.lindholm@linaro.org, ard.biesheuvel@linaro.org Date: Fri, 2 Feb 2018 19:51:10 +0800 Message-Id: <1517572271-8564-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [Linaro-uefi] [PATCH 1/2] opteed-build: export ARCH for makefile X-BeenThere: linaro-uefi@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "For discussions about Linaro-related UEFI development. Not a substitute for edk2-devel." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linaro-uefi-bounces@lists.linaro.org Sender: "Linaro-uefi" In edk2-build.sh, ARCH is declared as BUILD_ARCH. Since we always build on x86, ARCH variable equals to X64. Then there's error when build OPTEE. Building opteed Trusted OS Target: AARCH64 Build: X64 Target: ARM Build: X64 CFG_ARM64_core=y CROSS_COMPILE_ta_arm64=aarch64-linux-gnu- CROSS_COMPILE=arm-linux-gnueabihf- CROSS_COMPILE_core=aarch64-linux-gnu- PROFILE=RELEASE PLATFORM=hikey PLATFORM_FLAVOR=hikey CFG_TEE_CORE_LOG_LEVEL=2 core/core.mk:10: core/arch/X64/plat-hikey/conf.mk: No such file or directory core/core.mk:12: core/arch/X64/X64.mk: No such file or directory core/core.mk:114: core/arch/X64/kernel/link.mk: No such file or directory mk/subdir.mk:151: lib/libutee/arch/X64/sub.mk: No such file or directory make: * No rule to make target 'lib/libutee/arch/X64/sub.mk'. Stop. So add "ARCH=arm" when build OPTEE. Signed-off-by: Haojian Zhuang --- opteed-build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opteed-build.sh b/opteed-build.sh index 702860e..63dafb0 100755 --- a/opteed-build.sh +++ b/opteed-build.sh @@ -94,7 +94,7 @@ function build_platform if [ $VERBOSE -eq 1 ]; then echo "Calling OP-TEE build:" fi - make -j$NUM_THREADS ${PLATFORM_BUILDFLAGS} + make ARCH=arm -j$NUM_THREADS ${PLATFORM_BUILDFLAGS} if [ $? -eq 0 ]; then # # Copy resulting images to UEFI image dir