Hello everyone.
I know that my threads seem a little weird, techical and complicated, sometimes I'm afraid to be mistaken for troll.
A little flashback
When I was a kid I always wanted to build my operative system from scratch, my linux distro, to be more precise.. I've discovered Linux From Scratch but I was too lazy or young to understand all these commands obscure and hard to understand.
A couple of years ago, after having gained a lot of experience with various distros such as Slackware, Slax, Slitaz, Debian, Ubuntu and Puppy Linux, I decided to dive inside that book and I became addicted to it.
The most interesting part was Chapter 5: Constructing a Temporary System as it taught me how to build a indipendent temporary system isolated from the host.
Then I've learned about cross-compiling and musl-libc from clfs-embedded.
Now for the central part of the topic
One of the things that I didn't like about LFS and cross-compilers is that building the GNU toolchain (especially GCC) takes
a lot of time and it's
big.
Are there any alternatives to the GNU tools? (Glibc, GCC, Binutils)
I only need a C compiler and a C Library that is able to rebuild itself and is able to compile the following things:
- binutils (or an equivalent package that provides ld, as, ar, ranlib, etc )
- the Linux Kernel (bzImage, headers and modules)
- busybox
- python? - this is not extremely required, one Programming language is enough.
Can you also explain me how to make a cross-compiler that
works using that tools? I'm already struggling with
this and
that
The targets of the cross-compiler should be i486 and ARMv6 with soft floating point. For the i486 architecture I could figure out myself how to do it. Every kind of help that you will give me is appreciated.
Thanks for your patience