Re:Is it time for a new Embedded Linux build system?
by Palomides on Monday June 22, 2026 @09:59PM
(#48639221)
I'm not very familiar with nix, how well does it do with cross compiling? is anyone actually using it for yocto sorts of domains?
[ Parent
| on HN ]
Re:Is it time for a new Embedded Linux build system?
by sollniss on Monday June 22, 2026 @11:27PM
(#48639873)
You can generally remotely build for any supported architecture[1]. The build process will be painfully slow though if you have cache misses.
[1] https://search.nixos.org/options?channel=26.05&query=boot.bi...
Re:Is it time for a new Embedded Linux build system?
by throwawayqqq11 on Tuesday June 23, 2026 @06:47AM
(#48642988)
Nitpick: binfmt.emulatedSystems is not true cross compilation. It sets up a nixos to enable emulated native compilation. After painful tinkering, i prefer this way too. When i recall correctly, for cross compilation you'd have to use nixpkgs flags.
Re:Is it time for a new Embedded Linux build system?
by actionfromafar on Tuesday June 23, 2026 @07:26AM
(#48643348)
At some point it's a matter of perspective. If the emulated system is fast, it feels the same as "true" cross compilation. In the end it's a bunch of bits and bytes which produces some other bits and bytes when we poke it. If it goes fast, it's good. If it goes slow, it's painful.
Re:Is it time for a new Embedded Linux build system?
by cbrake on Wednesday June 24, 2026 @05:33PM
(#48665883)
Is this similar to QEMU user mode emulation?
Re:Is it time for a new Embedded Linux build system?
by nine_k on Tuesday June 23, 2026 @12:07AM
(#48640147)
We do Nix-based cross-compiling for non-embedded software (ARM vs x64). I'd say it works mostly transparently.
Re:Is it time for a new Embedded Linux build system?
by rendaw on Tuesday June 23, 2026 @01:40AM
(#48640789)
Nixos can cross build os images for Le Potato with device tree stuff: https://hub.libre.computer/t/nixos-for-aml-s905x-cc-le-potat...