@@ -106,9 +106,7 @@ if [ "$ANDROID_VERSION" = "P" ]; then
106
106
export CONFIG_FRAGMENTS_PATH=" p"
107
107
fi
108
108
109
- if [ " $ANDROID_VERSION " = " O-MR1" ]; then
110
- export REFERENCE_BUILD_URL=" http://testdata.linaro.org/lkft/aosp-stable/android-8.1.0_r29/"
111
- elif [ " $ANDROID_VERSION " = " P" ]; then
109
+ if [ " $ANDROID_VERSION " = " P" ]; then
112
110
# export REFERENCE_BUILD_URL="https://snapshots.linaro.org/android/android-lcr-reference-hikey-p/latest?dl=/android/android-lcr-reference-hikey-p/latest/"
113
111
export REFERENCE_BUILD_URL=" http://people.linaro.org/~yongqin.liu/images/hikey/pie/"
114
112
else
@@ -133,20 +131,6 @@ if [ "$skipdownloads" != "1" ]; then
133
131
cd ..
134
132
fi
135
133
136
- # if [ "$skipdownloads" = "1" ]; then
137
- # cd configs
138
- # git pull
139
- # cd ..
140
- # else
141
- # git clone --depth=1 https://android.googlesource.com/kernel/configs
142
- #
143
- # if [ "$ANDROID_VERSION" = "O-MR1" ]; then
144
- # cd configs
145
- # patch -p1 < ../patches/ConfigsTurnOnQTA.patch
146
- # cd ..
147
- # fi
148
-
149
-
150
134
if [ " $skipdownloads " != " 1" ]; then
151
135
git clone https://github.com/tom-gall/LinaroAndroidKernelConfigs.git
152
136
fi
@@ -161,9 +145,6 @@ elif [ "$VERSION" = "4.19" ]; then
161
145
# console=ttyAMA3,115200 androidboot.console=ttyAMA3 androidboot.hardware=hikey firmware_class.path=/vendor/firmware efi=noruntime printk.devkmsg=on buildvariant=userdebug
162
146
163
147
164
- elif [ " $ANDROID_VERSION " = " O-MR1" ]; then
165
- CMD=" androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime printk.devkmsg=on buildvariant=userdebug"
166
- # CMD="androidboot.console=ttyFIQ0 androidboot.hardware=hikey firmware_class.path=/system/etc/firmware efi=noruntime printk.devkmsg=on buildvariant=userdebug video=HDMI-A-1:1280x720@60"
167
148
168
149
elif [ " $ANDROID_VERSION " = " P" ]; then
169
150
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"
@@ -222,17 +203,6 @@ else
222
203
# patch -p1 < ~/ee7ead2.diff
223
204
fi
224
205
225
- if [ " $VERSION " = " 4.9" ]; then
226
- if [ " $ANDROID_VERSION " = " O-MR1" ]; then
227
- git revert --no-edit bbab5cb8a5bd598af247d9eaf5a3033e7d12104e
228
- fi
229
- fi
230
- if [ " $VERSION " = " 4.14" ]; then
231
- if [ " $ANDROID_VERSION " = " O-MR1" ]; then
232
- git revert --no-edit 20ebc74d51a1542e4290abf5ac9e32b524f891d1
233
- git revert --no-edit d0455063e17c07841eb40b8e755f4c9241506de5
234
- fi
235
- fi
236
206
fi
237
207
cd ..
238
208
@@ -244,9 +214,7 @@ cd "$KERNEL_DIR"
244
214
245
215
if [ " $cont " != " 1" ]; then
246
216
# copy kernel config for any version besides AOSP
247
- if [ " $ANDROID_VERSION " = " O-MR1" ]; then
248
- cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION} /${VERSION} /hikey_defconfig .config
249
- elif [ " $VERSION " = " 4.19" ]; then
217
+ if [ " $VERSION " = " 4.19" ]; then
250
218
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
251
219
elif [ " $ANDROID_VERSION " = " P" ]; then
252
220
cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION} /${VERSION} /hikey_defconfig .config
280
248
281
249
282
250
283
- if [ " $ANDROID_VERSION " = " O-MR1" ]; then
284
- 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
285
- else
286
251
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
287
- fi
288
252
#
253
+
0 commit comments