mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
fix(bootstrap_sdk): Don't include cross toolchains in final tarball.
The packages have to be downloaded separately so don't waste space including it in the stage4 tarball.
This commit is contained in:
parent
828a4e1710
commit
51f52bbca2
@ -11,12 +11,11 @@ for cross_chost in x86_64-cros-linux-gnu; do
|
||||
--stable --ex-gdb --init-target \
|
||||
--target "${cross_chost}" || exit 1
|
||||
|
||||
# If PKGCACHE is enabled check to see if binary packages are available
|
||||
# or (due to --noreplace) the packages are already installed. If so then
|
||||
# we don't need to perform a full bootstrap and just call emerge instead.
|
||||
# If PKGCACHE is enabled check to see if binary packages are available.
|
||||
# If so then don't perform a full bootstrap and just call emerge instead.
|
||||
if [[ -n "${clst_PKGCACHE}" ]] && \
|
||||
emerge ${clst_myemergeopts} --usepkgonly --binpkg-respect-use=y \
|
||||
--noreplace "${cross_pkgs[@]}" &>/dev/null
|
||||
--pretend "${cross_pkgs[@]}" &>/dev/null
|
||||
then
|
||||
run_merge -u "${cross_pkgs[@]}"
|
||||
else
|
||||
@ -26,6 +25,11 @@ for cross_chost in x86_64-cros-linux-gnu; do
|
||||
--stable --ex-gdb --stage4 \
|
||||
--target "${cross_chost}" || exit 1
|
||||
fi
|
||||
|
||||
# There is no point to including the built packages in the final tarball
|
||||
# because the packages will have to be downloaded anyway due to how the
|
||||
# cross toolchains are managed in board sysroots.
|
||||
crossdev --force -C "${cross_chost}"
|
||||
done
|
||||
|
||||
echo "Double checking everything is fresh and happy."
|
||||
|
Loading…
x
Reference in New Issue
Block a user