diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-11-22 22:17:16 +0100 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-11-22 22:25:36 +0100 |
commit | 8b4fe8cf6f554644e45b06ed3beb6775aecbd602 (patch) | |
tree | 7891b5a883bc3a5e10861e3c2ada5afd2d70f60f /lt-qcom-linux | |
parent | ddd530f5b7787476a5e0c41b4fc6e424ee663a77 (diff) |
lt-qcom-linux: add support for building both arm64 adn arm32
We want to build the LT QCOM kernel for arm(hf) and arm64. This patch adds a
matrix build for $ARCH. Some variables need to be adjusted accordingly.
We generate 2 source packages for each arch that we build, since we upload the
source packages twice into the same archive.
Change-Id: Id21823f3609f28fde1c257afd276b89fa974e660
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'lt-qcom-linux')
-rw-r--r-- | lt-qcom-linux/builders.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lt-qcom-linux/builders.sh b/lt-qcom-linux/builders.sh index 5aeb97ba82..46bb46584f 100644 --- a/lt-qcom-linux/builders.sh +++ b/lt-qcom-linux/builders.sh @@ -8,11 +8,14 @@ echo "KERNEL_BRANCH: ${KERNEL_BRANCH}" echo "GIT_COMMIT: ${GIT_COMMIT}" echo "GIT_BRANCH: ${GIT_BRANCH}" -toolchain_url=http://releases.linaro.org/components/toolchain/binaries/6.3-2017.02/aarch64-linux-gnu/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu.tar.xz +toolchain_url_arm=http://releases.linaro.org/components/toolchain/binaries/6.3-2017.02/arm-linux-gnueabihf/gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf.tar.xz +toolchain_url_arm64=http://releases.linaro.org/components/toolchain/binaries/6.3-2017.02/aarch64-linux-gnu/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu.tar.xz +toolchain_url=toolchain_url_$ARCH +toolchain_url=${!toolchain_url} + tcdir=${HOME}/srv/toolchain tcbindir="${tcdir}/$(basename $toolchain_url .tar.xz)/bin" -export ARCH=arm64 export CROSS_COMPILE="ccache $(basename $(ls -1 ${tcbindir}/*-gcc) gcc)" export PATH=${tcbindir}:$PATH @@ -25,11 +28,12 @@ PKGVERSION=$(echo ${KERNEL_VERSION} | sed -e 's/\.0-rc/\.0~rc/')$(echo ${KERNEL_ cd ${WORKSPACE}/linux -make ${KERNEL_CONFIGS} +KERNEL_CONFIGS=KERNEL_CONFIGS_$ARCH +make ${!KERNEL_CONFIGS} make savedefconfig cp defconfig arch/${ARCH}/configs -make KERNELRELEASE=${SRCVERSION}-qcomlt \ +make KERNELRELEASE=${SRCVERSION}-qcomlt-${ARCH} \ KDEB_PKGVERSION=${PKGVERSION}-${BUILD_NUMBER} \ KDEB_CHANGELOG_DIST=${KDEB_CHANGELOG_DIST} \ DEBEMAIL="dragonboard@lists.96boards.org" \ |