Well I was gonna reply with what mtlhd said (linux from scratch) but also wanted to mention the Linux router Project . It's a distro that fits on a floppy (like the preceding links). And what about Core Linux. I'm unsure about the size of Core linux though.

hope all those links get you what you want.