Skip to content

Commit e23caa5

Browse files
committed
Pull the ramdisk.img from the LCR build.
Call mkbootimg directly Fix up how the 4.19 kernel config is assembled Signed-off-by: Tom Gall <tom.gall@linaro.org>
1 parent 7b7e999 commit e23caa5

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

hikey-kernel-builder.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ fi
140140
# git pull
141141
# cd ..
142142
#else
143-
# git clone --depth=1 https://android.googlesource.com/kernel/configs
143+
if [ "$skipdownloads" != "1" ]; then
144+
if [ "$VERSION" = "4.19" ]; then
145+
git clone --depth=1 https://android.googlesource.com/kernel/configs
146+
fi
147+
fi
144148
#
145149
# if [ "$ANDROID_VERSION" = "O-MR1" ]; then
146150
# cd configs
@@ -249,7 +253,7 @@ if [ "$cont" != "1" ]; then
249253
if [ "$ANDROID_VERSION" = "O-MR1" ]; then
250254
cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION}/${VERSION}/hikey_defconfig .config
251255
elif [ "$VERSION" = "4.19" ]; then
252-
ARCH=arm64 scripts/kconfig/merge_config.sh arch/arm64/configs/hikey_defconfig ../configs/${CONFIG_FRAGMENTS_PATH}/${ANDROID_KERNEL_CONFIG_DIR}/android-base.config ../configs/${CONFIG_FRAGMENTS_PATH}/${ANDROID_KERNEL_CONFIG_DIR}/android-recommended-arm64.config
256+
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
253257
elif [ "$ANDROID_VERSION" = "P" ]; then
254258
cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION}/${VERSION}/hikey_defconfig .config
255259
else # AOSP BUILD
@@ -277,14 +281,14 @@ fi
277281
cd ..
278282
if [ "$skipdownloads" != "1" ]; then
279283
wget -q https://android-git.linaro.org/platform/system/core.git/plain/mkbootimg/mkbootimg.py -O mkbootimg
280-
wget -q ${REFERENCE_BUILD_URL}/ramdisk.img -O ramdisk.img
284+
chmod +x mkbootimg
285+
wget -q http://releases.linaro.org/android/reference-lcr/hikey/9.0-19.01/ramdisk.img
286+
# wget -q ${REFERENCE_BUILD_URL}/ramdisk.img -O ramdisk.img
281287
fi
282288

283-
284-
285289
if [ "$ANDROID_VERSION" = "O-MR1" ]; then
286-
python mkbootimg --kernel ${PWD}/"$KERNEL_DIR"/arch/arm64/boot/Image-dtb --cmdline "${CMD}" --os_version O --os_patch_level 2016-11-05 --ramdisk ./ramdisk.img --output boot.img
290+
./mkbootimg --kernel ${PWD}/"$KERNEL_DIR"/arch/arm64/boot/Image-dtb --cmdline "${CMD}" --os_version O --os_patch_level 2016-11-05 --ramdisk ./ramdisk.img --output boot.img
287291
else
288-
python mkbootimg --kernel ${PWD}/"$KERNEL_DIR"/arch/arm64/boot/Image-dtb --cmdline "${CMD}" --os_version P --os_patch_level 2018-09-01 --ramdisk ./ramdisk.img --output boot.img
292+
./mkbootimg --kernel ${PWD}/"$KERNEL_DIR"/arch/arm64/boot/Image-dtb --cmdline "${CMD}" --os_version P --os_patch_level 2018-09-01 --ramdisk ./ramdisk.img --output boot.img
289293
fi
290294
#

0 commit comments

Comments
 (0)