From nobody Thu May 2 12:33:31 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+43689+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43689+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1562990030; cv=none; d=zoho.com; s=zohoarc; b=Z4iSbWP81UB/ONZxEEMbLFXcILx1+ISAKs1En7inNhIq68guTjPIxYLH69zf7vOuYpFdc0BJGhgSN51Q8mE5p8WVxSu87encwp+S3uzFnnDmnVUk41EhFB4Dnh10D7UBbPafd2J4vJetnfvavLXsOZHoMCxQrBluIDdlcRbgrR0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562990030; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=+OJtm0zcxHAq0EfcfiScLWBt2X4g4KyAQ1qpQFjYcK8=; b=WykxXPHYiBmXM9aKzAFPNps+9qD+OHOZHr/KjcCgqVunh8WCBxZnyzarO3mQBg9Da0np7KfvknRrAp34Bv/ylRNOXT8NIPnMZnjT22g4neku8cX0SheqVegGL+w+mXqXafe+v+Nzujj/BOdDZ42n3yrvA3g8W6Ila3dGL7n+cH0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+43689+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1562990030425698.026891012533; Fri, 12 Jul 2019 20:53:50 -0700 (PDT) Return-Path: X-Received: from muon.bsdio.com (muon.bsdio.com [65.103.231.193]) by groups.io with SMTP; Fri, 12 Jul 2019 20:53:49 -0700 X-Received: from muon.bsdio.com (localhost [127.0.0.1]) by muon.bsdio.com (Postfix) with ESMTP id 98AD3769BD; Fri, 12 Jul 2019 21:54:08 -0600 (MDT) X-Received: from muon.bsdio.com ([127.0.0.1]) by muon.bsdio.com (muon.bsdio.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id F2Tk7wpHR0KL; Fri, 12 Jul 2019 21:54:08 -0600 (MDT) X-Received: from photon.int.bluestop.org (unknown [10.0.10.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by muon.bsdio.com (Postfix) with ESMTPSA; Fri, 12 Jul 2019 21:54:07 -0600 (MDT) From: rebecca@bsdio.com To: devel@edk2.groups.io, Zailiang Sun , Yi Qian , michael.d.kinney@intel.com Cc: Rebecca Cran Subject: [edk2-devel] [PATCH] Platform/Intel/Vlv2TbltDevicePkg: fix postbuild scripts Date: Fri, 12 Jul 2019 21:53:39 -0600 Message-Id: <20190713035339.42992-1-rebecca@bsdio.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,rebecca@bsdio.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1562990029; bh=xJ+XAATPZlV/EUZnYiioRt0NAAIc/q7JvICNWHs8ND4=; h=Cc:Date:From:Reply-To:Subject:To; b=f6BPeVjVQjsGOO6npkoi8kcv9K1nD+R6gNJF1QTR3zV0ZAl8hXyg+/54KSoonr3zDqY vPnMJ1rCzi7rfwWpUH4HFqdyVdLgo+0gli3K+3InEWmveqNHnLqrbNuaRBl9s6JSU8OtU pSaWqOB7J1zuw3O7/LcbTwCpRIAX39uRRZU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Add "set -e" to postbuild scripts to cause them to exit if an error occurs. Since GenCapsuleSampleColor.sh is passed arguments, it should be run directly and not sourced into the environment so it can evaluate $1, $2 etc. Otherwise, it tries to use the toolchain name passed to 'build' as the GUID string. Signed-off-by: Rebecca Cran --- .../Feature/Capsule/GenerateCapsule/GenCapsuleAll.sh | 10 ++++++---- .../Capsule/GenerateCapsule/GenCapsuleMinnowMax.sh | 2 ++ .../GenerateCapsule/GenCapsuleMinnowMaxRelease.sh | 2 ++ .../Capsule/GenerateCapsule/GenCapsuleSampleColor.sh | 0 4 files changed, 10 insertions(+), 4 deletions(-) mode change 100644 =3D> 100755 Platform/Intel/Vlv2TbltDevicePkg/Feature/Ca= psule/GenerateCapsule/GenCapsuleSampleColor.sh diff --git a/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsu= le/GenCapsuleAll.sh b/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/Gene= rateCapsule/GenCapsuleAll.sh index 7b77b50c3f..22ae72c575 100755 --- a/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsule/GenC= apsuleAll.sh +++ b/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsule/GenC= apsuleAll.sh @@ -1,5 +1,5 @@ # @file -# Linux script file to generate UEFI capsules for system firmware and +# *NIX script file to generate UEFI capsules for system firmware and # firmware for sample devices # # Copyright (c) 2018, Intel Corporation. All rights reserved.
@@ -7,6 +7,8 @@ # SPDX-License-Identifier: BSD-2-Clause-Patent # =20 +set -e + cd $(dirname $0) =20 EFI_DIR=3D$WORKSPACE/Build/Vlv2TbltDevicePkg/${TARGET}_${TOOL_CHAIN_TAG}/X= 64/ @@ -28,6 +30,6 @@ else cp $EFI_DIR/CapsuleApp.efi $CAP_DIR/TestCert/CapsuleAppRelease.efi . $SCRIPT_DIR/GenCapsuleMinnowMaxRelease.sh fi -. $SCRIPT_DIR/GenCapsuleSampleColor.sh Blue 149DA854-7D19-4FAA-A91E-862EA= 1324BE6 -. $SCRIPT_DIR/GenCapsuleSampleColor.sh Green 79179BFD-704D-4C90-9E02-0AB8D= 968C18A -. $SCRIPT_DIR/GenCapsuleSampleColor.sh Red 72E2945A-00DA-448E-9AA7-075AD= 840F9D4 +$SCRIPT_DIR/GenCapsuleSampleColor.sh Blue 149DA854-7D19-4FAA-A91E-862EA13= 24BE6 +$SCRIPT_DIR/GenCapsuleSampleColor.sh Green 79179BFD-704D-4C90-9E02-0AB8D96= 8C18A +$SCRIPT_DIR/GenCapsuleSampleColor.sh Red 72E2945A-00DA-448E-9AA7-075AD84= 0F9D4 diff --git a/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsu= le/GenCapsuleMinnowMax.sh b/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsul= e/GenerateCapsule/GenCapsuleMinnowMax.sh index 114c4a3477..1c9e3613f6 100644 --- a/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsule/GenC= apsuleMinnowMax.sh +++ b/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsule/GenC= apsuleMinnowMax.sh @@ -6,6 +6,8 @@ # SPDX-License-Identifier: BSD-2-Clause-Patent # =20 +set -e + FMP_CAPSULE_VENDOR=3DIntel FMP_CAPSULE_GUID=3D4096267B-DA0A-42EB-B5EB-FEF31D207CB4 FMP_CAPSULE_FILE=3DMinnowMax.cap diff --git a/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsu= le/GenCapsuleMinnowMaxRelease.sh b/Platform/Intel/Vlv2TbltDevicePkg/Feature= /Capsule/GenerateCapsule/GenCapsuleMinnowMaxRelease.sh index d2619786e8..e50ef66c03 100644 --- a/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsule/GenC= apsuleMinnowMaxRelease.sh +++ b/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsule/GenC= apsuleMinnowMaxRelease.sh @@ -6,6 +6,8 @@ # SPDX-License-Identifier: BSD-2-Clause-Patent # =20 +set -e + FMP_CAPSULE_VENDOR=3DIntel FMP_CAPSULE_GUID=3D4096267B-DA0A-42EB-B5EB-FEF31D207CB4 FMP_CAPSULE_FILE=3DMinnowMaxRelease.cap diff --git a/Platform/Intel/Vlv2TbltDevicePkg/Feature/Capsule/GenerateCapsu= le/GenCapsuleSampleColor.sh b/Platform/Intel/Vlv2TbltDevicePkg/Feature/Caps= ule/GenerateCapsule/GenCapsuleSampleColor.sh old mode 100644 new mode 100755 --=20 2.22.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#43689): https://edk2.groups.io/g/devel/message/43689 Mute This Topic: https://groups.io/mt/32456165/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-