diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 12:03:54 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 12:03:54 (EDT) |
commit | f38e654fcba51f7958cb61364720b7d3e888d943 (patch) | |
tree | 5158cff80e8d01199d908520d170f2cfe0014d4a | |
parent | 56e938595e866f24fac062efa8aa1482ce379828 (diff) |
ob-buildenv: Declare local variables and wrap long line
-rw-r--r-- | src/ob-buildenv.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ob-buildenv.sh b/src/ob-buildenv.sh index 104ade4..fc7c472 100644 --- a/src/ob-buildenv.sh +++ b/src/ob-buildenv.sh @@ -21,6 +21,9 @@ set -eu setup_build_helper() { + local dep= + local dep_pkg= + IFS=', ' for dep in $(ob_get_source_parameter 'Build-Depends'); do unset IFS @@ -39,8 +42,10 @@ setup_build_helper() setup_toolchain() { - # This check is done to allow at least native building on unsupported OSes. - # It may be removed in the future. + local tool_prefix= + + # This check is done to allow at least native building on unsupported + # OSes. It may be removed in the future. if [ x"${OPK_BUILD_ARCH}" != x"${OPK_HOST_ARCH}" ]; then tool_prefix="${OPK_HOST_ARCH}-" else @@ -73,6 +78,8 @@ setup_toolchain() setup_build_flags() { + local build_flags= + build_flags="$(ob_get_system_path 'buildflags' "${OPK_HOST_ARCH}")" if [ -r "${build_flags}" ]; then . "${build_flags}" |