From patchwork Wed Jan 31 17:27:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Chong X-Patchwork-Id: 126379 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp933838ljc; Wed, 31 Jan 2018 09:28:28 -0800 (PST) X-Google-Smtp-Source: AH8x2279eTYoKswA2Mije5OjtEKv0XX7Uw9UOKfyJciakDDFIoXUnM8iy1eQhB9h+ih1tv0SqNeN X-Received: by 10.55.192.202 with SMTP id v71mr46793176qkv.294.1517419708081; Wed, 31 Jan 2018 09:28:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517419708; cv=none; d=google.com; s=arc-20160816; b=lYenBUnr+NWNKusZyuxsGdN/1SzNP8gmrIaboD3aJuBBI2HZfUKTMEbxqjoKUtA2B6 m0NaCduggOk/vWHz1f5MvXtgmukPpGz+dXR5nqLor55pP9gEy/2pXUmkWhktKTiBVEd/ H7u828cDGxncNHiCrD8Jg+vxBjK9q/tB8J+LL3hNVEE1gXa+dGOsOLW8xvJs9ka3uF8L kEtFUJ6cIQpRRsNrZhwWSakVAi3BhCoiU1pZP83Gp3ETaaYvCs30ncsVfPN/U3ZCxLo+ qqYKklcf+tHetXDPiD0Gxp+DBjXFWgW4NPEtGe5WRrukRRwXzuUFfPL95XxlwAedw07w Z1gA== 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:cc:references:in-reply-to:message-id :date:to:from:delivered-to:arc-authentication-results; bh=zcj5g58fbLP/SmMVbdPk3lawzIYKgKB98Wrfp5/aHTI=; b=Am67YHBRinLPMA7L4wFFm0wXhdgtQrzLxKfo3F4Qkpv9Gt35/ckhuf/eqM0XLS6NdZ /nM0t5GqnKj1IBlfC/RKUiehSUyT/Kx42YP/+xpK/ot702rGjs4vZ6q3rsu2ViXzN5cf ZBSkqjYlKke2euxLwLoSiGyTzI5UXyGJHOplJZ9RghyQbRsIgk/cLr1VRu+mGmKNlFF+ o5lu4qUQa7VsPnuWEMag6WHfXSjy1U3UewAtcqh5iwc1yPUqVxWL2KWCza3/MOEgIfhs wplLUhTDKbOYRpTRJKhBxvFM7q4HwsyHrRfPW1iKjMLXXE3sXWzKhw2M36MIX9jvzPI6 lbZg== 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 5si2662075qtn.177.2018.01.31.09.28.27; Wed, 31 Jan 2018 09:28:28 -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 C164F61732; Wed, 31 Jan 2018 17:28:27 +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_H2 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 ABFF16151A; Wed, 31 Jan 2018 17:28:23 +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 F1A186151A; Wed, 31 Jan 2018 17:28:20 +0000 (UTC) Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by lists.linaro.org (Postfix) with ESMTPS id 84733616DA for ; Wed, 31 Jan 2018 17:28:09 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id t94so4351296wrc.5 for ; Wed, 31 Jan 2018 09:28:09 -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=bO/4TTdfuK3098CXLQZwI3hk5A6J/1Zj8SPMV08Z6pI=; b=nBoiodlf2OKX9dW58NFzGX9eXfU5hNhP5I5bThut/jCKTNAtfm+mQrfg1jMkEJzU6B b2V1JvFi4/8Nf8khrODJGVTQygxzFmsNqoZ7cjszcrjAyxQwJKl1C7LUA6gozhcTV4Cs u1a4MTConrTR5/nBfL02C9v706+qxhQLC3lq4VnZBGiDXmHcdPBkI4wmoKWYhS9BIlkQ Icb9Bh4ZC2pwB0vYFo7lTVLV5p6hph9z7wieWoq0Y34N3o5N/7pvj5AcXbCxj4vVSDqM hE2DzCzFep6H12Y8Q8Awx/abebFeslkiG2R+n1UbbylxHYnc+AC9SJ1zItlLDJTpHljP hcyw== X-Gm-Message-State: AKwxytcapIn+/zXoL9ispxFOXfM0juwN62l2uHbAabi3fiWVUExvmxyV t4A8onCaNfTppQmSNpp9KLJOEhuDZ+R6Jw== X-Received: by 10.223.139.11 with SMTP id n11mr8811067wra.91.1517419688701; Wed, 31 Jan 2018 09:28:08 -0800 (PST) Received: from hackbox.linaro.org ([81.128.185.36]) by smtp.gmail.com with ESMTPSA id x135sm208641wmf.35.2018.01.31.09.28.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Jan 2018 09:28:07 -0800 (PST) From: Victor Chong To: leif.lindholm@linaro.org Date: Wed, 31 Jan 2018 17:27:42 +0000 Message-Id: <20180131172743.15875-2-victor.chong@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180131172743.15875-1-victor.chong@linaro.org> References: <20180131172743.15875-1-victor.chong@linaro.org> Cc: Victor Chong , linaro-uefi@lists.linaro.org Subject: [Linaro-uefi] [PATCH 1/2] atf, opteed: Support BL32_EXTRA1 and BL32_EXTRA2 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" Signed-off-by: Victor Chong --- atf-build.sh | 14 ++++++++++++-- opteed-build.sh | 4 ++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/atf-build.sh b/atf-build.sh index 65d4dbc..21a7645 100755 --- a/atf-build.sh +++ b/atf-build.sh @@ -67,7 +67,7 @@ function build_platform echo "PLATFORM_BUILDFLAGS=$PLATFORM_BUILDFLAGS" fi - unset BL30 BL31 BL32 BL33 + unset BL30 BL31 BL32 BL32_EXTRA1 BL32_EXTRA2 BL33 BL30="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o scp_bin`" if [ $ATF_BUILDVER -gt 1 ]; then unset SCP_BL2 @@ -100,9 +100,17 @@ function build_platform SPD="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o atf_spd`" TOS_BIN="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_bin`" + TOS_BIN_EXTRA1="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_bin_extra1`" + TOS_BIN_EXTRA2="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_bin_extra2`" if [ X"$TOS_BIN" != X"" ]; then BL32=$WORKSPACE/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/$TOS_BIN fi + if [ X"$TOS_BIN_EXTRA1" != X"" ]; then + BL32_EXTRA1=$WORKSPACE/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/$TOS_BIN_EXTRA1 + fi + if [ X"$TOS_BIN_EXTRA2" != X"" ]; then + BL32_EXTRA2=$WORKSPACE/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/$TOS_BIN_EXTRA2 + fi if [ X"$SPD" != X"" ] && [ X"$BL32" != X"" ]; then # @@ -149,7 +157,7 @@ function build_platform ;; esac - export BL30 BL31 BL32 BL33 + export BL30 BL31 BL32 BL32_EXTRA1 BL32_EXTRA2 BL33 echo "BL30=$BL30" if [ $ATF_BUILDVER -gt 1 ] && [ X"$BL30" != X"" ]; then @@ -158,6 +166,8 @@ function build_platform fi echo "BL31=$BL31" echo "BL32=$BL32" + echo "BL32_EXTRA1=$BL32_EXTRA1" + echo "BL32_EXTRA2=$BL32_EXTRA2" echo "BL33=$BL33" echo "$SPD_OPTION" echo "BUILD_TYPE=$BUILD_TYPE" diff --git a/opteed-build.sh b/opteed-build.sh index 702860e..ac9a9cb 100755 --- a/opteed-build.sh +++ b/opteed-build.sh @@ -100,10 +100,14 @@ function build_platform # Copy resulting images to UEFI image dir # TOS_BIN="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_bin`" + TOS_BIN_EXTRA1="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_bin_extra1`" + TOS_BIN_EXTRA2="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_bin_extra2`" if [ $VERBOSE -eq 1 ]; then echo "Copying '$TOS_BIN' to '$EDK2_DIR/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/'" fi cp -a out/arm-plat-"$TOS_PLATFORM"/core/"$TOS_BIN" "$EDK2_DIR/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/" + cp -a out/arm-plat-"$TOS_PLATFORM"/core/"$TOS_BIN_EXTRA1" "$EDK2_DIR/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/" + cp -a out/arm-plat-"$TOS_PLATFORM"/core/"$TOS_BIN_EXTRA2" "$EDK2_DIR/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/" else return 1 fi