Closed jide-opensource closed 7 years ago
@jide-opensource Updated device tree now..Should fix your error.
PS : If you are using my kernel i have updated it again now. Please make sure to pull that too or you might face a similar error (kind of)
Thanks for the quick fix. I use latest code and got the following error:
ninja: Entering directory `.'
ninja: error: 'out/target/product/hammerhead/obj/KERNEL_OBJ/usr', needed by 'out/target/product/hammerhead/obj/EXECUTABLES/mm-jpeg-interface-test_intermediates/mm_jpeg_ionbuf.o', missing and no known rule to make it
make: *** [ninja_wrapper] Error 1
@jide-opensource I guess you are building AOSP directly ? AOSP build system doesn't support inline kernel building. Hence it looks for kernel obj in out and hence your error
@sandymanu Yes, I am building AOSP. I built the kernel following the guide http://source.android.com/source/building-kernels.html and copied the kernel image to out/target/product/hammerhead/kernel.
So, what's the right way to build a ROM for hammerhead? Should I do it with CyanogenMod instead of AOSP?
Thanks
You can use prebuilt kernel and build too.
Also google removed display,gps,media and more HAL codes from the aosp source for 8974 chip and hence you would need to add those back as well. Saying this as you are unaware of other required bits by the looks of it. ( I have reverted the google changes locally to add support for the same)
Of course you can cyanogenmod for hammerhead and it should have the required support i mentioned above. Your branch should be cm-14.1
I'm having exactly the same issue as @jide-opensource:
ninja: Entering directory '.'
ninja: error: 'out/target/product/hammerhead/obj/KERNEL_OBJ/usr', needed by 'out/target/product/hammerhead/obj/EXECUTABLES/mm-jpeg-interface-test_intermediates/mm_jpeg_ionbuf.o', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
I am also trying to build AOSP, but I already have a prebuilt kernel and exported its location with the following command:
export TARGET_PREBUILT_KERNEL=/aosp/device/lge/hammerhead-kernel/arch/arm/boot/zImage-dtb
Any suggestions?
Sorry for the necrobump; I know I am over a year late. But for future reference, if anyone gets this issue, just create the directory out/target/product/hammerhead/obj/KERNEL_OBJ/usr and then run make.
@rhoadster91 This doesn't help all the time. The inline kernel building mechanism creates the directories and symlinks.
For prebuilt kernel, sometimes yeah creating manually helps.
@rhoadster91 where/how do you run make
failed to build with hammerhead-userdebug