Skip to content
Snippets Groups Projects

build: fix cross-compilation with abuild (introducing pmb:cross-native2)

Merged Casey requested to merge caleb/abuild-cross into master

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.

Packages can opt-in to this by adding pmb:cross-native2 to their options. It's known to work with well-behaved meson packages with a patch to abuild-meson

I'm describing this as a fix since the way pmb:cross-native worked was fundamentally wrong.

See example usage in pmaports!5755

Fix #659 (closed)

Edited by Oliver Smith

Merge request reports

Merge request pipeline #216315 passed

Merge request pipeline passed for 09053af5

Approved by

Merged by Oliver SmithOliver Smith 1 month ago (Feb 27, 2025 12:40am UTC)

Merge details

  • Changes merged into master with 09053af5.
  • Deleted the source branch.
  • Auto-merge enabled

Pipeline #216316 passed

Pipeline passed for 09053af5 on master

Deployed to dep‎loy‎ 1 month ago

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Robert Eckelmann approved this merge request

    approved this merge request

  • Casey
  • Newbyte marked this merge request as draft

    marked this merge request as draft

  • Marking as draft to get this out of the review queue.

  • Casey added 129 commits

    added 129 commits

    Compare with previous version

  • Casey resolved all threads

    resolved all threads

  • Casey added 1 commit

    added 1 commit

    Compare with previous version

  • Casey marked this merge request as ready

    marked this merge request as ready

  • Casey added 24 commits

    added 24 commits

    Compare with previous version

  • Casey changed title from build: support native cross compilation with abuild to build: fix cross-compilation with abuild

    changed title from build: support native cross compilation with abuild to build: fix cross-compilation with abuild

  • Casey changed the description

    changed the description

  • Casey added 1 commit

    added 1 commit

    Compare with previous version

  • Casey added 1 commit

    added 1 commit

    Compare with previous version

  • Casey added 1 commit

    added 1 commit

    Compare with previous version

  • Casey added 1 commit

    added 1 commit

    Compare with previous version

  • Casey added 1 commit

    added 1 commit

    Compare with previous version

  • Oliver Smith
  • Oliver Smith
  • Oliver Smith
  • Oliver Smith
  • Oliver Smith
  • Oliver Smith
  • Oliver Smith
  • This is amazing! Looking forward to getting this in, thanks so much for working on this @caleb!

  • Casey added 1 commit

    added 1 commit

    Compare with previous version

  • Clayton Craft added 1 commit

    added 1 commit

    • d5e8dd51 - fixup! build: fix pmb:cross-native

    Compare with previous version

  • Clayton Craft marked this merge request as draft from d5e8dd51

    marked this merge request as draft from d5e8dd51

  • Clayton Craft added 1 commit

    added 1 commit

    • a0936935 - fixup! build: fix pmb:cross-native

    Compare with previous version

    • Resolved by Casey

      I pushed a fixup commit to get this working with Go apps (tested with postmarketos-mkinitfs), I'm not sure if dropping that match statement there is OK or if it should go somewhere else, so feel free to refactor :D

  • Casey added 3 commits

    added 3 commits

    • 1ffba582 - build: fix pmb:cross-native
    • 4ecd7646 - build: autodetect: default to cross-native in more cases
    • 9f32936e - fixup! build: fix pmb:cross-native

    Compare with previous version

  • Casey added 9 commits

    added 9 commits

    • 9f32936e...afecbb15 - 5 commits from branch master
    • ecae778e - core: Arch: add .supported_binary()
    • 57fa7238 - core: Arch: add method to map to Go arch
    • 87fcc1f8 - build: fix pmb:cross-native
    • 7d4e9f1c - build: autodetect: default to cross-native in more cases

    Compare with previous version

  • Casey marked this merge request as ready

    marked this merge request as ready

  • Casey changed the description

    changed the description

  • Casey added 4 commits

    added 4 commits

    • bce05cd9 - core: Arch: add .supported_binary()
    • d30d167a - core: Arch: add method to map to Go arch
    • 30a9a73c - build: fix pmb:cross-native
    • d7e584a5 - build: autodetect: default to cross-native in more cases

    Compare with previous version

  • Casey added 2 commits

    added 2 commits

    • ea9f53f1 - build: add pmb:cross-native2
    • 944b98c1 - build: autodetect: default to cross-native in more cases

    Compare with previous version

  • Casey added 3 commits

    added 3 commits

    • aff5d6c9 - core: Arch: add method to map to Go arch
    • ce85b9b2 - build: add pmb:cross-native2
    • 9f29e9ec - build: autodetect: default to cross-native in more cases

    Compare with previous version

  • Casey added 2 commits

    added 2 commits

    • a11686c1 - build: add pmb:cross-native2
    • 05bf8789 - build: autodetect: default to cross-native in more cases

    Compare with previous version

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