Skip to content

Commit

Permalink
Build: Allow overriding default targets for Duet standard build
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton committed Dec 28, 2022
1 parent c4c6939 commit 7a288f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build_duet.tool
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ package() {
echo "Missing package directory $1 at $(pwd)"
exit 1
fi

if [ ! -d "$1"/../FV ]; then
echo "Missing FV directory $1/../FV at $(pwd)"
exit 1
Expand Down Expand Up @@ -137,7 +137,10 @@ if [ "${INTREE}" != "" ]; then
BUILD_DIR_ARCH="${BUILD_DIR}/${TARGETARCH}"
imgbuild "${TARGETARCH}"
else
TARGETS=(DEBUG RELEASE)
if [ "$TARGETS" = "" ]; then
TARGETS=(DEBUG RELEASE)
export TARGETS
fi
if [ "$ARCHS" = "" ]; then
ARCHS=(X64 IA32)
export ARCHS
Expand All @@ -146,7 +149,6 @@ else
SELFPKG=OpenDuetPkg
NO_ARCHIVES=1

export TARGETS
export SELFPKG_DIR
export SELFPKG
export NO_ARCHIVES
Expand Down

0 comments on commit 7a288f3

Please sign in to comment.