Skip to content

Commit

Permalink
uefi-sct/SctPkg: update path to edk2-test-parser, check for repo
Browse files Browse the repository at this point in the history
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@arm.com>
Cc: Barton Gao <gaojie@byosoft.com.cn>
Cc: Carolyn Gjertsen <Carolyn.Gjertsen@amd.com>

Signed-off-by: Abhi Singh <Abhi.Singh@arm.com>
  • Loading branch information
aabhi64 authored and edhay committed Feb 21, 2023
1 parent 5609392 commit 8713740
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions uefi-sct/SctPkg/buildzip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8713740

Please sign in to comment.