Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: formaggio on July 15, 2025, 05:44:40 AM

Title: Build scripts repository
Post by: formaggio on July 15, 2025, 05:44:40 AM
I'm curious: is there a repository of scripts for producing a working ISO image from scratch? How does it work when you (the administrators/maintainers) prepare an ISO for a new release? I doubt the process is manual but I can't find the build scripts.

I would like to be able to build an ISO image myself and tweak the files in core.gz, specifically my goal is to update busybox and sudo to the latest versions using the official build flags.

If there isn't a repository, that's fine, but it would be great if you can point me to the place where I can find the build flags.
Title: Re: Build scripts repository
Post by: patrikg on July 15, 2025, 06:44:12 AM
We have a little more info on our wiki that you can read.
https://wiki.tinycorelinux.net/doku.php?id=wiki:remastering
 (https://wiki.tinycorelinux.net/doku.php?id=wiki:remastering)https://wiki.tinycorelinux.net/doku.php?id=wiki:integrating_extensions (https://wiki.tinycorelinux.net/doku.php?
id=wiki:integrating_extensions)
Title: Re: Build scripts repository
Post by: formaggio on July 15, 2025, 07:14:09 AM
@patrikg

Thank you for your reply. I'm well aware of remastering but I would like to know the official build flags so that I can produce executables that are as if prepared and distributed by the maintainers. I found https://wiki.tinycorelinux.net/doku.php?id=wiki:creating_extensions to be quite useful. For sudo, I could find the configure flags of sudo by running "sudo sudo -V". For busybox, I found the script at http://repo.tinycorelinux.net/15.x/x86_64/release/src/busybox/. These should answer my questions.

Anyway, it'd be nice if the scripts for producing ISO images are shared.

Thank you.
Title: Re: Build scripts repository
Post by: linic on July 15, 2025, 05:28:00 PM
I doubt the process is manual but I can't find the build scripts.
Maybe amazingly so, the process is manual. At least, that's what I understood from my research. I list some relevant forum posts here https://github.com/linic/tcc?tab=readme-ov-file#this-is-not-building-or-compiling-from-scratch
I did make some scripts of my own in that github repo so I could rebuild parts of core.gz (got x86 only) without manually typing the commands. Those scripts were built using the "compile" files such as the one you mentioned I believe this one http://repo.tinycorelinux.net/15.x/x86_64/release/src/busybox/compile_busybox. Those "compile" files are actually notes from the person who did the compilation manually. Feel free to correct me everyone.