summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/buildsystem/kbuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/buildsystem/kbuild.sh b/lib/buildsystem/kbuild.sh
index 4c4f64c..a5f148f 100644
--- a/lib/buildsystem/kbuild.sh
+++ b/lib/buildsystem/kbuild.sh
@@ -110,8 +110,13 @@ _oh_kbuild_testarch()
_ohbskta_arch="${1}"
+ mkdir -p "${_OH_BUILDSYSTEM_BUILD_DIR}"
+ cd "${_OH_BUILDSYSTEM_BUILD_DIR}"
+
make -n ARCH="${_ohbskta_arch}" help >/dev/null 2>&1
+ cd "${_OH_BUILDSYSTEM_WORK_AREA}"
+
_oh_return ${?}
return ${?}
}