|
140 | 140 | # git pull
|
141 | 141 | # cd ..
|
142 | 142 | #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 |
144 | 148 | #
|
145 | 149 | # if [ "$ANDROID_VERSION" = "O-MR1" ]; then
|
146 | 150 | # cd configs
|
@@ -249,7 +253,7 @@ if [ "$cont" != "1" ]; then
|
249 | 253 | if [ "$ANDROID_VERSION" = "O-MR1" ]; then
|
250 | 254 | cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION}/${VERSION}/hikey_defconfig .config
|
251 | 255 | 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 |
253 | 257 | elif [ "$ANDROID_VERSION" = "P" ]; then
|
254 | 258 | cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION}/${VERSION}/hikey_defconfig .config
|
255 | 259 | else # AOSP BUILD
|
|
277 | 281 | cd ..
|
278 | 282 | if [ "$skipdownloads" != "1" ]; then
|
279 | 283 | 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 |
281 | 287 | fi
|
282 | 288 |
|
283 |
| - |
284 |
| - |
285 | 289 | 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 |
287 | 291 | 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 |
289 | 293 | fi
|
290 | 294 | #
|
0 commit comments