mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
build_torcx_store: Update for newer portage versions
Since EAPI=7 was supported, portage can no longer use different ROOT and SYSROOT values. The torcx images were installed into a temporary root directory after being built using the board's development files. To continue using this setup, the torcx image's packages are built as normal binary packages for the board root without being installed, then the binary packages are installed in the temporary torcx root.
This commit is contained in:
parent
afff45366a
commit
8556474e6a
@ -79,12 +79,25 @@ function torcx_build() (
|
||||
[ -s "${tmproot}/etc/portage/bashrc" ] &&
|
||||
. "${tmproot}/etc/portage/bashrc"
|
||||
|
||||
# Build binary packages using dev files in the board root.
|
||||
emerge-${BOARD} \
|
||||
--buildpkg \
|
||||
--buildpkgonly \
|
||||
--nodeps \
|
||||
--oneshot \
|
||||
--quiet \
|
||||
--root-deps=rdeps \
|
||||
"${pkg}"
|
||||
|
||||
# Install the binary packages in the temporary torcx image root.
|
||||
emerge-${BOARD} \
|
||||
--nodeps \
|
||||
--oneshot \
|
||||
--quiet \
|
||||
--root="${tmproot}" \
|
||||
--root-deps=rdeps \
|
||||
--quiet \
|
||||
--sysroot="${tmproot}" \
|
||||
--usepkgonly \
|
||||
"${pkg}"
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user