Not sure if this is what you're getting at, but the
Linux From Scratch project gives you the tools and instructions you need to do this.
I started working through it once but gave up when the results of my actions didn't correspond with the events described in the book. Probably my mistake rather than anything wrong with the book.