mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-28 14:51:40 +01:00
crossdev creates configs under `/etc/portage/package.keywords` like the following: cross-aarch64-cros-linux-gnu/binutils arm64 -amd64 -~amd64 cross-aarch64-cros-linux-gnu/gcc arm64 -amd64 -~amd64 cross-aarch64-cros-linux-gnu/linux-headers arm64 -amd64 -~amd64 cross-aarch64-cros-linux-gnu/glibc arm64 -amd64 -~amd64 cross-aarch64-cros-linux-gnu/gdb arm64 -amd64 -~amd64 This ensures cross compilers follow the keywords of the target arch rather than the host arch. Meanwhile in the profile when we omit the keyword `package.accept_keywords` only ~arch for the host is implied. So either we would need to configure crossdev to allow ~arch or we just need to be explicit in the profile. The later is a bit easer.