Add a product to the Android system-graphic explanation
This article introduces how to add a product to an Android system in the spirit of open source. Based on the following process, I believe that everyone in this industry can complete the process, in fact, it is not difficult to add a product. It is difficult to modify its related hardware.
First, create a directory for your product.For example, WY is used as the product name..
First, copy A. mk file named after the product name from an existing product and change it to your. mk file. Here it is WY. mk.
Modify it as follows:
Then add AndroidProducts. mk. This is the path to the configuration file name of the added product. The effect is as follows:
Copy BoardConfig. mk to the current file: <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> Vc3ryb25np1_vcd4kpha + icagicagicagpgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20141227/2014122708493586.png" alt = "\">
Add vendorsetup. sh to add the product name-the compilation type to the lunch menu. When executing the lunch command, we can see that our product is in the options.
Run the source built/envsetup. sh command:
Run the lunch command:
Then compile make: