From d451d07f2ead8cef2134185fd8e5054927921d4f Mon Sep 17 00:00:00 2001 From: wenxue.guo <wenxue.guo@avnet.com> Date: Fri, 22 Dec 2023 10:31:07 +0800 Subject: [PATCH] Update bootloader and linux kernel build shell script --- kernel/build.sh | 2 +- bootloader/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootloader/build.sh b/bootloader/build.sh index 43e7c71..0e19266 100755 --- a/bootloader/build.sh +++ b/bootloader/build.sh @@ -184,7 +184,7 @@ cd $PRJ_PATH/${SRC} # do patch if not patched - if [ ! -s configs/$defconfig ] ; then + if [ ! -s configs/$defconfig -a -s $patch_file ] ; then pr_warn "do patch for $SRC now..." patch -p1 < $patch_file fi diff --git a/kernel/build.sh b/kernel/build.sh index 19748a7..55ee6c8 100755 --- a/kernel/build.sh +++ b/kernel/build.sh @@ -68,7 +68,7 @@ cd $KER_PATH - if [ ! -s arch/arm64/configs/$defconfig ] ; then + if [ ! -s arch/arm64/configs/$defconfig -a -s $patch_file ] ; then pr_warn "do patch for $KER_PATH now..." patch -p1 < $patch_file fi -- Gitblit v1.9.1