summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem
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
parent731e0cf0e59da3ee0b6bda99f70e8be4d54d4d08 (diff)
lib/*.sh: Consolidate arg variable assignments.
Diffstat (limited to 'lib/buildsystem')
-rw-r--r--lib/buildsystem/kbuild.sh9
-rw-r--r--lib/buildsystem/make.sh3
2 files changed, 4 insertions, 8 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}"
diff --git a/lib/buildsystem/make.sh b/lib/buildsystem/make.sh
index a6c4dc2..2837b9d 100644
--- a/lib/buildsystem/make.sh
+++ b/lib/buildsystem/make.sh
@@ -83,11 +83,10 @@ _oh_make_install()
_oh_make_update_first_defined_target()
{
- local targets=
+ local targets="${1}"
local target=
local rc=
- targets="${1}"
shift
mkdir -p "${_OH_BUILDSYSTEM_BUILD_DIR}"