Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform a "bootstrap" DevKit build to ensure final DevKit dependencies are built with identical gcc #1014

Merged
merged 5 commits into from
May 10, 2024
19 changes: 17 additions & 2 deletions pipelines/build/devkit/make_devkit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,24 @@ if [ "${BASE_OS}" = "rhel" ]; then
BASE_OS=Centos
fi

# Perform devkit build
# Perform "bootstrap" devkit build
echo "Building 'bootstrap' DevKit toolchain, to be used to build the final DevKit..."
cd make/devkit && pwd && make TARGETS=${devkit_target} BASE_OS=${BASE_OS} BASE_OS_VERSION=${BASE_OS_VERSION}
find ../../build/devkit -type f -print

# 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

# 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}

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

Expand Down