Re: [edk2-test][PATCH] SctPkg/build: Add support for GenBin tool build

Supreeth Venkatesh

Reviewed-by: Supreeth Venkatesh <>

-----Original Message-----
From: Lokesh B V <>
Sent: Tuesday, November 20, 2018 12:51 AM
To:; Supreeth Venkatesh <>;
Cc: Lokesh Belathur Veerappa <>
Subject: [edk2-test][PATCH] SctPkg/build: Add support for GenBin tool build

As the GenBin tool is necessary for SCT build, it is appropriate to support it's build in the SCT build procedure.

Signed-off-by: Lokesh B V <>
uefi-sct/SctPkg/ | 29 +++++++++++++++++------------
1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/uefi-sct/SctPkg/ b/uefi-sct/SctPkg/ index 73581c9..e070ad5 100755
--- a/uefi-sct/SctPkg/
+++ b/uefi-sct/SctPkg/
@@ -228,21 +228,26 @@ else
echo using prebuilt tools

-# Copy GenBin file to Base tools directory
+if [[ ! -e $EDK_TOOLS_PATH/Source/C/bin/GenBin ]] then
+ # build the GenBin if it doesn't yet exist
+ echo Building GenBin
+ make -C $EDK_TOOLS_PATH/../SctPkg/Tools/Source/GenBin
+ status=$?
+ if test $status -ne 0
+ then
+ echo Error while building GenBin
+ exit -1
+ fi
+ echo using prebuilt GenBin
+# Copy GenBin file to Base tools bin directory
# Ensure the directory exist
mkdir -p $DEST_DIR
-case `uname -m` in
-cp SctPkg/Tools/Bin/GenBin_lin_64 $DEST_DIR/GenBin
-cp SctPkg/Tools/Bin/GenBin_lin_32 $DEST_DIR/GenBin
-cp SctPkg/Tools/Bin/GenBin_lin_32 $DEST_DIR/GenBin
+cp $EDK_TOOLS_PATH/Source/C/bin/GenBin $DEST_DIR/GenBin

# Build the SCT package

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Join to automatically receive all group messages.