Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is LFS made to be a "Gentoo-like" generic distro for my home PC or was it made specifically to create my own custome distribution that I can create an ISO from and distribute universally with all the other distros?
If you consider that another name for "Linux from Scratch" could be "Do It Yourself Linux" you would see that it is an excellent tutorial to show the possibility of building a Linux system that is custom taylored to your own needs.
Since LFS has been around longer than Gentoo, I do not think it is correct to say that it's intention was to create a Gentoo-like distro. I believe that Linux from Scratch was around before any of the "source distros". Is that correct?
I still shake my head everytime I see "Linux From Scratch"... It's like making a chocolate cake from scratch, and the first ingredient listed is an already baked Betty Crocker chocolate cake.
Give us a bit, we have a build for building LFS from pretty much anything that you can build gcc on.
When time permits it will be merged into the lfs-unstable branch.
Of course from M$ or MacOSX you need to patch glibc to build on a non-case-sensitive filesystem,
and with non-gnu based unices you gotta lot of extra (GNU) packages to build before you start,
to use instead of the build-hosts which may not have all required features.
Originally posted by mdh Give us a bit, we have a build for building LFS from pretty much anything that you can build gcc on.
When time permits it will be merged into the lfs-unstable branch.
Of course from M$ or MacOSX you need to patch glibc to build on a non-case-sensitive filesystem,
and with non-gnu based unices you gotta lot of extra (GNU) packages to build before you start,
to use instead of the build-hosts which may not have all required features.
[R]
I think that would just about blow Bill Gates' head right off. Linux from Scratch done on a Windows system!
All of this really is just raising the question, which came first, the chicken or the egg. In this case, the egg is Linux, and the chicken is the OS being used to build Linux. Obviously it couldn't have been Linux, but now that we have it, is it really a big deal that we're using Linux as a host OS to build Linux? I mean, doesn't LFS go out of it's way NOT to use the host system as much as possible?
Originally posted by rickseiden I mean, doesn't LFS go out of it's way NOT to use the host system as much as possible?
Yes LFS does go out of it's way, but there are some needed tools provided by the host that LFS needs..........but once you build the /LFS/tools and chroot to build the filesystem, LFS is on it's own.........
Originally posted by 320mb Yes LFS does go out of it's way, but there are some needed tools provided by the host that LFS needs..........but once you build the /LFS/tools and chroot to build the filesystem, LFS is on it's own.........
Yes, but as someone else pointed out, you don't have to start it on Linux to get to Linux. LFS just happens to work best on there because it's easiest, and LFS is an educational tool as much as it is a Linux building tool. In theory, you could do the same thing on AIX, as long as you've got GCC installed, right?
I mean, surely the Linux Kernel 2.6 was developed on a machine running 2.4.x and I'm sure the programmers at M$ wrote XP code on machines running 2000.
I'll bet that if anyone REALLY wanted to, they could manually enter a bootstrap in hex, using switches (or whatever) and bring a system up that way, but what's the point? Certainly, that's the way it was done "in the beginning" but it really isn't required now!
The point is that ANY modern system is initially built using tools on another (often earlier version of the same) system. LFS isn't any different here. The important issue is that the toolchain thing means you are sure that the tools you ultimately use, are tools that you know the pedigree of.
LOL, why stop there ;-)
Grab an FPGA, a copy of LEON (sparcv8 in VHDL, see http://www.gaisler.com/ )
Build your processor from scratch, then linux from scratch for your processor from scratch ;-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.