Skip to content

Commit

Permalink
[build_duet.tool] Allow to override default toolchain via env var TAR…
Browse files Browse the repository at this point in the history
…GETCHAIN
  • Loading branch information
nms42 committed Dec 31, 2020
1 parent 89e9ff6 commit 615f841
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build_duet.tool
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,16 @@ if [ "${TARGET}" = "" ]; then
TARGET="RELEASE"
fi

if [ "${TARGETCHAIN}" = "" ]; then
TARGETCHAIN="XCODE5"
fi

if [ "${INTREE}" != "" ]; then
# In-tree compilation is merely for packing.
cd .. || exit 1

build -a "${TARGETARCH}" -b "${TARGET}" -t XCODE5 -p OpenCorePkg/OpenDuetPkg.dsc || exit 1
BUILD_DIR="${WORKSPACE}/Build/OpenDuetPkg/${TARGET}_XCODE5"
build -a "${TARGETARCH}" -b "${TARGET}" -t ${TARGETCHAIN} -p OpenCorePkg/OpenDuetPkg.dsc || exit 1
BUILD_DIR="${WORKSPACE}/Build/OpenDuetPkg/${TARGET}_${TARGETCHAIN}"
BUILD_DIR_ARCH="${BUILD_DIR}/${TARGETARCH}"
imgbuild "${TARGETARCH}"
else
Expand Down

0 comments on commit 615f841

Please sign in to comment.