Skip to content

Commit

Permalink
Update DevKit build "bootstrap" to ensure all tooling comes from boot…
Browse files Browse the repository at this point in the history
…strap (#1043)

* Explicitly set DevKit make bootstrap TOOLS

Signed-off-by: Andrew Leonard <[email protected]>

* Explicitly set DevKit make bootstrap TOOLS

Signed-off-by: Andrew Leonard <[email protected]>

* Explicitly set DevKit make bootstrap TOOLS

Signed-off-by: Andrew Leonard <[email protected]>

---------

Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard authored Jun 19, 2024
1 parent 5866850 commit 03479cd
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions pipelines/build/devkit/make_devkit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,23 @@ cd make/devkit && pwd && make TARGETS=${devkit_target} BASE_OS=${BASE_OS} BASE_O

# Move "bootstrap" devkit toolchain to a new folder and setup gcc toolchain to point at it
cd ../..
mv build/devkit/result/${devkit_target}-to-${devkit_target} build/bootstrap_${devkit_target}-to-${devkit_target}
export CC=$(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}/bin/gcc
export CXX=$(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}/bin/g++
export LD_LIBRARY_PATH=$(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}/lib64
export PATH=$(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}/bin:$PATH
gcc --version
BOOTSTRAP_DEVKIT="$(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}"
mv build/devkit/result/${devkit_target}-to-${devkit_target} ${BOOTSTRAP_DEVKIT}

# Make final "DevKit" using the bootstrap devkit
rm -rf build/devkit
echo "Building 'final' DevKit toolchain, using 'bootstrap' toolchain in $(pwd)/build/bootstrap_${devkit_target}-to-${devkit_target}"
cd make/devkit && pwd && make TARGETS=${devkit_target} BASE_OS=${BASE_OS} BASE_OS_VERSION=${BASE_OS_VERSION}
echo "Building 'final' DevKit toolchain, using 'bootstrap' toolchain in ${BOOTSTRAP_DEVKIT}"
cd make/devkit && pwd && \
LD_LIBRARY_PATH="${BOOTSTRAP_DEVKIT}/lib64:${BOOTSTRAP_DEVKIT}/lib" \
PATH="${BOOTSTRAP_DEVKIT}/bin:$PATH" \
make TARGETS=${devkit_target} BASE_OS=${BASE_OS} BASE_OS_VERSION=${BASE_OS_VERSION} \
CC=${BOOTSTRAP_DEVKIT}/bin/gcc \
CXX=${BOOTSTRAP_DEVKIT}/bin/g++ \
LD=${BOOTSTRAP_DEVKIT}/bin/ld \
AR=${BOOTSTRAP_DEVKIT}/bin/ar \
AS=${BOOTSTRAP_DEVKIT}/bin/as \
RANLIB=${BOOTSTRAP_DEVKIT}/bin/ranlib \
OBJDUMP=${BOOTSTRAP_DEVKIT}/bin/objdump

# Back to original folder
cd ../../..
Expand Down

0 comments on commit 03479cd

Please sign in to comment.