Custom OS Build Failure ( no rule to make target for kernel ) - Android Q&A, Help & Troubleshooting

I have a ROM that I am trying to build and it is based off of CyanogenMod 12.1, but I am having trouble getting an initial build working. I keep running into the following error.
Code:
No private recovery resources for TARGET_DEVICE hammerhead
make: *** No rule to make target 'out/target/product/hammerhead/kernel', needed by 'out/target/product/hammerhead/boot.img'. Stop.
make: *** Waiting for unfinished jobs....
It seems pretty obvious that it can't figure out how to build the kernel, but I am uncertain how that is hooked into the build system. Is there any good resources I can look at to find out how to build the kernel or integrate it into the build process. So many makefiles and python scripts, I am a little lost
I have the "CyanogenMod/android_kernel_lge_hammerhead" synced to "kernel/lge/hammerhead" but all the resources I have found so far don't provide much insight after that.
Thank you in advance for your help

Related

Error while compiling

Getting this error while compiling JB from Code Aurora sources.
Code:
make: *** No rule to make target `out/host/linux-x86/bin/checksparse.py', needed by `out/target/product/msm7627a/obj/PACKAGING/target_files_intermediates/msm7627a-target_files-eng.arun.zip'. Stop.
make: *** Waiting for unfinished jobs....
Any help would be appreciated..
arunmcops said:
Getting this error while compiling JB from Code Aurora sources.
Code:
make: *** No rule to make target `out/host/linux-x86/bin/checksparse.py', needed by `out/target/product/msm7627a/obj/PACKAGING/target_files_intermediates/msm7627a-target_files-eng.arun.zip'. Stop.
make: *** Waiting for unfinished jobs....
Any help would be appreciated..
Click to expand...
Click to collapse
Double check that you added your device to the Android.mk build target file. For more help on your build error I would suggest checking out this thread dedicated to build errors http://forum.xda-developers.com/showthread.php?t=2059939. As well as these guides to common build basics http://wiki.cyanogenmod.org/w/Doc:_Building_Basics and common build errors http://wiki.cyanogenmod.org/w/Doc:_dealing_with_build_errors.
Sent from my SCH-I535 using xda premium
arunmcops said:
Getting this error while compiling JB from Code Aurora sources.
Code:
make: *** No rule to make target `out/host/linux-x86/bin/checksparse.py', needed by `out/target/product/msm7627a/obj/PACKAGING/target_files_intermediates/msm7627a-target_files-eng.arun.zip'. Stop.
make: *** Waiting for unfinished jobs....
Any help would be appreciated..
Click to expand...
Click to collapse
because the new QRD JB code need checksparse.py when you want a system.img.ext4 for output.
However, qualcomm did not put this file in the source code.
my solution is, edit build/core/Makefile to delete lines containning checksparse.py.
hope it helps

[Q] Error Building LiquidSmooth

Hi Everyone,
I am building my own ROM, i hope to show you all soon but I'm having trouble building LiquidSmooth from source for the OnePlus One. I've fixed some errors along the way, but I'm not sure what to do here.
Code:
make: *** No rule to make target '/home/slimninja/roms/bup/out/target/product/bacon/kernel', needed by '/home/slimninja/roms/bup/out/target/product/bacon/boot.img'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/core/libmincrypt/NOTICE -- /home/slimninja/roms/bup/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
Thanks in advance, noble knights of XDA!
nvm, going to try and build Resurrection Remix instead

Error on building my ROM

