summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem/kbuild.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-03-06 11:45:14 (EST)
committer P. J. McDermott <pjm@nac.net>2014-03-06 11:45:14 (EST)
commit6c229db00449a0cfc4258c44e36247d0f6826173 (patch)
tree7afbf36146e438f2e84d38c34e597027956f35ff /lib/buildsystem/kbuild.sh
parent731e0cf0e59da3ee0b6bda99f70e8be4d54d4d08 (diff)
lib/*.sh: Consolidate arg variable assignments.
Diffstat (limited to 'lib/buildsystem/kbuild.sh')
-rw-r--r--lib/buildsystem/kbuild.sh9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/buildsystem/kbuild.sh b/lib/buildsystem/kbuild.sh
index ae548f9..83ecb35 100644
--- a/lib/buildsystem/kbuild.sh
+++ b/lib/buildsystem/kbuild.sh
@@ -70,12 +70,11 @@ _oh_kbuild_install()
_oh_kbuild_update_target()
{
- local target=
+ local target="${1}"
local arch=
local rc=
- target="${1}"
- shift
+ shift 1
if ! arch="$(oh_buildsystem_arch "${OPK_HOST_ARCH}" 'kbuild')"
then
@@ -106,11 +105,9 @@ _oh_kbuild_update_target()
_oh_kbuild_testarch()
{
- local arch=
+ local arch="${1}"
local rc=
- arch="${1}"
-
mkdir -p "${_OH_BUILDSYSTEM_BUILD_DIR}"
cd "${_OH_BUILDSYSTEM_BUILD_DIR}"