aboutsummaryrefslogtreecommitdiff
path: root/android-hikey-linaro-4.14-pmwg
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2019-01-30 17:09:55 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2019-01-30 11:40:55 +0000
commitfa9d6ff4d69c1090750455d1320af36f87d569f8 (patch)
tree195c2cac96ef1f1c95f343df5b7c0930f8961c2e /android-hikey-linaro-4.14-pmwg
parent6e7d08f17313a6f23a388b2af5617bd866c8e770 (diff)
downloadconfigs-fa9d6ff4d69c1090750455d1320af36f87d569f8.tar.gz
android-hikey-linaro-4.14-pmwg: use clang toolchain
Change-Id: I870f5b28d696bd914cd5d545eaaacf04bb9732ac Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'android-hikey-linaro-4.14-pmwg')
-rw-r--r--android-hikey-linaro-4.14-pmwg/builders.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/android-hikey-linaro-4.14-pmwg/builders.sh b/android-hikey-linaro-4.14-pmwg/builders.sh
index 9eba1448f..defe6106b 100644
--- a/android-hikey-linaro-4.14-pmwg/builders.sh
+++ b/android-hikey-linaro-4.14-pmwg/builders.sh
@@ -3,7 +3,8 @@
set -ex
git clone --depth=1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
-export PATH=${PATH}:${PWD}/aarch64-linux-android-4.9/bin/
+git clone --depth=1 https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86
+export PATH=${PWD}/aarch64-linux-android-4.9/bin/:${PWD}/linux-x86/clang-r346389c/bin/:${PATH}
if ! sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 update; then
echo "INFO: apt update error - try again in a moment"
@@ -17,8 +18,10 @@ if ! sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 install -y ${pkg_list}; th
sudo DEBIAN_FRONTEND=noninteractive apt-get -q=2 install -y ${pkg_list}
fi
+export CLANG_TRIPLE=aarch64-linux-gnu-
+export CROSS_COMPILE=aarch64-linux-android-
make ARCH=arm64 ${DEFCONFIG}
-make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j$(nproc) -s Image.gz-dtb
+make ARCH=arm64 CC=clang HOSTCC=clang -j$(nproc) -s Image.gz-dtb
wget -q https://android-git.linaro.org/platform/system/core.git/plain/mkbootimg/mkbootimg.py -O mkbootimg
wget -q ${REFERENCE_BUILD_URL}/ramdisk.img -O ramdisk.img
@@ -28,7 +31,7 @@ case "${DEFCONFIG}" in
hikey_defconfig)
python mkbootimg \
--kernel ${PWD}/arch/arm64/boot/Image.gz-dtb \
- --cmdline "androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/vendor/firmware efi=noruntime printk.devkmsg=on buildvariant=userdebug overlay_mgr.overlay_dt_entry=hardware_cfg_enable_android_fstab" \
+ --cmdline "console=ttyAMA3,115200 androidboot.console=ttyAMA3,115200 androidboot.hardware=hikey firmware_class.path=/vendor/firmware efi=noruntime printk.devkmsg=on buildvariant=userdebug overlay_mgr.overlay_dt_entry=hardware_cfg_enable_android_fstab" \
--os_version O \
--os_patch_level 2016-11-05 \
--ramdisk ramdisk.img \
@@ -37,7 +40,7 @@ case "${DEFCONFIG}" in
hikey960_defconfig)
python mkbootimg \
--kernel ${PWD}/arch/arm64/boot/Image.gz-dtb \
- --cmdline "androidboot.hardware=hikey960 console=ttyFIQ0 androidboot.console=ttyFIQ0 firmware_class.path=/vendor/firmware loglevel=15 buildvariant=userdebug overlay_mgr.overlay_dt_entry=hardware_cfg_enable_android_fstab" \
+ --cmdline "androidboot.hardware=hikey960 console=ttyAMA3,115200 androidboot.console=ttyAMA3,115200 firmware_class.path=/vendor/firmware loglevel=15 buildvariant=userdebug overlay_mgr.overlay_dt_entry=hardware_cfg_enable_android_fstab" \
--base 0x0 --tags_offset 0x07a00000 --kernel_offset 0x00080000 \
--ramdisk_offset 0x07c00000 \
--os_version P \