summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem/kbuild.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-02-26 14:30:28 (EST)
committer P. J. McDermott <pjm@nac.net>2014-02-26 14:30:28 (EST)
commit079946533905442c8a0fa1a25b76c99462e21b46 (patch)
tree3141dcbd119893bbfedc3647d4c44d337fd2840f /lib/buildsystem/kbuild.sh
parent7e3a86e5195282ad42154449e7f409ba9f62c439 (diff)
lib/buildsystem/*.sh: Improve more [ commands.
Diffstat (limited to 'lib/buildsystem/kbuild.sh')
-rw-r--r--lib/buildsystem/kbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/buildsystem/kbuild.sh b/lib/buildsystem/kbuild.sh
index 3d6fd1b..e11daf1 100644
--- a/lib/buildsystem/kbuild.sh
+++ b/lib/buildsystem/kbuild.sh
@@ -85,11 +85,11 @@ _oh_kbuild_update_target()
mkdir -p "${_OH_BUILDSYSTEM_BUILD_DIR}"
cd "${_OH_BUILDSYSTEM_BUILD_DIR}"
- if [ -n "${_OH_BUILDSYSTEM_BUILD_TARGET}" ]; then
+ if [ "x${_OH_BUILDSYSTEM_BUILD_TARGET+set}" = 'xset' ]; then
make ARCH="${arch}" CROSS_COMPILE="${OPK_TOOL_PREFIX}" \
"${@}" "${_OH_BUILDSYSTEM_BUILD_TARGET}"
rc=${?}
- elif [ -n "${target}" ]; then
+ elif [ "x${target+set}" = 'xset' ]; then
make ARCH="${arch}" CROSS_COMPILE="${OPK_TOOL_PREFIX}" \
"${@}" "${target}"
rc=${?}