from Hacker News

Buildroot

by jakogut on 10/5/24, 9:18 PM with 32 comments

  • by lrvick on 10/6/24, 12:07 PM

    For those that want to see full source bootstrapped, deterministic, and container native alternative to buildroot check out https://codeberg.org/stagex

    Can make a bootable OS with just a containerfile, for example:

    https://git.distrust.co/public/airgap/src/branch/main/Contai...

    https://git.distrust.co/public/enclaveos/src/branch/master/C...

  • by IshKebab on 10/6/24, 9:26 AM

    Coincidentally I tried this recently. I dunno if I liked it. It uses the kernel's `make menuconfig` system which seems like it occupies a bad place between "easy usable GUI" and "robust config file you can check in to git".

    Once you've configured it it then does a lot of downloading and compilation of random stuff and it's all strung together with janky shell scripts which means it's almost guaranteed to break.

    I got some weird errors that returned zero google results and the source of the error was a long awful shell pipeline involving `sed`, `tr` etc.

    Doesn't scream quality.

    I gave up and switched to manually compiling Linux and OpenSBI (which is really all I needed so buildroot was overkill anyway). Went much smoother and I actually vaguely understood what was happening.

    I haven't tried Yocto, maybe that is better engineered.

  • by kajkojednojajko on 10/6/24, 9:20 AM

    Me: I couldn't write anything longer than 20 lines in make - there's just one type (string), no debugger, no data structures, no standard library, and not even modules.

    Buildroot developers: let's write a build system in make!

  • by metadat on 10/5/24, 11:22 PM

    How are kernel or application updates applied to buildroot-installed systems?
  • by throwaway9364 on 10/6/24, 10:02 AM

    We’ve built something that goes well with buildroot for installing and updating apps during development or in production.

    Does not require cloud or internet access.

    https://www.voyonic-systems.de/products/voyonic-fieldkit