diff options
author | P. J. McDermott <pjm@nac.net> | 2014-02-25 13:03:24 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-02-25 13:03:24 (EST) |
commit | 06b4ef4c6fa9f4bdbeec62a2513f0db9a93176c1 (patch) | |
tree | aeb8f8a5a472fac470451742dcdda794479ccd47 /lib/buildsystem/kbuild.sh | |
parent | f54d07d0721acadf46dac160db57d505830249cc (diff) |
_oh_kbuild_testarch(): Return exit status of make.
The exit status of cd was being returned instead.
Diffstat (limited to 'lib/buildsystem/kbuild.sh')
-rw-r--r-- | lib/buildsystem/kbuild.sh | 4 |
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} } |