2016-02-18 139 views
0

在我AndroidBoard.mk我这行错误'cp'命令?

# device.mk doesn't know about us, and we can't PRODUCT_COPY_FILES here. 
# So cp will do. 

.PHONY: $(PRODUCT_OUT)/kernel 
     $(PRODUCT_OUT)/kernel: $(TARGET_PREBUILT_KERNEL) 
      cp $(TARGET_PREBUILT_KERNEL) $(PRODUCT_OUT)/kernel 

但终端给了我这个错误:

cp out/target/product/w7/kernel cp: missing destination file operand after ‘out/target/product/w7/kernel’ Try 'cp --help' for more information. make: *** [out/target/product/w7/kernel] Error 1

这有什么错呢? :(

回答

0

我相信TARGET_PREBUILT_KERNEL没有定义。

既然是空的,cp命令是只接收到一个属性(换句话说,它缺少目标文件操作数)

我不相信“$(PRODUCT_OUT)/内核”是空的,因为日志打印“出/目标/产品/ W7 /内核”

所以,PRODUCT_OUT似乎定义

+0

所以,我应该做这样的事情: 'TARGET_P REBUILT_KERNEL =/directory/of/kernel' cp命令写入之前? – SlimShadys

+0

我会试试看,或者你应该搜索它的定义,并检查它为什么没有被定义 – W0rmH0le