Skip to content

Commit 737da2e

Browse files
committed
Get rid of O-MR1 cruft.
Signed-off-by: Tom Gall <tom.gall@linaro.org>
1 parent 978b07e commit 737da2e

File tree

1 file changed

+3
-38
lines changed

1 file changed

+3
-38
lines changed

gki-builder.sh

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,7 @@ if [ "$ANDROID_VERSION" = "P" ]; then
106106
export CONFIG_FRAGMENTS_PATH="p"
107107
fi
108108

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
112110
# export REFERENCE_BUILD_URL="https://snapshots.linaro.org/android/android-lcr-reference-hikey-p/latest?dl=/android/android-lcr-reference-hikey-p/latest/"
113111
export REFERENCE_BUILD_URL="http://people.linaro.org/~yongqin.liu/images/hikey/pie/"
114112
else
@@ -133,20 +131,6 @@ if [ "$skipdownloads" != "1" ]; then
133131
cd ..
134132
fi
135133

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-
150134
if [ "$skipdownloads" != "1" ]; then
151135
git clone https://github.com/tom-gall/LinaroAndroidKernelConfigs.git
152136
fi
@@ -161,9 +145,6 @@ elif [ "$VERSION" = "4.19" ]; then
161145
# console=ttyAMA3,115200 androidboot.console=ttyAMA3 androidboot.hardware=hikey firmware_class.path=/vendor/firmware efi=noruntime printk.devkmsg=on buildvariant=userdebug
162146

163147

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"
167148

168149
elif [ "$ANDROID_VERSION" = "P" ]; then
169150
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
222203
#patch -p1 < ~/ee7ead2.diff
223204
fi
224205

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
236206
fi
237207
cd ..
238208

@@ -244,9 +214,7 @@ cd "$KERNEL_DIR"
244214

245215
if [ "$cont" != "1" ]; then
246216
# 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
250218
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
251219
elif [ "$ANDROID_VERSION" = "P" ]; then
252220
cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION}/${VERSION}/hikey_defconfig .config
@@ -280,9 +248,6 @@ fi
280248

281249

282250

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
286251
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
288252
#
253+

0 commit comments

Comments
 (0)