Guest sm4tik Posted July 27, 2011 Report Posted July 27, 2011 (edited) Hi, I've been looking for ways to customize the building process of CM7 for my own use. Just to be clear here, I have no intentions of forking a rom etc., I just like to customize stuff and learn as I go. The one thing I just discovered was vendor/cyanogen/products/cyanogen_blade.mk and all the other inherited makefiles. It makes sense that these files are scattered around, but to make things clear for myself, rather than editing each of these I was wondering if there is a way to override the set things with an extra "custom.mk" file which would be read last. So basically I have 2 questions for now: 1) How do I inherit or include my own makefile so it gets read last, ie. overrides/adds/removes whatever I want it to? 2) Can I exclude for instance built apps with something like PRODUCT_PACKAGES -= AppNotNeeded App2NotNeeded, or any other way? Thanks in advance Edited July 27, 2011 by sm4tik
Guest sm4tik Posted July 30, 2011 Report Posted July 30, 2011 Uhh.. I've tried to make sense of the makefiles and it's quite a jungle, but since there is no such thing as ./configure --without-live-wallpapers, I'm still hunting ;) I've tried to read some tutorials and alike, but none are answering my questions. Could someone atleast give me a hint about the hierarchy of the makefiles so I know which ones have more weight. I'll give an example. I'd like to compile with a custom set of locales/languages. There are these lines in device/zte/blade/device_blade.mk # Inherit from those products. Most specific first. $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) Now in build/target/product/full_base.mk, which was inherited in device/zte/blade/device_blade.mk there's also the line $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) Can I just change the line in device/zte/blade/device_blade.mk to point to something like $(SRC_TARGET_DIR)/product/languages_custom.mk (which I will create) and this will be the only change I need to make, or do I have to edit both makefiles accordingly. Yes, I know I could just comment out the unwanted languages in languages_full.mk, but I'd consider that a workaround, not a solution :)
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now