diff --git a/auto_patch/common14-5.15/tools/build#kernel#0005-bazel-fix-date-format-due-to-build-failed-1-1.patch b/auto_patch/common14-5.15/tools/build#kernel#0005-bazel-fix-date-format-due-to-build-failed-1-1.patch new file mode 100644 index 000000000..70e4b0de7 --- /dev/null +++ b/auto_patch/common14-5.15/tools/build#kernel#0005-bazel-fix-date-format-due-to-build-failed-1-1.patch @@ -0,0 +1,38 @@ +From 6d4b9074105d1ddf1640176cd68d9bb4536734b2 Mon Sep 17 00:00:00 2001 +From: "qinglin.li" +Date: Thu, 1 Aug 2024 10:45:54 +0800 +Subject: [PATCH] bazel: fix date format due to build failed [1/1] + +PD#SWPL-179932 + +Problem: +date format due to build failed + +Solution: +fix date format due to build failed + +Verify: +local + +Change-Id: I66d9408d2518299f51685dcb1a1b92a07f895d77 +Signed-off-by: qinglin.li +--- + build_utils.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build_utils.sh b/build_utils.sh +index 1ab4943..be5f64d 100644 +--- a/build_utils.sh ++++ b/build_utils.sh +@@ -856,7 +856,7 @@ function build_gki_boot_images() { + # overwritten by the Android platform build to include an accurate SPL. + # Note, the certified GKI release builds will not include the SPL + # property. +- local spl_month=$((($(date +'%m') + 3) % 12)) ++ local spl_month=$(((10#$(date +'%m') + 3) % 12)) + local spl_year="$(date +'%Y')" + if [ $((${spl_month} % 3)) -gt 0 ]; then + # Round up to the next quarterly platform release (QPR) month +-- +2.42.0 +