flatcar-scripts/build_library/catalyst_sdk.sh
James Le Cuirot 5ab0ba0d21
Create user-patches symlink in the Catalyst stage 4 fsscript
Otherwise packages subsequently built by this script do not have the
patches applied.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
2024-08-08 16:13:35 +01:00

26 lines
784 B
Bash

#!/bin/bash
set -e
source /tmp/chroot-functions.sh
source /tmp/toolchain_util.sh
ln -vsfT "$(portageq get_repo_path / coreos-overlay)/coreos/user-patches" \
/etc/portage/patches
echo "Double checking everything is fresh and happy."
run_merge -uDN --with-bdeps=y world
echo "Setting the default Python interpreter"
eselect python update
echo "Building cross toolchain for the SDK."
configure_crossdev_overlay / /usr/local/portage/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