|
3 | 3 |
|
4 | 4 | usage()
|
5 | 5 | {
|
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" |
7 | 7 | echo "-s = skip download"
|
8 | 8 | echo "-v = kernel version"
|
9 | 9 | echo "-a = android version"
|
@@ -85,10 +85,15 @@ elif [ "$VERSION" = "4.14" ]; then
|
85 | 85 | export UPSTREAM_KERNEL_BRANCH=mirror-android-4.14
|
86 | 86 | fi
|
87 | 87 | 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 |
92 | 97 | if [ "$mirrorbuild" == "1" ]; then
|
93 | 98 | export UPSTREAM_KERNEL_BRANCH=mirror-android-4.19
|
94 | 99 | fi
|
|
115 | 120 | if [ "$ANDROID_VERSION" = "O-MR1" ]; then
|
116 | 121 | export REFERENCE_BUILD_URL="http://testdata.linaro.org/lkft/aosp-stable/android-8.1.0_r29/"
|
117 | 122 | 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/" |
120 | 127 | else
|
121 | 128 | echo "need AOSP master ref"
|
122 | 129 | export PASTRY_BUILD=0
|
|
155 | 162 | # git pull
|
156 | 163 | # cd ..
|
157 | 164 | #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 |
163 | 170 | #
|
164 | 171 | # if [ "$ANDROID_VERSION" = "O-MR1" ]; then
|
165 | 172 | # cd configs
|
|
174 | 181 |
|
175 | 182 | if echo "$ANDROID_VERSION" | grep -i aosp ; then
|
176 | 183 | 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" |
177 | 186 | elif [ "$VERSION" = "4.19" ]; then
|
178 | 187 | 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"
|
179 | 188 | # 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
|
274 | 283 | # copy kernel config for any version besides AOSP
|
275 | 284 | if [ "$ANDROID_VERSION" = "O-MR1" ]; then
|
276 | 285 | 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 |
277 | 288 | elif [ "$VERSION" = "4.19" ]; then
|
278 | 289 | 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
|
279 | 290 | elif [ "$ANDROID_VERSION" = "P" ]; then
|
|
0 commit comments