[Toybox] [RFC] Compiling Linux without GNU Make via samurai (thornk)

abit_foggy abit_foggy at proton.me
Wed Oct 7 05:05:20 UTC 2026


Hi all,

Made a small C99 tool called thornk to lower the Linux kernel Kbuild
tree into flat Ninja files for samurai (samu).

To bypass make defconfig and prepare, it parses $CC -S assembly directly
to generate bounds.h, asm-offsets.h, and autoconf.h natively without
host Make or sed scripts.

Tested on Linux 6.12 x86_64 with Clang, LLD, and samu, and boots in QEMU:
https://github.com/abit-foggy/thornk

Curious if this is useful for minimal bootstrapping or if anyone has
thoughts on the approach.

Best,foggy

Sent with [Proton Mail](https://proton.me/mail/home) secure email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox/attachments/20261007/29c5c9f4/attachment.htm>


More information about the Toybox mailing list