pmbootstrap-meow/pmb
Caleb Connolly 2ee916f5d6
build: add pmb:cross-native2 (MR 2474)
Set things up so that we can run abuild on the native chroot and use
it's cross compilation features rather than running it and the build
system through QEMU. This massively speeds up building when it works.

cross-native used to be quite limited in functionality and didn't
integrate into abuild itself, this commit fixes that.

Packages can opt-in to this by adding pmb:cross-native2 to their options
and configuring makedepends_host and makedepends_build.

This also speeds up building packages like postmarketos-initramfs since
it entirely avoids running commands through QEMU (usually abuild itself
would be run through QEMU).

Lastly, we preserve the old pmb:cross-kernel options, this can be used to
enable the old cross compiler behaviour which is used for cross
compiling kernels in pmaports. This allows them to keep being supporting
while we adapt them to the new cross-native2.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
2025-02-27 01:29:35 +01:00
..
aportgen pmb: Remove unused imports (MR 2545) 2025-02-23 11:40:40 +01:00
build build: add pmb:cross-native2 (MR 2474) 2025-02-27 01:29:35 +01:00
chroot pmb.chroot.run: Add another overload for root() (MR 2515) 2025-02-27 00:28:16 +01:00
ci pmb: Remove unused imports (MR 2545) 2025-02-23 11:40:40 +01:00
commands pmb: Remove unused imports (MR 2545) 2025-02-23 11:40:40 +01:00
config Prepare 3.3.1 release 2025-02-27 01:09:19 +01:00
core core: Arch: define supported arches as a set (MR 2474) 2025-02-27 01:29:35 +01:00
data test: move all tests into separate module (MR 2551) 2025-02-13 01:28:20 +01:00
export pmb: Use explicit re-exports (MR 2545) 2025-02-23 11:40:44 +01:00
flasher pmb: Use explicit re-exports (MR 2545) 2025-02-23 11:40:44 +01:00
helpers core: Arch: add .supported_binary() (MR 2474) 2025-02-27 01:29:30 +01:00
install pmb.install.format: set bytes-per-inode to 16384 (MR 2558) 2025-02-23 13:45:36 +01:00
meta pmb: Remove unused imports (MR 2545) 2025-02-23 11:40:40 +01:00
netboot pmb: Remove unused imports (MR 2545) 2025-02-23 11:40:40 +01:00
parse pmb.parse.apkindex: Improve parse_add_block() type hint (MR 2515) 2025-02-27 00:28:16 +01:00
qemu pmb: Use explicit re-exports (MR 2545) 2025-02-23 11:40:44 +01:00
sideload pmb: Remove unused imports (MR 2545) 2025-02-23 11:40:40 +01:00
__init__.py Prepare 3.3.1 release 2025-02-27 01:09:19 +01:00
types.py build: add pmb:cross-native2 (MR 2474) 2025-02-27 01:29:35 +01:00