Reference http://blog.csdn.net/louiswangbing/article/details/6618727
Define product specifications
Company Name: Wolf
Product Name: ego
Motherboard name: smdk6410
1. Create a company directory under Android Source Device
Mkdir device/Wolf
2. Create a product directory under the company directory
Mkdir Products
Create an androidproducts. mk file under the products directory and define the path of the Android product configuration file.
CP/home/Android/build/target/product/androidproducts. mk ./
The content is as follows:
Product_makefiles: = \
$ (Local_dir)/smdk6410.mk
Create a product makefile in the product directory, smdk6410.mk
CP/home/Android/build/target/product/generic. mk ./
MV generic. mk smdk6410.mk
The content is as follows:
Product_packages: =\# list of APK applications to be installed
Accountandsyncsetask \
Deskclock \
Alarmprovider \
Bluetooth \
Camera \
Certinstaller \
Drmprovider \
Gallery3d \
Latinime \
Launcher2 \
MMS \
Music \
Provision \
Protips \
Quicksearchbox \
Settings \
Sync \
Systemui \
Updater \
Syncprovider
$ (Call inherit-product, $ (src_target_dir)/product/CORE. mk)
# Overrides
Product_manufacturer: = wolf # manufacturer
Product_brand: = ego # customer brand for Software Design
Product_name: = smdk6410 # product name visible to the end user, corresponding to "about the phone" in "Settings"
Product_device: = smdk6410 # design name, that is, the motherboard name
Product_locales: = en_us zh_cn # affects the language, time, date, and currency format settings in "Settings ".
# Bring in some audio files
Include frameworks/base/data/sounds/audiopackage4.mk
3. Create a product configuration directory under the company directory
Root @ Ubuntu:/home/Android # cp-A build/target/board/generic device/wolf/
Root @ Ubuntu:/home/Android # cd device/wolf/
Root @ Ubuntu:/home/Android/device/wolf # mv generic smdk6410
Android motherboard configuration file androidboard. mk, which is a compilation system interface file with the following content:
Local_path: = $ (call my-DIR) # added a keyboard ing file.
Include $ (clear_vars)
Local_src_files: = gpio-keys.kcm
Local_module_tags: = ENG
Include $ (build_key_char_map)
4. the motherboard configuration file boardconfig. mk is as follows:
Target_cpu_abi: = armeabi-v6
Target_cpu_abi2: = armeabi
# Target_arch_variant: = armv6-vfp
Target_no_bootloader: = true
Target_no_kernel: = true
Target_no_radioimage: = true
Target_no_recovery: = true
# Target_provides_init_rc: = true
Board_uses_generic_audio: = true # audio supported by the Android system
# Board_uses_alsa_audio: = true # audio of ALSA
Build_with_alas_utils: = true
# Bluetooth
Board_have_bluetooth: = false
# Wi-Fi
Board_have_libwifi: = false
Use_camera_stub: = true
5. Under smdk6410, VI vendorsetup. Sh
Add_lunch_combo smdk6410-eng
6. Source./build/envsetup. Sh
Lunch