From 06b4ef4c6fa9f4bdbeec62a2513f0db9a93176c1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 25 Feb 2014 13:03:24 -0500 Subject: _oh_kbuild_testarch(): Return exit status of make. The exit status of cd was being returned instead. --- 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} } -- cgit v0.9.1