Skip to content
Snippets Groups Projects

Draft: patches for native cross-compilation

Open Caleb Connolly requested to merge caleb/abuild-cross into master

When combined with pmbootstrap!2474 (merged) this allows for some packages to be built with abuild and the build tooling (e.g. meson) running on the native chroot rather than through QEMU, this drastically speeds up compilation.

When cross compiling, the makedepends should be split up into makedepends_host and makedepends_build. The build dependencies are those like "meson", build tools that we want to install and run on the native chroot. The host dependencies, are libraries, headers, etc for the architecture we're targeting. This follows the same semantics as Meson.

I've adjusted pmbootstrap to support these, and fall back by installing all makedepends in both chroots (which obviously isn't ideal).

Edited by Caleb Connolly

Merge request reports

Merge request pipeline #216398 failed

Merge request pipeline failed for 1246cdcb

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Caleb Connolly added 8 commits

    added 8 commits

    • 14202f52...62440e5f - 3 commits from branch master
    • 055cb4f0 - TEMP: fork meson to patch abuild-meson
    • ea6aecc8 - temp/meson: patch abuild-meson to work with pmbootstrap
    • cf51028a - unl0kr: fix cross compiling
    • 6f20f692 - modem/q6voiced: support cross compiling
    • d05b64c6 - pbsplash: support cross compiling

    Compare with previous version

  • mentioned in merge request pmbootstrap!2474 (merged)

  • Caleb Connolly changed the description

    changed the description

  • added 1 commit

    • ebe18e73 - device/*: use makedepends_build instead of makedepends

    Compare with previous version

  • Caleb Connolly added 636 commits

    added 636 commits

    • ebe18e73...22ec267f - 632 commits from branch master
    • c83e380a - modem/q6voiced: support cross compiling
    • 6622152c - pbsplash: support cross compiling
    • 3ed31219 - **/{linux,u-boot}-*: use pmb:cross-kernel instead of cross-native
    • cf45cfeb - postmarketos-initramfs: use cross-native

    Compare with previous version

  • Caleb Connolly marked this merge request as ready

    marked this merge request as ready

  • Caleb Connolly changed the description

    changed the description

  • Caleb Connolly added 8 commits

    added 8 commits

    • cf45cfeb...371671f6 - 3 commits from branch master
    • c4aa6f32 - systemd/postmarketos-base-systemd: remove notice about systemd being in preview
    • 46162580 - modem/q6voiced: support cross compiling
    • 371254e9 - pbsplash: support cross compiling
    • f896be3e - **/{linux,u-boot}-*: use pmb:cross-kernel instead of cross-native
    • 69f1db86 - postmarketos-initramfs: use cross-native

    Compare with previous version

  • Caleb Connolly added 2 commits

    added 2 commits

    • e49e8539 - **/{linux,u-boot}-*: use pmb:cross-kernel instead of cross-native
    • d20badf5 - postmarketos-initramfs: use cross-native

    Compare with previous version

  • Caleb Connolly resolved all threads

    resolved all threads

  • Robert Eckelmann approved this merge request

    approved this merge request

  • Caleb Connolly marked this merge request as draft

    marked this merge request as draft

  • Sorry to bother you @caleb,

    but we've detected that this merge request hasn't seen any recent activity. If you need help, want to discuss your approach with developers, or you are all done and this is waiting for review, you can ping @postmarketOS. You can also ask on matrix in #devel:postmarketos.org or #postmarketos-devel on OFTC.

    Thanks for your contribution.

    • Resolved by Caleb Connolly

      This needs to be overhauled, for example pmb:cross-native -> pmb:cross-kernel rename has been removed in pmbootstrap!2474 (merged) and instead the new option is called pmb:cross-native2.

      How about adjusting only a few packages like postmarketos-mkinitfs, unl0kr, ... first in this MR to use pmb:cross-native2 and then adjust more in follow-up MRs?

  • Caleb Connolly added 300 commits

    added 300 commits

    • d20badf5...082b6f19 - 296 commits from branch master
    • 7421d695 - systemd/postmarketos-base-systemd: remove notice about systemd being in preview
    • 8aed9c59 - modem/q6voiced: support cross compiling
    • d5b1d589 - pbsplash: support cross compiling
    • 10438e8d - postmarketos-initramfs: use cross-native

    Compare with previous version

  • Caleb Connolly resolved all threads

    resolved all threads

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading