自定义android构建的问题

时间:2010-08-15 15:35:27

标签: android porting

我正在尝试进行自定义构建(如移植指南中所述 - http://source.android.com/porting/build_new_device.html)并始终以错误消息结束 make:***没有规则可以使目标vendor/company/emh-board/kernel', needed by out / target / product / emh-board / kernel'。停止。

有谁知道为什么会这样。我使用“make PRODUCT-emh-user”开始构建 我的AndroidBoard.mk看起来像

# make file for new hardware  from 
#
LOCAL_PATH := $(call my-dir)
#
# this is here to use the pre-built kernel
ifeq ($(TARGET_PREBUILT_KERNEL),)
TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
endif
#

file := $(INSTALLED_KERNEL_TARGET)
ALL_PREBUILT += $(file)
$(file) : $(TARGET_PREBUILT_KERNEL) | $(ACP)
        $(transform-prebuilt-to-target)

#
# no boot loader, so we don't need any of that stuff..  
#
LOCAL_PATH := vendor/company/emh-board
#
include $(CLEAR_VARS)
#
# include more board specific stuff here? Such as Audio parameters.     
#

1 个答案:

答案 0 :(得分:1)

好的,我已经设法找到了答案......在深入了解构建过程后,我发现我需要将内核放在product / kernel文件夹中,或者通过TARGET_PREBUILT_KERNEL变量提供预构建的内核。如果经历移植指南中描述的程序,我希望这能节省一些时间。