summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick 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)
commitf38e654fcba51f7958cb61364720b7d3e888d943 (patch)
tree5158cff80e8d01199d908520d170f2cfe0014d4a /src
parent56e938595e866f24fac062efa8aa1482ce379828 (diff)
ob-buildenv: Declare local variables and wrap long line
Diffstat (limited to 'src')
-rw-r--r--src/ob-buildenv.sh11
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}"