Skip to content

Commit fb8d51f

Browse files
committed
Add in support for Q
4.19 is now just to be built off branch for q For Q, make hikey_defconfig is now used Signed-off-by: Tom Gall <tom.gall@linaro.org>
1 parent be9c59b commit fb8d51f

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

hikey-kernel-builder.sh

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
usage()
55
{
6-
echo "usage: [-s] -v=[4.4|4.9|4.14|v4.19] -a={AOSP|P|O-MR1} -t=clang-r349610"
6+
echo "usage: [-s] -v=[4.4|4.9|4.14|v4.19] -a={AOSP|Q|P|O-MR1} -t=clang-r349610"
77
echo "-s = skip download"
88
echo "-v = kernel version"
99
echo "-a = android version"
@@ -85,10 +85,15 @@ elif [ "$VERSION" = "4.14" ]; then
8585
export UPSTREAM_KERNEL_BRANCH=mirror-android-4.14
8686
fi
8787
elif [ "$VERSION" = "4.19" ]; then
88-
# 4.19 for now is not associated with any pastry
89-
export KERNEL_BRANCH=android-hikey-linaro-4.19
90-
export ANDROID_KERNEL_CONFIG_DIR="android-4.19"
91-
export PASTRY_BUILD=0
88+
if [ "$ANDROID_VERSION" = "AOSP" ]; then
89+
export KERNEL_BRANCH=android-hikey-linaro-4.19
90+
else
91+
export KERNEL_BRANCH=android-4.19
92+
fi
93+
# export ANDROID_KERNEL_CONFIG_DIR="android-4.19"
94+
# export KERNEL_BRANCH=android-hikey-linaro-4.19
95+
# export ANDROID_KERNEL_CONFIG_DIR="android-4.19"
96+
# export PASTRY_BUILD=0
9297
if [ "$mirrorbuild" == "1" ]; then
9398
export UPSTREAM_KERNEL_BRANCH=mirror-android-4.19
9499
fi
@@ -115,8 +120,10 @@ fi
115120
if [ "$ANDROID_VERSION" = "O-MR1" ]; then
116121
export REFERENCE_BUILD_URL="http://testdata.linaro.org/lkft/aosp-stable/android-8.1.0_r29/"
117122
elif [ "$ANDROID_VERSION" = "P" ]; then
118-
# export REFERENCE_BUILD_URL="https://snapshots.linaro.org/android/android-lcr-reference-hikey-p/latest?dl=/android/android-lcr-reference-hikey-p/latest/"
119-
export REFERENCE_BUILD_URL="http://people.linaro.org/~yongqin.liu/images/hikey/pie/"
123+
export REFERENCE_BUILD_URL="https://snapshots.linaro.org/android/android-lcr-reference-hikey-p/latest/"
124+
# export REFERENCE_BUILD_URL="http://people.linaro.org/~yongqin.liu/images/hikey/pie/"
125+
elif [ "$ANDROID_VERSION" = "Q" ]; then
126+
export REFERENCE_BUILD_URL="https://snapshots.linaro.org/android/android-lcr-reference-hikey-p/latest/"
120127
else
121128
echo "need AOSP master ref"
122129
export PASTRY_BUILD=0
@@ -155,11 +162,11 @@ fi
155162
# git pull
156163
# cd ..
157164
#else
158-
if [ "$skipdownloads" != "1" ]; then
159-
if [ "$VERSION" = "4.19" ]; then
160-
git clone --depth=1 https://android.googlesource.com/kernel/configs
161-
fi
162-
fi
165+
#if [ "$skipdownloads" != "1" ]; then
166+
# if [ "$VERSION" = "4.19" ]; then
167+
# git clone --depth=1 https://android.googlesource.com/kernel/configs
168+
# fi
169+
#fi
163170
#
164171
# if [ "$ANDROID_VERSION" = "O-MR1" ]; then
165172
# cd configs
@@ -174,6 +181,8 @@ fi
174181

175182
if echo "$ANDROID_VERSION" | grep -i aosp ; then
176183
CMD="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 video=HDMI-A-1:1280x720@60"
184+
elif [ "$ANDROID_VERSION" = "Q" ]; then
185+
CMD="console=ttyAMA3,115200 androidboot.console=ttyAMA3 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 initrd=0x11000000,0x17E28A"
177186
elif [ "$VERSION" = "4.19" ]; then
178187
CMD="console=ttyAMA3,115200 androidboot.console=ttyAMA3 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 initrd=0x11000000,0x17E28A"
179188
# this one works CMD="console=ttyAMA3 androidboot.console=ttyAMA3 androidboot.hardware=hikey firmware_class.path=/vendor/firmware efi=noruntime printk.devkmsg=on buildvariant=userdebug"
@@ -274,6 +283,8 @@ if [ "$cont" != "1" ]; then
274283
# copy kernel config for any version besides AOSP
275284
if [ "$ANDROID_VERSION" = "O-MR1" ]; then
276285
cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION}/${VERSION}/hikey_defconfig .config
286+
elif [ "$ANDROID_VERSION" = "Q" ]; then
287+
make ARCH=arm64 CC="${C_COMPILER}" HOSTCC="${C_COMPILER}" hikey_defconfig
277288
elif [ "$VERSION" = "4.19" ]; then
278289
ARCH=arm64 scripts/kconfig/merge_config.sh arch/arm64/configs/hikey_defconfig ../configs/${ANDROID_KERNEL_CONFIG_DIR}/android-base.config ../configs/${ANDROID_KERNEL_CONFIG_DIR}/android-recommended-arm64.config
279290
elif [ "$ANDROID_VERSION" = "P" ]; then

0 commit comments

Comments
 (0)