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 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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