How does android Add a new ProjectConfig. mk file in Codebase?

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.