From patchwork Wed Mar 28 07:05:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Chong X-Patchwork-Id: 132514 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp120279ljb; Wed, 28 Mar 2018 00:07:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/vsP6rP4RYp35ihPkjj/2aZ/aOUI/LCYU9luvoXB/VwE/XkZHF2vw4CTVqmbQGyTWT4Ve3 X-Received: by 10.200.28.90 with SMTP id j26mr3567611qtk.188.1522220834504; Wed, 28 Mar 2018 00:07:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522220834; cv=none; d=google.com; s=arc-20160816; b=JRANf/bAaqT8ZRh3AQ75/oBWYnRf20CwYIlpM3we+M0tn4I2xJxSNztqMPhl1v5ULM rjV70ngJrMw+dbmJAyRbl1jcZ939Bm6VlejIJki8S0/i5/F9xZU9CAyqC5eKCIVOdMEQ FQ4+VV9s1M+KnpbIe4aZH00JiOhZTcIKDqJFNNg4DX+zaNeIor/6ZR3llzB9tIiiL2Sh oj6mao/qbBN3sf2G/hSZIp0jgHHIwZrn2sk+MILCwf27+SivNuyWjtQlTJydPVTEej1j fIqH2nZEu8LXnL6TiZ8k/1ei0+V4BH5R/sO09ZIfawBgDfN5gHE9xKz1+NHXsbape+Bj XG8A== 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=Fao0wi1c7do8jgQcosoojVtw56YmcftFnsSNzDVPqgg=; b=H9Y4EsfAu9aMpUm7TeBfKn7CPw+5G4ij9oATev/dT5FS/yW1zOHY6UHTqwKaJqOhwh bMfvgy9TROfnDUPLKPM5AK0g/9qalDAH+qLNYGKl6A+82KmDtTATNfGRq8rpqTZo2yac cEPn0PvpCJoR/ASGN1lzQwsyC++H4yFn2nrG5c3pThk1+4ndnd2NO3y+dM2Te9Ey82kf wMywRKQsiJP7ZrdXQEv9LvlJRf+YgbcAYNnvTAmNBlOxEQS1XVTQ6vYgQLCZxyrA7Qw8 FoEczh0Ykr9oOgagPrGSkC4mBk0nS+XocdFEng6hEXzWgeSJ4NtAywlXgTweYXvlT0op m5JQ== 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 o184si1268999qkf.50.2018.03.28.00.07.12; Wed, 28 Mar 2018 00:07:14 -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 ADB74640EE; Wed, 28 Mar 2018 07:07:12 +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 0F235640BF; Wed, 28 Mar 2018 07:07:03 +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 9C5AF640C2; Wed, 28 Mar 2018 07:07:00 +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 73F7A64040 for ; Wed, 28 Mar 2018 07:06:59 +0000 (UTC) Received: by mail-wr0-f196.google.com with SMTP id z8so1162472wrh.7 for ; Wed, 28 Mar 2018 00:06:59 -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=p3rDvKlhl5GgMl1YgKJxAcEkqZkaWQGO/0o4q2J36Po=; b=fXAeyYukaUS6BEca4NM3zIkIo4dWtoghhfxw0xD5atyraDq8rdkyrjDerZ5lWWDAec I5q5Z0QOMP2AY6TogVhWI1F5PE178uzpLHaz4OdJieultUx4N9LJgb2d59kCYQEP7P0F YQrzgAsIYS/78rISKEestU2xofu0Egv0v5Ij0h5G4JMBpjCG5KusdLw3uPM2u8ubuvu+ uqj5TBBqzcka0zRdNIDAkxuFHNu4L5PpsTW9n2fkjRbk0yIYYsF/dfRA2yzMa9lhVimo 5yTmocP4ifsNBpYKgJfP724i1ixDn60pdsF44McgHf5k07a8QRd19Fs6NrwptEOnrkbl ZHeA== X-Gm-Message-State: AElRT7E1P3sjf+Wk5Q5hTiseWPD13OXsm5AP8SadS0Vaf+mRJrFYhHC0 uglnaQGrMc8/OKdzECG0WNGPxt/bJFlMZw== X-Received: by 10.223.136.24 with SMTP id d24mr1914928wrd.127.1522220818572; Wed, 28 Mar 2018 00:06:58 -0700 (PDT) Received: from hackbox.linaro.org ([81.128.185.36]) by smtp.gmail.com with ESMTPSA id q21sm2492192wra.24.2018.03.28.00.06.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Mar 2018 00:06:57 -0700 (PDT) From: Victor Chong To: leif.lindholm@linaro.org Date: Wed, 28 Mar 2018 08:05:45 +0100 Message-Id: <20180328070545.5323-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] 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(+) diff --git a/opteed-build.sh b/opteed-build.sh index 40fb844..301239e 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/arm-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