| if [ "$(basename -- "$0")" = "setup" ]; then |
| echo The script must be sourced, not executed |
| 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 |
| # 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 |
| [ -n "$target" ] && echo "No such machine!" |
| echo Target machine must be specified. Use one of: |
| elif [ "$1" = "qemuarm" ]; then |