我正在尝试为CM 10.2 ROM
编译Samsung note 2 on OSX
,并在输入make -j4后给出了以下错误:
No private recovery resources for TARGET_DEVICE generic
build/core/tasks/kernel.mk:87: **********************************************************
build/core/tasks/kernel.mk:88: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:89: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:90: * BoardConfig.mk file *
build/core/tasks/kernel.mk:91: **********************************************************
Can't open build/target/board/generic/arch/arm/configs/: No such file or directory at -e line 1.
Can't open build/target/board/generic/arch/arm/configs/: No such file or directory at -e line 1.
target Prebuilt: (/Volumes/android/WORKING_DIRECTORY2/out/target/product/generic/kernel)
host C: adb <= system/core/adb/commandline.c
host C: adb <= system/core/adb/adb_client.c
acp: missing destination file
make: *** [/Volumes/android/WORKING_DIRECTORY2/out/target/product/generic/kernel] Error 2
make: *** Waiting for unfinished jobs....
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (33 seconds) ####
在BoardConfig.mk文件中,已设置以下值:
TARGET_KERNEL_CONFIG := cyanogenmod_n7100_defconfig
我是新手,无法在任何地方找到任何关于此的帖子。我已经用尽了可能的选项来解决这个问题,任何帮助解决这个问题都将不胜感激。
P.S。如果我尝试设置,有人可以说出可以给出的值 TARGET_PREBUILT_KERNEL?
答案 0 :(得分:1)
我正在进行移植,如果你有一个已编译的内核映像(例如,来自库存内核,你可以使用从中提取的boot.img来构建你的环境),我编译我的ROM会遇到同样的问题。使用/build/tools/device/mkvendor.sh存储rom,你可以把它放在/ device / [vendor] / [codename] / kernel并设置
TARGET_PREBUILT_KERNEL := device/[vendor]/[codename]/kernel
到你的BoardConfig.mk(脚本mkvendor.sh将自动生成boot.img中的图像)。 相反,如果你想从源代码编译内核,你必须使用
TARGET_KERNEL_CONFIG := cyanogenmod_codename
了解更多here