Script: autosh:fix build error [1/1]
PD#SWPL-130369
Problem:
there is not a error when autopatch fail when autosh
Solution:
add a judgement in the script
Verify:
local
Change-Id: Ide9ee4509cc13adce866b978421a13914313d4e2
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
diff --git a/amlogic_utils.sh b/amlogic_utils.sh
index fda33ad..b0f3581 100644
--- a/amlogic_utils.sh
+++ b/amlogic_utils.sh
@@ -1457,6 +1457,10 @@
if [[ -f ${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/auto_patch/auto_patch.sh ]]; then
export PATCH_PARM
${KERNEL_DIR}/${COMMON_DRIVERS_DIR}/auto_patch/auto_patch.sh ${FULL_KERNEL_VERSION}
+ if [[ $? -ne 0 ]]; then
+ echo "auto patch error!"
+ exit 1
+ fi
fi
if [[ ${ONLY_PATCH} -eq "1" ]]; then