3 ms·
The best designed and implemented of these scripts has always been NetBSD's build.sh. Builds the whole OS, including base userspace, compiler etc and ISO images
by justincormack 12y ago
The best designed and implemented of these scripts has always been NetBSD's build.sh. Builds the whole OS, including base userspace, compiler etc and ISO images. Configurable. And it cross compiles so you can do the whole thing from OSX or whatever. It builds all the tools you need to do the build, such as (cross) compilers etc.
Basically download source then [1]
./build.sh -U -u -m amd64 release
You can change the options too. Very well designed, if you like this sort of thing. And there is a script to build it all and run the test suite under qemu just to be sure [2].
[1] https://www.netbsd.org/docs/guide/en/chap-build.html https://www.netbsd.org/docs/guide/en/chap-build.html
[2] http://www.gson.org/netbsd/anita/ http://www.gson.org/netbsd/anita/
- kbaker 12y agoFor a Linux distro, definitely check out the Yocto Project which has similar goals. It is quickly taking over the embedded Linux BSP space. In addition to configuring and building the entire OS base image, including cross-compiling, managing the base image, including custom third-party software, testing with a qemu image etc., it also coordinates working with a team of developers during development by managing build artifacts, and controls software updates to the new distro after it is deployed by building apt- or rpm- (or opkg-) style packages automatically. Maybe a bit of a learning curve, but it is very well documented and has a large community and some big companies behind it. Definitely worth it for the flexibility. - https://www.yoctoproject.org/ https://www.yoctoproject.org/ - https://www.yoctoproject.org/docs/current/yocto-project-qs/yocto-project-qs.html https://www.yoctoproject.org/docs/current/yocto-project-qs/y...