diff options
author | jmbills <jason.m.bills@intel.com> | 2022-01-18 21:55:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 21:55:05 +0300 |
commit | 7cf0c1cd0ce835d1833509b7b911e8a97380278b (patch) | |
tree | 0b45c3beaa9874facc4ed1a2395a31e42be0135d /setup | |
parent | 4dac5fcd49b5e2de1074f1363775ec0f19041072 (diff) | |
parent | 1fc0d70f658da30091bcd49f9bf29aecd6b99ba7 (diff) | |
download | openbmc-7cf0c1cd0ce835d1833509b7b911e8a97380278b.tar.xz |
Merge pull request #76 from Intel-BMC/update1-0.86
Update
Diffstat (limited to 'setup')
-rwxr-xr-x | setup | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2018, YADRO # Author: Alexander Amelkin <a.amelkin@yadro.com> @@ -49,10 +49,10 @@ machine() { tmpl=${cfg%/machine/*.conf} # Skip any machines that don't support meta-phosphor. - if [ ! -e $tmpl/bblayers.conf.sample ]; then + if [ ! -e "$tmpl/bblayers.conf.sample" ]; then continue fi - if ! grep -q "##OEROOT##/meta-phosphor" $tmpl/bblayers.conf.sample; then + if ! grep -q "##OEROOT##/meta-phosphor" "$tmpl/bblayers.conf.sample"; then continue fi @@ -61,9 +61,9 @@ machine() { if [ -n "$target" ]; then if [ "${name}" = "${target}" ]; then echo "Machine ${target} found in ${tmpl%/conf}" - mkdir -p ${build_dir} + mkdir -p "${build_dir}" TEMPLATECONF="${tmpl}" source \ - oe-init-build-env ${build_dir} + oe-init-build-env "${build_dir}" if [ "$(cat conf/templateconf.cfg)" = "${tmpl}" ]; then sed "s/^\(MACHINE\s*[?:]*\s*=\s*\).*$/\1\"${target}\"/" \ @@ -90,6 +90,6 @@ else if [ -z "$2" ]; then bld_dir="build/$1" fi - machine $1 $bld_dir + machine "$1" "$bld_dir" fi |