How does android Add a new ProjectConfig. mk file in Codebase?
How to add a new ProjectConfig. mk file to Codebase so that it has a higher priority
Mediatek/config/$ project/ProjectConfig. mk
ProjectConfig. mk
The priority is greater than the ProjectConfig. mk file in the $ project directory.
[Solution]
Step1. add your own folder name under mediatek/config, for example, testconfig, and add your own ProjectConfig. mk
Step2. modify the file mediatek/build/libs/Custom. define. mtk. custom. generate-folder-list Command package. Add the name of the folder added in step 1 at the beginning of the last line of the command package. The last line after adding is testconfig $ (_ fp_list _) $ (_ cust_list _) $ (call lc, $ (MTK_PLATFORM) common)
In this way, the macro in ProjectConfig. mk will overwrite the macro with the same name in other ProjectConfig. mk.
However, this method has two restrictions:
1. The added folder must be in the mediatek/config directory.
2. in step 2, you must put the name of the added folder at the beginning of the last line of the command package. If you add two folders, such as testconfig1 and testconfig2, you need to add both folders to the last line of the command package. The first one has priority relative to the next one.