I have found my old Samsung Galaxy S2, the plan is to use this as a small information screen in the livingroom. I was thinking of stripping down a CyanogenMod 13.0 and build a light-weight version of it, I don't need GPS, Bluetooth, Cellular, FM Radio, Camera support so I was planing to remove support for these. I only need WiFi support.
I have found this tutorial for building CyanogenMode 13.0 for i9100: http://wiki.cyanogenmod.org/w/Build_for_i9100
How do I strip CM down, and remove all unecessary support and apps (The only app that is going to run on this is a app that I'm myself has written)? I guess I have to do this before i compile it?