Hi all,
I own an Japanese version of S3 (SC-06D) and I try to build my CM12.1 rom, but I had a problem at the very beginning, see the log below:
make: *** No rule to make target `/home/erio/android/aojp/out/target/product/d2dcm/obj/STATIC_LIBRARIES/libminui_intermediates/export_includes', needed by `/home/erio/android/aojp/out/target/product/d2dcm/obj/EXECUTABLES/healthd_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Install: /home/erio/android/aojp/out/target/product/d2dcm/root/sbin/felica_init.sh
/home/erio/android/aojp/out/host/linux-x86/bin/checkpolicy: policy configuration loaded
/home/erio/android/aojp/out/host/linux-x86/bin/checkpolicy: writing binary representation (version 26) to /home/erio/android/aojp/out/target/product/d2dcm/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit
GEN /home/erio/android/aojp/out/target/product/d2dcm/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
make[1]: Entering directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
CHK include/linux/version.h
make[1]: Leaving directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
#### make failed to build some targets (04:37 (mm:ss)) ####
I couldn't found "/libminui_intermediates/export_includes" and "healthd_intermediates/import_includes" and it halt there. I done repo sync perfectly and no ideas on why there is such a problem. Please help.
erioho said:
Hi all,
I own an Japanese version of S3 (SC-06D) and I try to build my CM12.1 rom, but I had a problem at the very beginning, see the log below:
make: *** No rule to make target `/home/erio/android/aojp/out/target/product/d2dcm/obj/STATIC_LIBRARIES/libminui_intermediates/export_includes', needed by `/home/erio/android/aojp/out/target/product/d2dcm/obj/EXECUTABLES/healthd_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Install: /home/erio/android/aojp/out/target/product/d2dcm/root/sbin/felica_init.sh
/home/erio/android/aojp/out/host/linux-x86/bin/checkpolicy: policy configuration loaded
/home/erio/android/aojp/out/host/linux-x86/bin/checkpolicy: writing binary representation (version 26) to /home/erio/android/aojp/out/target/product/d2dcm/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit
GEN /home/erio/android/aojp/out/target/product/d2dcm/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
make[1]: Entering directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
CHK include/linux/version.h
make[1]: Leaving directory `/home/erio/android/aojp/kernel/samsung/d2dcm'
#### make failed to build some targets (04:37 (mm:ss)) ####
I couldn't found "/libminui_intermediates/export_includes" and "healthd_intermediates/import_includes" and it halt there. I done repo sync perfectly and no ideas on why there is such a problem. Please help.
Click to expand...
Click to collapse
Your issue is that the device is not supported by cm. So you will have to do all the legwork of getting the device trees and all the proper files. You can't use the same files for other s3 on your device.
zelendel said:
Your issue is that the device is not supported by cm. So you will have to do all the legwork of getting the device trees and all the proper files. You can't use the same files for other s3 on your device.
Click to expand...
Click to collapse
Thanks.
Once I successfully build CM12.1 on 9 July, but afterward, never success and prompt that error.
I reviewed a page on how to build for SC06D: http://lawnfield.blog.fc2.com/blog-entry-61.html
I had done all the things listed there, but finally got that error.
So, what exactly that error means and what should I do to resolve?
It seems (maybe) I solved the problem, now building but not yet complete.
From the source it use CWM as default recovery but now the code is using TWRP, so it halted. And I change it to TWRP and now running. For sure I have not much ideas on why such change in code, may be the KBC-developer intended to do, but not fully.
Another question is, If I would like to build the rom, but not all apks in /system/app, what should I do? As I would like to slim down the rom as some of the files are unnecessary to me, e.g. bootnanimation.zip and the default browser.

trouble building cm13

I've hit a bit of a brick wall while trying to do my first CyanogenMod build (cm13 on trltespr). Not sure if this should be put on the device board itself but I figured I'd try here first. I've extracted proprietary files from the device, followed the guide on the CM wiki, and while trying to build I'm getting the following error from make:
make: *** No rule to make target '/home/cmbuild/android/system/out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/javalib.jar', needed by '/home/cmbuild/android/system/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-full-debug.jar'. Stop.
From what I've gathered I absolutely do not want to skip building either of these libraries, so I'm kind of at an impasse here. Does anyone have any thoughts on what my options may be here?
Actually, i'm starting to get a different error now, quite similar though:
make: *** No rule to make target '/home/cmbuild/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/R.stamp', needed by '/home/cmbuild/android/system/out/target/common/obj/APPS/BasicDreams_intermediates/src/R.stamp'. Stop.
^regarding above error message, first one comes from simply running 'make', second one comes from running brunch trltespr
Make Clobber your folder
Do a repo sync..
How about try to use mka..

building lineage questions

I'm trying to build lineage OS 14.0 for my tablet since there is no version available. When trying to compile it for the first time I get this error:
" make: *** No rule to make target '/home/mudkip/android/system/out/target/product/gteslte/obj/KERNEL_OBJ/usr', needed by '/home/mudkip/android/system/out/target/product/gteslte/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /home/mudkip/android/system/out/target/product/gteslte/obj/EXECUTABLES/bootanimation_intermediates/import_includes
make: Leaving directory '/home/mudkip/android/system' "
anyone know how I can fix it?
also there is a device tree available for my device on GitHub but the person used a blocksize of 1024 for the partition sizes in BoardConfig but the blocksize of the tablet is 4096. Does it matter if 1024 was used instead of 4096?

Categories

Resources