Android源码发开记录-rk3288 9.0版本编译ota 碰到的问题(ninja: error: 'out/target/product/rk3288/obj_/EXECUTABLES/u...

因官方recovery文档中没有记录这个问题,所以这里做下笔记

问题

在用make otapackage -j4时报错

ninja: error: 'out/target/product/rk3288/obj_/EXECUTABLES/updater_intermediates/updater', needed by 'out/target/product/rk3288/obj/PACKAGING/target_files_intermediates/rk3288-target_files-eng.root.zip', missing and no known rule to make it

./mkimage.sh ota时报错

out/target/product/rk3288/obj/PACKAGING/target_files_intermediates/*-target_files*/IMAGES/*.img' 的文件状态(stat): 没有那个文件或目录。

解决办法

build/core/Makefile
参考补丁文件

diff --git a/core/Makefile b/core/Makefile
index b78888b..5a471db 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -2513,7 +2513,7 @@ built_ota_tools :=
 # We can't build static executables when SANITIZE_TARGET=address
 ifeq ($(strip $(SANITIZE_TARGET)),)
 built_ota_tools += \
-    $(call intermediates-dir-for,EXECUTABLES,updater,,,$(TARGET_PREFER_32_BIT))/updater
+    $(call intermediates-dir-for,EXECUTABLES,updater,,,)/updater
 endif
 
 $(BUILT_TARGET_FILES_PACKAGE): PRIVATE_OTA_TOOLS := $(built_ota_tools)

你可能感兴趣的:(Android源码发开记录-rk3288 9.0版本编译ota 碰到的问题(ninja: error: 'out/target/product/rk3288/obj_/EXECUTABLES/u...)