author | Xindong Xu <xindong.xu@amlogic.com> | 2020-11-23 05:42:25 (GMT) |
---|---|---|
committer | Xindong Xu <xindong.xu@amlogic.com> | 2020-11-23 05:43:43 (GMT) |
commit | 469254b6d19c3a5016ba07109a23d127732ad02f (patch) | |
tree | c5b00127e9794d94e4e07f93cf995b28556ad5e2 | |
parent | b591a6cbaffb702605b7ea2d9721e308b4f16c63 (diff) | |
download | common-469254b6d19c3a5016ba07109a23d127732ad02f.zip common-469254b6d19c3a5016ba07109a23d127732ad02f.tar.gz common-469254b6d19c3a5016ba07109a23d127732ad02f.tar.bz2 |
build: fix build boot.img error [1/1]
PD#SWPL-37444
Problem:
boot.img is wrong when build newton 5.4
Solution:
pass parameters when build boot.img
Verify:
newton
Change-Id: I2b53fcaa45029145ffd094afc1d49704d290d928
Signed-off-by: Xindong Xu <xindong.xu@amlogic.com>
-rwxr-xr-x | kernelbuild/mk_script.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernelbuild/mk_script.sh b/kernelbuild/mk_script.sh index 1cea8a9..8dad802 100755 --- a/kernelbuild/mk_script.sh +++ b/kernelbuild/mk_script.sh @@ -121,7 +121,11 @@ function build() { cd ${MAIN_FOLDER} source build/envsetup.sh lunch $1-${CONFIG_BOOTIMAGE} - make bootimage -j8 + if [ "$CONFIG_KERNEL_VERSION" = "4.9" ]; then + make bootimage -j8 + else + make bootimage AB_OTA_UPDATER=true TARGET_BUILD_KERNEL_4_9=false -j8 + fi fi if [ $? -ne 0 ]; then |