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 From patchwork Fri Feb 2 11:51:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 126635 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp564873ljc; Fri, 2 Feb 2018 03:51:55 -0800 (PST) X-Google-Smtp-Source: AH8x226PedyWaPzX0uNsXR2a7j9kNF/SZ1a5dJXnzcsInWunQP+257ngM8ERTQIB0rFmXGYEftTS X-Received: by 10.200.53.2 with SMTP id y2mr4183963qtb.191.1517572315575; Fri, 02 Feb 2018 03:51:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517572315; cv=none; d=google.com; s=arc-20160816; b=xVuBrAws23sfekJ9YWfluTCVBqOEDrVhStjalhkZ+AzsIbdVe9KAknY91WJNKrmW0H ZAR+72xepdGjDYBl44CNLlqUAQlD9WfcXS65SCmd2J68Gjoe/ZxLvxrtXWsV9A9pl9fs H4kv19+v4jSfTAduF/0O8pvNXEanwhGhrdpWO+Dptvlt0n8nZ44GtwNu9bw1pjPuiP9Y DcLJutr4X+KCq3/1TQDZ309gsePP4c5mAxiGlDg3GJoiZqI/6oCmCkMMXYf6gYYGnG45 gysmVIDwq89qxJ3XloTiM1xFYlc1ikML/TMVF6OO5Y8g5RyVA9Mt6GUBpxnwra7+pXeB Mm4A== 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:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=sEqNhXux8wFfdsG3RkR67NVXTCR0s/woBlZrFnvBgqc=; b=FAGXjqo2RVDlWv4SdiT5kKzaq1GMkhop69m/lTrfKtq6+56ZdQxqarc1viLhaN3WvY IKWCD7kOWoj9qYXBTxpJvLP+Ioq5f/vRzMyPZFma4YIMQ5u3tj7dnOjevmrCT/TquNEl jU8G/O+qPzM9+JXKyewyOETYZpNfMNnhHrv16DVWxkShHxT1sqAvU9HIAX3LZ+3KLuNl IQhLA1IbW3PLNnVNw6+tLuFlbnISbC0S8OYKVitQfTIaxUXXdB4Cn9M7Kbk0THo89xkM suyio5N1CtLV6ASuEOdW8jb7T8rRVlgBZrcA6J7yrS7+tdzbVqM8szc+0zkdgpYYR9II kiqg== 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 g129si1197253qkd.302.2018.02.02.03.51.55; Fri, 02 Feb 2018 03:51:55 -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 39BB661789; Fri, 2 Feb 2018 11:51:55 +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 EB61961775; Fri, 2 Feb 2018 11:51:51 +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 E182D6177C; Fri, 2 Feb 2018 11:51:48 +0000 (UTC) Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by lists.linaro.org (Postfix) with ESMTPS id 37A6D61785 for ; Fri, 2 Feb 2018 11:51:31 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id x25so1331261pge.3 for ; Fri, 02 Feb 2018 03:51:31 -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:in-reply-to :references; bh=hjkqjVYg/ooI8nsBfOEuum4hMXYJ1wsD0Onsr5ba214=; b=EcYoJ1jv6XNOYlHjoaH/K2mk3u7kPlglZOFIVToE2m3x+JQ5D1IaPWY++0Ek+Q7VyX hUQMKsbDZFnCx7qV5/J5ato6PV10R4yKHYd74F9wXKqOcOAiZCvPo3xOUU2AuVfRGLPM zWfBzfRk7c3xSHLe2PWdJWRk5F7kSEe31FtICyAqhOJKsRxV0xdBNP4Zqe28/67KYTuk 06tbOpVsip1xYFJ4WQ0dPFOoFhLZ+J7esIhaE/nMwgTRGpE6xXHsiJ3VZ2w2GFS6e2Q3 PiSH1zUggZIFE7vyU/ceV9P7jIeOZ+HW4M937yBGU7eQKQyfB+RXZSfWQXlJoE57f2qy nvrw== X-Gm-Message-State: AKwxytezeBI53ZUYTFE04wp9bC4f4mAPExShYBDdWX/LYAYcZw02JnJa vCyzMaxBeoqJGKFmm/CJnXBgO2Gole9lh2xs X-Received: by 10.99.139.196 with SMTP id j187mr1626486pge.188.1517572290165; Fri, 02 Feb 2018 03:51:30 -0800 (PST) Received: from localhost.localdomain ([64.64.108.125]) by smtp.gmail.com with ESMTPSA id i187sm3790408pfc.99.2018.02.02.03.51.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Feb 2018 03:51:29 -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:11 +0800 Message-Id: <1517572271-8564-2-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517572271-8564-1-git-send-email-haojian.zhuang@linaro.org> References: <1517572271-8564-1-git-send-email-haojian.zhuang@linaro.org> Subject: [Linaro-uefi] [PATCH 2/2] edk2-platforms.config: build ATF & OPTEE for hikey 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" Add content to build ATF & OPTEE for HiKey platform. Signed-off-by: Haojian Zhuang --- edk2-platforms.config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/edk2-platforms.config b/edk2-platforms.config index 5c09afe..8ef82d1 100644 --- a/edk2-platforms.config +++ b/edk2-platforms.config @@ -106,6 +106,20 @@ ARCH=AARCH64 LONGNAME=HiKey DSC=Platform/Hisilicon/HiKey/HiKey.dsc ARCH=AARCH64 +BUILD_ATF=yes +UEFI_BIN=BL33_AP_UEFI.fd +UEFI_IMAGE_DIR=HiKey +SCP_BIN=Platform/Hisilicon/HiKey/mcuimage.bin +ATF_SPD=opteed +TOS_BIN=tee-pager.bin +TOS_PLATFORM_FLAVOR=hikey +BUILD_TOS=yes +# Uncomment this to use UART0 as the EDK2 console +#BUILDFLAGS=-DSERIAL_BASE=0xF8015000 +# Uncomment this to use UART0 as the ARM Trusted Firmware console +#ATF_BUILDFLAGS=CONSOLE_BASE=PL011_UART0_BASE CRASH_CONSOLE_BASE=PL011_UART0_BASE +# Uncomment this to use UART0 as the OP-TEE Trusted OS console +#TOS_BUILDFLAGS=CFG_CONSOLE_UART=0 [d02] LONGNAME=Hisilicon D02