summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem
diff options
context:
space:
mode:
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}"