2009年8月6日 星期四

一些android build系統的注意事項

我們可以透過OEM目錄下的BoardConfig.mk(以Samsung的smdkc100為例其目錄為vendor/sec/smdkc100/BoardConfig.mk Qualcomm的qsd8250在vendor/qcom/qsd8250_surf/BoardConfig.mk ) 中的二個參數來決定你要不要build usb bootloder和要不要build kernel:

TARGET_NO_KERNEL 決定要不要build kernel:

當TARGET_NO_KERNEL := false 時要build kernel
當TARGET_NO_KERNEL := true 時不要build kernel

查看build/target/board/Android.mk中的一行即可知道此件事:

ifneq ($(strip $(TARGET_NO_KERNEL)),true)
INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel
else
INSTALLED_KERNEL_TARGET :=
endif


TARGET_BOOTLOADER_LINK_SCRIPT決定要不要build usb bootloder

當TARGET_BOOTLOADER_LINK_SCRIPT 有define時要build usb bootloder

當TARGET_BOOTLOADER_LINK_SCRIPT 有沒define時不要build usb bootloder

查看bootable/bootloader/legacy/Android.mk看到下面這一行即可知道

ifdef TARGET_BOOTLOADER_LINK_SCRIPT
include $(call all-subdir-makefiles)
endif

BoardConfig.mk中有另一變數TARGET_NO_BOOTLOADER,此變數並非控制usb bootloader要不要build。

查看build/target/board/Android.mk中的一行即可知道此件事:

ifneq ($(strip $(TARGET_NO_BOOTLOADER)),true)
INSTALLED_BOOTLOADER_MODULE := $(PRODUCT_OUT)/bootloader
ifeq ($(strip $(TARGET_BOOTLOADER_IS_2ND)),true)
INSTALLED_2NDBOOTLOADER_TARGET := $(PRODUCT_OUT)/2ndbootloader
else
INSTALLED_2NDBOOTLOADER_TARGET :=
endif
else
INSTALLED_BOOTLOADER_MODULE :=
INSTALLED_2NDBOOTLOADER_TARGET :=
endif # TARGET_NO_BOOTLOADER

因為usb bootloader的output file 名字為 usbloader而非是bootloader,該bootloader是什麼目前無法得知

7 則留言:

匿名 提到...

Lots of folks are supplying outstanding feedback and happy with Bowflex seven.



Here is my web blog; dumbbell sets

匿名 提到...

The 1st two weeks you might take in 1500 calories, guys and 1200 calories for women.


Also visit my web-site :: dumbells sets

匿名 提到...

It might be used by many people with various body forms,
so it can be an excellent friends and family present, likewise.


Here is my web site; Dumbbell Step Up

匿名 提到...

With standard free of charge weights you'll need the subsequent two every of a five,ten,15,twenty, and twenty five lb weights.

My homepage :: free weights for sale

匿名 提到...

No matter if you buy it from BeachBody or in other places you are going to desire to get
a yoga mat.

my web-site :: cap dumbbell Set

匿名 提到...

It can be impossible to training with most intensity
for just a extended time period.

Feel free to visit my homepage ... www.getfitnstrong.com

匿名 提到...

The Bodylastic exercise tool has become an exceedingly well-liked health
club tool once it has been so greatly advertised and presented to the general public.



My homepage weight sets for sale