[edk2-devel] [PATCH v1 1/1] uefi-sct/SctPkg: update path to edk2-test-parser, check for repo
Abhimanyu Singh
Abhi.Singh at arm.com
Thu Jan 26 20:05:17 UTC 2023
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 <Edhaya.Chandran at arm.com>
Cc: Barton Gao <gaojie at byosoft.com.cn>
Cc: Carolyn Gjertsen <Carolyn.Gjertsen at amd.com>
Signed-off-by: Abhi Singh <Abhi.Singh at arm.com>
---
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_ARCH}_SCT/Mde
-# 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, please clone and try again"
+ exit
+fi
+
+# Copy edk2-test-parser tool into the repo
+cp -r edk2-test-parser/* ${TARGET_ARCH}_SCT/SCT/Sequence/
# Put some version information into the ESP directory
cat > ./${TARGET_ARCH}_SCT/versions.txt << EOF
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#99096): https://edk2.groups.io/g/devel/message/99096
Mute This Topic: https://groups.io/mt/96551593/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list