mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
Before, we were relying on the toolchains job to build and upload packages that were part of the SDK. With this change, all packages that should be part of the SDK are built and uploaded by the SDK job. The toolchains job only builds toolchain packages specific for the release. This change includes several adjustments done to both the SDK and the toolchains jobs to make this work: * Make the SDK job build all cross toolchains, including Rust * Stop building Rust in the toolchains job and use the one in the SDK instead. * In toolchain_util.sh: detect when the symlink folder for crossdev packages is missing and run crossdev to create it during update_chroot setup. * Make it possible to build the SDK starting from stage 4 instead of stage 1, to make the SDK building faster for PR branches / nightlies (full build should still be done for releases / weeklies).
23 lines
688 B
Bash
23 lines
688 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
source /tmp/chroot-functions.sh
|
|
source /tmp/toolchain_util.sh
|
|
|
|
echo "Double checking everything is fresh and happy."
|
|
run_merge -uDN --with-bdeps=y world
|
|
|
|
echo "Setting the default Python interpreter to Python 2."
|
|
eselect python set python2.7
|
|
|
|
echo "Building cross toolchain for the SDK."
|
|
configure_crossdev_overlay / /tmp/crossdev
|
|
|
|
for cross_chost in $(get_chost_list); do
|
|
echo "Building cross toolchain for ${cross_chost}"
|
|
PKGDIR="$(portageq envvar PKGDIR)/crossdev" \
|
|
install_cross_toolchain "${cross_chost}" ${clst_myemergeopts}
|
|
PKGDIR="$(portageq envvar PKGDIR)/crossdev" \
|
|
install_cross_rust "${cross_chost}" ${clst_myemergeopts}
|
|
done
|