summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem
diff options
context:
space:
mode:
Diffstat (limited to 'lib/buildsystem')
-rw-r--r--lib/buildsystem/kbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/buildsystem/kbuild.sh b/lib/buildsystem/kbuild.sh
index 881013e..8db2f59 100644
--- a/lib/buildsystem/kbuild.sh
+++ b/lib/buildsystem/kbuild.sh
@@ -107,6 +107,7 @@ _oh_kbuild_update_target()
_oh_kbuild_testarch()
{
local arch=
+ local rc=
arch="${1}"
@@ -114,8 +115,9 @@ _oh_kbuild_testarch()
cd "${_OH_BUILDSYSTEM_BUILD_DIR}"
make -n ARCH="${arch}" help >/dev/null 2>&1
+ rc=${?}
cd "${_OH_BUILDSYSTEM_WORK_AREA}"
- return ${?}
+ return ${rc}
}