Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/186.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
定制android构建的问题_Android_Porting - Fatal编程技术网

定制android构建的问题

定制android构建的问题,android,porting,Android,Porting,我正在尝试进行定制构建(如《移植指南》中所述),结果总是出现错误消息 制作:***没有规则制作目标供应商/公司/emh板/内核,out/target/product/emh板/内核所需的。停下来 有人知道为什么会这样吗。我开始使用“makeproductemh用户”进行构建 我的AndroidBoard.mk看起来像 # make file for new hardware from # LOCAL_PATH := $(call my-dir) # # this is here to use

我正在尝试进行定制构建(如《移植指南》中所述),结果总是出现错误消息 制作:***没有规则制作目标
供应商/公司/emh板/内核,
out/target/product/emh板/内核所需的。停下来

有人知道为什么会这样吗。我开始使用“makeproductemh用户”进行构建 我的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.     
#

好的,我已经找到了答案。。。在深入研究构建过程之后,我发现我要么需要将内核放在product/kernel文件夹中,要么通过TARGET\u prebuild\u kernel变量提供一个预构建的内核。我希望这可以节省一些人的时间,如果通过移植指南中描述的过程