If you want a specialized Linux implementation, you want buildroot. It allows devs to trim the fat off the normally-bloated Linux operating system by selecting only the packages they need for a particular application — and thereby reducing footprint and boot time.
If you're new to buildroot, one of the first things you'll encounter is the menuc...