android入门:zxing学习笔记 - 臭蛋 - 博客园,Android Add new target

You have to define PRODUCT_PACKAGES, PRODUCT_NAME, PRODUCT_DEVICE in it, and call inherit-product to inherit from a product makefile.  I suggest to to inherit generic_x86.mk to get all common x86 rules.

$(call inherit-product,$(SRC_TARGET_DIR)/product/generic_x86.mk)

The board config makefile: BoardConfig.mk

You can override some variables before including $(GENERIC_X86_CONFIG_MK)

- TARGET_HAS_THIRD_PARTY_APPS

set to true if you hope to compile third party apps like ConnectBot, FileManager introduced by Android-x86.

Default: false

- BOARD_USES_ALSA_AUDIO

Set to false if you don't want ALSA audio.

Default: true.

- BOARD_HAVE_BLUETOOTH

If you don't need bluetooth, set it to false.

Default: true.

- BOARD_USES_TSLIB

Set to true if you need tslib to calibrate the touchscreen.

Default: false

- BOARD_KERNEL_CMDLINE

You can customize your cmdline (kernel boot options)

- BOARD_WPA_SUPPLICANT_DRIVER

Set to true if you need wifi support

The android board makefile: AndroidBoard.mk

You can override some variables before including

$(GENERIC_X86_ANDROID_MK)

- LOCAL_FIRMWARES

Specify the firmwares to be included in the target. The firmwares are supposed to be already in build/target/board/generic_x86/firmware/.

You may also specify a different directory in LOCAL_FIRMWARES_DIR.

- TARGET_INITRD_SCRIPTS

Specify a hook script to be added in the initrd.img. Usually the script should contain a detect_hardware function that will be called by the init script.

Read eeepc_info as an implementation example.

- TARGET_PREBUILT_APPS

If you want to include some prebuilt apps (apk files), set them to this variable.

- TARGET_KERNEL_CONFIG

Specify a kernel config file for this target. If not set, the default android-x86_defconfig will be used.

Besides the four makefiles, you may also add the file init.yyy.rc to do some initializations for your product

The file will be included automatically if exists,and called by Android init on booting(after executing init.rc).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值