aboutsummaryrefslogtreecommitdiff
path: root/lt-qcom-db410c-bootloader/builders.sh
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2016-12-09 11:05:44 +0100
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2016-12-09 10:42:53 +0000
commit9bd09396f2605ca724a6f297d05c361deb4cc86e (patch)
tree44791e8ba97635f34b67e214a2fdbb8dbd0fff00 /lt-qcom-db410c-bootloader/builders.sh
parentfdfed0a7361b29e2a4312b7595e77f2722186026 (diff)
downloadconfigs-9bd09396f2605ca724a6f297d05c361deb4cc86e.tar.gz
lt-qcom-db410c-bootloader: add support for signing LK ELF file
on 410 platforms we are going to move to a newer SBL firmware that will require signing the LK binaries. This feature had been disabled so far in the SBL builds we got from QDN, but it needs to be re-enabled for commercial customers that might need the secure boot. The signing is a 'fake' one for community boards, and a set of scripts have been released (open source) to make the 'fake' signing. Change-Id: Ic9768a293d0911e9f899abf34257837788f11bb2 Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'lt-qcom-db410c-bootloader/builders.sh')
-rw-r--r--lt-qcom-db410c-bootloader/builders.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/lt-qcom-db410c-bootloader/builders.sh b/lt-qcom-db410c-bootloader/builders.sh
index d1098dfa15..cbe7f9b43a 100644
--- a/lt-qcom-db410c-bootloader/builders.sh
+++ b/lt-qcom-db410c-bootloader/builders.sh
@@ -20,6 +20,9 @@ unzip -j -d bootloaders-linux $(basename ${QCOM_LINUX_FIRMWARE}) "*/bootloaders-
# Get the Android compiler
git clone ${LK_GCC_GIT} --depth 1 -b ${LK_GCC_REL} android-gcc
+# get the signing tools
+git clone --depth 1 https://git.linaro.org/landing-teams/working/qualcomm/signlk.git
+
# Build all needed flavors of LK
git clone --depth 1 ${LK_GIT_LINARO} -b ${LK_GIT_REL_SD_RESCUE} lk_sdrescue
git clone --depth 1 ${LK_GIT_LINARO} -b ${LK_GIT_REL_SD_BOOT} lk_sd_boot
@@ -30,6 +33,8 @@ for lk in lk_sdrescue lk_sd_boot lk_emmc_boot; do
cd $lk
git log -1
make -j4 msm8916 EMMC_BOOT=1 TOOLCHAIN_PREFIX=${WORKSPACE}/android-gcc/bin/arm-eabi-
+ mv build-msm8916/emmc_appsboot.mbn build-msm8916/emmc_appsboot_unsigned.mbn
+ ../signlk/signlk.sh -i=./build-msm8916/emmc_appsboot_unsigned.mbn -o=./build-msm8916/emmc_appsboot.mbn -d
cd -
done