News for hackers. Stuff that matters.
Re:Is it time for a new Embedded Linux build system? by KingMachiavelli on Monday June 22, 2026 @09:26PM (#48638972)
Embedded just means ARM 99% of the time and it's cheaper and easier to use native ARM servers (AWS has them cheap) than to make 100% of software cross compile. Some parts of the firmware might need to be cross compiled but those projects are designed to cross compile.
Re:Is it time for a new Embedded Linux build system? by okanat on Monday June 22, 2026 @10:00PM (#48639237)
Your target build environment often differs significantly from your server environment, so you end up needing a different toolchain and all of the problems that come with cross-compilation anyway. The toolchain and ABI settings that produce small, battery or instruction cache efficient are usually not you want on servers.
Re:Is it time for a new Embedded Linux build system? by nrdvana on Tuesday June 23, 2026 @12:32AM (#48640321)
I'm not familiar with the problems that would cause "target build environment often differs significantly from your server environment". If you have an ARM server, then you should be able to download and run Alpine docker images, and then fetch most system utilities from the Alpine package repo and then compile a kernel and a few other binaries on top of that, then export an image.

The main reason to not run Debian is that Debian usually makes lots of compile-time decisions for you, and chooses to maximize the enabled options of the software. Alpine makes the opposite choices for you, creating very minimal feature sets.

It's been working well for me, but my use cases is a lot more like a custom in-house DDWRT firmware kind of a thing. If you've experienced additional constraints that make this pattern unworkable, I'd be interested to hear about them.

Re:Is it time for a new Embedded Linux build system? by structural on Tuesday June 23, 2026 @11:41AM (#48646827)
Run on server, chroot into target environment, configure compiler flags for eventual target, done. It's really just an afternoon of setup and then the problem is solved.
Re:Is it time for a new Embedded Linux build system? by KingMachiavelli on Tuesday June 23, 2026 @02:45PM (#48649503)
My toolchain for both is managed by the Nix derivation wrappers. It’s trivial to set custom C/C++/Rust/Go/NodeJS flags. As long as I have one flexible build tool, I can customize it for both server and embedded.