Skip to content

Commit

Permalink
feat: add single-shot mode to build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBMJ committed Oct 6, 2024
1 parent 677a362 commit 118128d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,23 @@ else
exit 1
fi

declare -a ARGS
for var in "$@"; do
ARGS[${#ARGS[@]}]="$var"
shift
done

TOP_DIR=$(dirname $THIS_SCRIPT)

DISTRO=bmj
BITBAKEDIR="$TOP_DIR/poky/bitbake"
export DISTRO BITBAKEDIR

. $TOP_DIR/oe-init-build-env
bash

if [ -z "${ARGS[0]}" ]; then
bash
exit 0
fi

${ARGS[@]}

0 comments on commit 118128d

Please sign in to comment.