9
9
echo " -a = android version"
10
10
echo " -t = toolchain to use from prebuilts"
11
11
echo " -m = mirror build, use premerge mirror"
12
+ echo " -c = continue build, no download, no reconfig, just build"
12
13
}
13
14
14
15
@@ -47,6 +48,9 @@ while [ "$1" != "" ]; do
47
48
;;
48
49
-g | --gcc ) usegcc=1
49
50
;;
51
+ -c | --continue ) cont=1
52
+ skipdownloads=1
53
+ ;;
50
54
-h | --help ) usage
51
55
exit
52
56
;;
145
149
# fi
146
150
147
151
152
+ if [ " $skipdownloads " != " 1" ]; then
148
153
git clone https://github.com/tom-gall/LinaroAndroidKernelConfigs.git
149
- # fi
154
+ fi
150
155
151
156
if echo " $ANDROID_VERSION " | grep -i aosp ; then
152
157
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"
@@ -166,15 +171,20 @@ elif [ "$ANDROID_VERSION" = "P" ]; then
166
171
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"
167
172
168
173
else
169
- echo " What Andoid Version are you running ?"
174
+ echo " What Andoid Version are you planning to run ?"
170
175
fi
171
176
172
177
if [ " $skipdownloads " = " 1" ]; then
173
178
cd " $KERNEL_DIR "
174
- if [ " $mirrorbuild " == " 1" ]; then
175
- git merge --no-edit remotes/origin/${UPSTREAM_KERNEL_BRANCH}
179
+ if [ " $cont " = " 1" ]; then
180
+ # nothing to do
181
+ echo " nothing to do"
182
+ else
183
+ if [ " $mirrorbuild " == " 1" ]; then
184
+ git merge --no-edit remotes/origin/${UPSTREAM_KERNEL_BRANCH}
185
+ fi
186
+ make mrproper
176
187
fi
177
- make mrproper
178
188
# git checkout master
179
189
# git clean -fd
180
190
# git pull
@@ -234,15 +244,17 @@ export CROSS_COMPILE=aarch64-linux-android-
234
244
235
245
cd " $KERNEL_DIR "
236
246
237
- # copy kernel config for any version besides AOSP
238
- if [ " $ANDROID_VERSION " = " O-MR1" ]; then
239
- cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION} /${VERSION} /hikey_defconfig .config
240
- elif [ " $VERSION " = " 4.19" ]; then
241
- 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
242
- elif [ " $ANDROID_VERSION " = " P" ]; then
243
- cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION} /${VERSION} /hikey_defconfig .config
244
- else # AOSP BUILD
245
- 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
247
+ if [ " $cont " != " 1" ]; then
248
+ # copy kernel config for any version besides AOSP
249
+ if [ " $ANDROID_VERSION " = " O-MR1" ]; then
250
+ cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION} /${VERSION} /hikey_defconfig .config
251
+ 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
253
+ elif [ " $ANDROID_VERSION " = " P" ]; then
254
+ cp ../LinaroAndroidKernelConfigs/${ANDROID_VERSION} /${VERSION} /hikey_defconfig .config
255
+ else # AOSP BUILD
256
+ 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
257
+ fi
246
258
fi
247
259
248
260
cp .config ../defconfig
0 commit comments