diff options
author | P. J. McDermott <pjm@nac.net> | 2014-02-26 20:44:42 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-02-26 20:44:42 (EST) |
commit | 17061e3aae882fb5ebb73a620fab720100623d10 (patch) | |
tree | f4bfe789e7b74b750d0f3d7c4246c57522de7305 /lib/buildsystem/kbuild.sh | |
parent | 8558cf4b5a286ca3f00441bdc79eeb41b1112e3e (diff) |
lib/buildsystem/*.sh: Fix more [ commands.
Diffstat (limited to 'lib/buildsystem/kbuild.sh')
-rw-r--r-- | lib/buildsystem/kbuild.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/buildsystem/kbuild.sh b/lib/buildsystem/kbuild.sh index e11daf1..5525e86 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 [ "x${_OH_BUILDSYSTEM_BUILD_TARGET+set}" = 'xset' ]; then + if [ "x${_OH_BUILDSYSTEM_BUILD_TARGET}" != 'x' ]; then make ARCH="${arch}" CROSS_COMPILE="${OPK_TOOL_PREFIX}" \ "${@}" "${_OH_BUILDSYSTEM_BUILD_TARGET}" rc=${?} - elif [ "x${target+set}" = 'xset' ]; then + elif [ "x${target}" != 'x' ]; then make ARCH="${arch}" CROSS_COMPILE="${OPK_TOOL_PREFIX}" \ "${@}" "${target}" rc=${?} |