View Single Post
edp17's Avatar
Posts: 607 | Thanked: 736 times | Joined on Jul 2019 @ UK
#666
Thank you. Now I started to compile the kernel (step 5.4 in the HADK), but the command 'make -j$(nproc --all) hybris-hal' failed.
Error:
Code:
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

make[2]: *** [modules_install] Error 1
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/edp17/mer/android/droid/kernel/lge/hammerhead'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
mdpath=`find /home/edp17/mer/android/droid/out/target/product/hammerhead/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do arm-eabi-strip --strip-unneeded $i; mv $i /home/edp17/mer/android/droid/out/target/product/hammerhead/system/lib/modules/; done; fi
mdpath=`find /home/edp17/mer/android/droid/out/target/product/hammerhead/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi

#### make failed to build some targets (14:43 (mm:ss)) ####
Then I used the suggested command 'make config' but that also ended in error:
Code:
No private recovery resources for TARGET_DEVICE hammerhead
make: *** No rule to make target `config'.  Stop.

#### make failed to build some targets (22 seconds) ####
Therefore I tried the 'make -j$(nproc --all) hybris-hal' command again. But I got:
Code:
perl: warning: Falling back to the standard locale ("C").
hybris/hybris-boot/Android.mk:71: ********************* /boot appears to live on /dev/block/platform/msm_sdcc.1/by-name/boot
hybris/hybris-boot/Android.mk:72: ********************* /data appears to live on /dev/block/platform/msm_sdcc.1/by-name/userdata
PRODUCT_COPY_FILES device/lge/hammerhead/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE hammerhead
make  -C kernel/lge/hammerhead O=/home/edp17/mer/android/droid/out/target/product/hammerhead/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/edp17/mer/android/droid/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_hammerhead_defconfig
make[1]: Entering directory `/home/edp17/mer/android/droid/kernel/lge/hammerhead'
target Symbolic: libc (/home/edp17/mer/android/droid/out/target/product/hammerhead/symbols/system/lib/libc.so)
Install: /home/edp17/mer/android/droid/out/target/product/hammerhead/root/property_contexts
Install: /home/edp17/mer/android/droid/out/target/product/hammerhead/root/seapp_contexts
/home/edp17/mer/android/droid/out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts: Multiple different specifications for /sys/devices/virtual/graphics/fb0/rgb  (u:object_r:livedisplay_sysfs:s0 and u:object_r:sysfs_hardware:s0).
Error loading context file from /home/edp17/mer/android/droid/out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts
make: *** [/home/edp17/mer/android/droid/out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts] Error 4
make: *** Deleting file `/home/edp17/mer/android/droid/out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts'
make: *** Waiting for unfinished jobs....
  GEN     /home/edp17/mer/android/droid/out/target/product/hammerhead/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/edp17/mer/android/droid/kernel/lge/hammerhead'

#### make failed to build some targets (19 seconds) ####
It reminds me for the old days, back to 20+ years ago when I compiled the kernel for my PC. However there was the good old 'make menuconfig' command to help with the configuration file.
 

The Following User Says Thank You to edp17 For This Useful Post: