summaryrefslogtreecommitdiffstats
path: root/setup
diff options
context:
space:
mode:
authorDave Cobbley <david.j.cobbley@linux.intel.com>2018-08-22 21:40:54 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-08-23 12:39:42 -0400
commit194ff4f1f5d44b12e9cb06ddafa6adb20174a13c (patch)
tree823835cd29daf8901a31ac14c7e6534abf199be3 /setup
parent4feb727cd6b77a68bdaca63e121b378d814f5eaf (diff)
downloadtalos-openbmc-194ff4f1f5d44b12e9cb06ddafa6adb20174a13c.tar.gz
talos-openbmc-194ff4f1f5d44b12e9cb06ddafa6adb20174a13c.zip
[Subtree] Bring openbmc machines to top level
The new subtree model brings the subtrees up from the openbmc-machines layer. Change-Id: I58a03ae1be374bc79ae1438e65e888375d12d0c0 Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'setup')
-rwxr-xr-xsetup32
1 files changed, 15 insertions, 17 deletions
diff --git a/setup b/setup
index 109c83d47..05a1c38bd 100755
--- a/setup
+++ b/setup
@@ -23,25 +23,23 @@ fi
machine() {
local target=$1
- local arch mfg mach realmach
- for arch in meta-openbmc-machines/meta-*; do
- for mfg in $arch/meta-*; do
- for mach in $mfg/meta-*; do
- if [ -d "$mach" -a -d "$mach/conf/machine" ]; then
- realmach=${mach##*meta-}
- # If a target is specified, then check for a match,
- # otherwise just list what we've discovered
- if [ -n "$target" ]; then
- if [ "$realmach" = "$target" ]; then
- echo Machine $target is $mach
- TEMPLATECONF="$mach/conf" source oe-init-build-env build
- return
- fi
- else
- echo "$realmach"
+ local mfg mach realmach
+ for mfg in meta-*; do
+ for mach in $mfg/meta-*; do
+ if [ -d "$mach" -a -d "$mach/conf/machine" ]; then
+ realmach=${mach##*meta-}
+ # If a target is specified, then check for a match,
+ # otherwise just list what we've discovered
+ if [ -n "$target" ]; then
+ if [ "$realmach" = "$target" ]; then
+ echo Machine $target is $mach
+ TEMPLATECONF="$mach/conf" source oe-init-build-env build
+ return
fi
+ else
+ echo "$realmach"
fi
- done
+ fi
done
done
OpenPOWER on IntegriCloud