From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.84898.1674763523805840103 for ; Thu, 26 Jan 2023 12:05:24 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: abhi.singh@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2008CC14; Thu, 26 Jan 2023 12:06:05 -0800 (PST) Received: from abhsin07-ThinkStation-P720.austin.arm.com (abhsin07-ThinkStation-P720.austin.arm.com [10.118.29.242]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 333EC3F71E; Thu, 26 Jan 2023 12:05:23 -0800 (PST) From: "Abhimanyu Singh" To: devel@edk2.groups.io Cc: Edhaya.Chandran@arm.com, gaojie@byosoft.com.cn, Carolyn.Gjertsen@amd.com Subject: [PATCH v1 1/1] uefi-sct/SctPkg: update path to edk2-test-parser, check for repo Date: Thu, 26 Jan 2023 14:05:17 -0600 Message-Id: <20230126200517.871991-2-Abhi.Singh@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230126200517.871991-1-Abhi.Singh@arm.com> References: <20230126200517.871991-1-Abhi.Singh@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable buildzip.sh was referencing the obsolete sct_parser project which has been replaced with edk2-test-parser. The script now checks for the edk2-test-parser repo in $pwd, if not present then the script exits and reminds the user to clone edk2-test-parser. Now the script copies edk2-test-parser/* recursively to the repo. Cc: G Edhaya Chandran Cc: Barton Gao Cc: Carolyn Gjertsen Signed-off-by: Abhi Singh --- uefi-sct/SctPkg/buildzip.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/uefi-sct/SctPkg/buildzip.sh b/uefi-sct/SctPkg/buildzip.sh index cdbe80d74155..625475701f12 100755 --- a/uefi-sct/SctPkg/buildzip.sh +++ b/uefi-sct/SctPkg/buildzip.sh @@ -53,8 +53,15 @@ cp Build/UefiSct/RELEASE_GCC5/SctPackage${TARGET_ARCH}= /SctStartup.nsh ${TARGET_A mkdir -p ${TARGET_ARCH}_SCT/Mde cp Build/MdeModule/RELEASE_GCC5/${TARGET_ARCH}/CapsuleApp.efi ${TARGET_A= RCH}_SCT/Mde =20 -# Copy the SCT Parser tool into the repo -cp sct_parser/* ${TARGET_ARCH}_SCT/SCT/Sequence/ +# Check if user has cloned edk-test-parser and buildzip.sh can access +if [ ! -d "${pwd}edk2-test-parser" ] +then + echo "edk2-test-parser repo is missing from current directory, p= lease clone and try again" + exit +fi + +# Copy edk2-test-parser tool into the repo +cp -r edk2-test-parser/* ${TARGET_ARCH}_SCT/SCT/Sequence/ =20 # Put some version information into the ESP directory cat > ./${TARGET_ARCH}_SCT/versions.txt << EOF --=20 2.25.1