From patchwork Thu Mar 29 02:26:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Chong X-Patchwork-Id: 132549 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1191371ljb; Wed, 28 Mar 2018 19:26:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx49GPyiW1SFs4vWiDArcf5btuGnwrGQBxmbepbBmm401UxNBH6I5TySQFEK3pUhME0rUuKI9 X-Received: by 10.200.27.135 with SMTP id z7mr8842416qtj.294.1522290396901; Wed, 28 Mar 2018 19:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522290396; cv=none; d=google.com; s=arc-20160816; b=NECGWRSnxDR5/5lthmDP4AEcX5uWz9lTfQDfAbsGmt44RorIARocVtSnuZX6vHf++X 4br4aG2vL5AgtKQ7Aap9ohbnm1EFSzWqkJSFGHj+lVDsNatGOkeiw6zDkvJuuTCb/VoQ I8T2RKMktf9fevepXECzKGAjnurRLdV8iHY8oHEFFPyvQ3KfSEhPdwDbfvqi/Woi8GSR r6qfAO8CEY6ldoSBKHzsAyTVNhDVajSIICTGfyUwhTGhGtuEDwqiqxjYziIBzOKYz9Z9 bX8xdNF7KF3VWQq2GQyTR6IFJMC8J2H3AmJQG4ecErE6qUNzJnAUBAmxbpkxABDEYjma vjjw== 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:message-id:date:to:from:delivered-to :arc-authentication-results; bh=U31GletueTfC06a2YRBQDkrJnnOEJKYseO0XqmxtCy0=; b=bJr0U1+LZJgyPCafnZx3Yo0c11OL+ip+Du6cVcVIxnf+2122tBDG1uhMSlTJm/C+Lz gEr3oLSLqz0qvBbC6BgXUXDKKQVdjYE30OMWLF0wgH/cBZVjpSlkxnFuPaR9ZDTgTzXQ fbw/U1o/h1j0582Rq/6pzyF+Q1eoZttfEknvEt5oGo88KS1QtMC8FmcltH4ACl8O9Z9w zsUPfFOOGCEnxc8IUcZAu0bDsIKbhgx584nuUeBxeGAuFO1Ucx45oLGXkSFGJh56LRQ2 NkTpujZPVOlCgrldLerYbvWT/fhun1+bFlvV2Otqnq7kodoOeVn3+f7CkjmxmfUkW7O/ EuZA== 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 o184si3427765qkf.50.2018.03.28.19.26.36; Wed, 28 Mar 2018 19:26:36 -0700 (PDT) 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 86D636069A; Thu, 29 Mar 2018 02:26:36 +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 85DBA60641; Thu, 29 Mar 2018 02:26: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 93A7160668; Thu, 29 Mar 2018 02:26:28 +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 BEE2B60637 for ; Thu, 29 Mar 2018 02:26:27 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id z73so3966602wrb.0 for ; Wed, 28 Mar 2018 19:26:27 -0700 (PDT) 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=HDzZgyBHm9+jIZLXGuotuMgoAuxfI5IhB2SM/H8omk0=; b=JYWlV5iBPZl0wnwAW2zLdW75XLiKbcYoWmXByi5xMBV5Gv7tkrw9/zDoAlA9AnCLLA GKR497ReG9FZwePsxhFeY1N/IuZlHaeIhPquyfDOTljfjdVBY2d5PYMLvEVkKZ1SrIZq RfIedrA+xfuqpPeGE1bZnIV15V2Faswcsk6t+qgrMW6U9FWQv4wvdyHtGnuZy7jer0Sx TCo1HoJrK/2rvin1+rfjq4TlC6ZdVngscxlzndOpta1rSnX2h5K/BpXbcLVNIdi7LJZY +uNMiWJal5t1A9eA0LaIO9zApY2edKHL2i9oIrnF54UjbPSZA8MPAKkwb2czvbgvGUEO iQ5Q== X-Gm-Message-State: AElRT7FF5KC4QPXlHWDD1M/Z3wjKvCHnd7UTacUAEaiLmvbBLnevEYCn h1Cq4IPHPQXRkT4tdwsrjyRnXihD X-Received: by 10.223.133.6 with SMTP id 6mr4967672wrh.53.1522290386836; Wed, 28 Mar 2018 19:26:26 -0700 (PDT) Received: from hackbox.linaro.org ([81.128.185.36]) by smtp.gmail.com with ESMTPSA id t8sm873188wmc.20.2018.03.28.19.26.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Mar 2018 19:26:25 -0700 (PDT) From: Victor Chong To: leif.lindholm@linaro.org Date: Thu, 29 Mar 2018 03:26:16 +0100 Message-Id: <20180329022616.21218-1-victor.chong@linaro.org> X-Mailer: git-send-email 2.16.2 Cc: Victor Chong , linaro-uefi@lists.linaro.org Subject: [Linaro-uefi] [PATCH v2] opteed-build.sh: Copy images to UEFI dir 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" atf-build.sh expects TOS binaries to be available in the UEFI image dir so copy them there. Fixes: 0c485dab ("opteed-build.sh: Remove copy of images to UEFI dir") Signed-off-by: Victor Chong --- opteed-build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.16.2 diff --git a/opteed-build.sh b/opteed-build.sh index 40fb844..6840484 100755 --- a/opteed-build.sh +++ b/opteed-build.sh @@ -105,6 +105,19 @@ function build_platform 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`" + DESTDIR="$EDK2_DIR/Build/$PLATFORM_IMAGE_DIR/$BUILD_PROFILE/FV/" + COREDIR="out/$TOS_ARCH-plat-$TOS_PLATFORM/core" + if [ $VERBOSE -eq 1 ]; then + echo "Copying TOS binaries to '$DESTDIR'" + CPFLAGS="-v" + else + CPFLAGS="" + fi + for file in $COREDIR/{"$TOS_BIN","$TOS_BIN_EXTRA1","$TOS_BIN_EXTRA2"}; do + if [ -f "$file" ]; then + cp -a $CPFLAGS $file "$DESTDIR" + fi + done else return 1 fi