build: 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: I54236f7d11fedd79f1021fe8fdb1954f4e991419
Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
This commit is contained in:
qinglin.li
2024-08-01 14:24:23 +08:00
committed by Wanwei Jiang
parent 268f88c573
commit f1c62ecb2a
@@ -0,0 +1,38 @@
From 6d4b9074105d1ddf1640176cd68d9bb4536734b2 Mon Sep 17 00:00:00 2001
From: "qinglin.li" <qinglin.li@amlogic.com>
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 <qinglin.li@amlogic.com>
---
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