summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2015-10-15 15:03:51 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2015-10-15 15:03:51 +0300
commit6636bd2dc46b58918e8500c01d42b623aac923b8 (patch)
treed989d5aa1cd93f0888ec7e071c228284a225403c
parent446bcdb14688ff30638830ba96d3e83e29803404 (diff)
downloaduefi-6636bd2dc46b58918e8500c01d42b623aac923b8.tar.gz
SCT: build ARM/AARCH64/DEBUG/RELEASE combinations
Build SCT package for the following: * ARM + DEBUG * ARM + RELEASE * AARCH64 + DEBUG * AARCH64 + RELEASE Publish a tarball of the built binaries. Change-Id: I33657ba37e8b7c324802a447f33e619946aa5e08 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rwxr-xr-xuefi.sh18
1 files changed, 14 insertions, 4 deletions
diff --git a/uefi.sh b/uefi.sh
index 070bbf8..06ebf96 100755
--- a/uefi.sh
+++ b/uefi.sh
@@ -178,10 +178,20 @@ SCT=${SCT:-0}
if [ "${SCT}" -ne 0 ]; then
git clone --depth 1 ssh://git@dev-private-git.linaro.org/people/heyi.guo/UEFI-SCT.git ${EDK2_DIR}/SctPkg
- mkdir -p ${basetools}/Bin/Linux-x86_64
- cd ${EDK2_DIR}
- ./SctPkg/build.sh ARM ${AARCH32_TOOLCHAIN} DEBUG
- cp -a ${EDK2_DIR}/Build/UefiSct/DEBUG_${AARCH32_TOOLCHAIN}/SctPackageARM ${builddir}/
+ export ${AARCH32_TOOLCHAIN}_ARM_PREFIX=arm-linux-gnueabihf-
+ export ${AARCH64_TOOLCHAIN}_AARCH64_PREFIX=aarch64-linux-gnu-
+
+ for sct_target_arch in ARM AARCH64; do
+ for sct_build in DEBUG RELEASE; do
+ cd ${EDK2_DIR}
+ ./SctPkg/build.sh ${sct_target_arch} ${AARCH32_TOOLCHAIN} ${sct_build}
+ tar -C ${EDK2_DIR}/Build/UefiSct/${sct_build}_${AARCH32_TOOLCHAIN} \
+ -cjf ${builddir}/$(echo ${sct_build} | tr '[:upper:]' '[:lower:]')/SctPackage${sct_target_arch}.tar.bz2 \
+ SctPackage${sct_target_arch}
+ done
+ done
+
+ rm -rf ${EDK2_DIR}/SctPkg
fi
#