Well of course it isn't built completely from scratch. IIRC it still uses a standard linux kernel and some common APIs.