2010-08-15 66 views
0

我正在嘗試進行自定義生成(如移植指南中所述 - http://source.android.com/porting/build_new_device.html),並始終以錯誤消息 作爲結果:***沒有規則將目標vendor/company/emh-board/kernel', needed by設爲目標/目標/產品/ EMH板/內核」。停止。自定義android版本問題

有誰知道爲什麼會發生這種情況。我開始建立一個使用「使產品EMH用戶」 我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

好吧,我設法找出答案...尋找更深我想通了構建過程後我需要將內核放置在產品/內核文件夾中,或者通過TARGET_PREBUILT_KERNEL變量提供預構建的內核。我希望如果通過移植指南中描述的過程,可以節省一些時間。