[ONE Original Android Development] mohit310:
Compiling from source v3 branch

I'm trying to build the rom and have successfully built it with CM12 with standard CM kernel.

When I try to source your tree and try to build only the kernel, I'm getting the following error.

mk@mk-android:~/android$ add_lunch_combo cm_bacon-userdebug && mka bootimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0.2
CM_VERSION=12-20150212-UNOFFICIAL-bacon
TARGET_PRODUCT=cm_bacon
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-45-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LRX22G
OUT_DIR=/home/mk/android/out
============================================
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `dummy': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/mk/android/out/target/product/bacon/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/mk/android/out/target/product/bacon/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/mk/android/out/target/product/bacon/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/mk/android/out/target/product/bacon/obj/include/qcom/display/copybit_priv.h'
No private recovery resources for TARGET_DEVICE bacon
device/oppo/msm8974-common/mkbootimg.mk:21: warning: overriding commands for target `/home/mk/android/out/target/product/bacon/dt.img'
build/core/generate_extra_images.mk:109: warning: ignoring old commands for target `/home/mk/android/out/target/product/bacon/dt.img'
make -C kernel/oneplus/msm8974 O=/home/mk/android/out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/mk/android/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_bacon_defconfig
make[1]: Entering directory `/home/mk/android/kernel/oneplus/msm8974'
GEN /home/mk/android/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/mk/android/kernel/oneplus/msm8974'
make[1]: Entering directory `/home/mk/android/kernel/oneplus/msm8974'
GEN /home/mk/android/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/mk/android/kernel/oneplus/msm8974'
make[1]: Entering directory `/home/mk/android/kernel/oneplus/msm8974'
CHK include/linux/version.h
make[1]: Leaving directory `/home/mk/android/kernel/oneplus/msm8974'
make -C kernel/oneplus/msm8974 O=/home/mk/android/out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/mk/android/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/mk/android/kernel/oneplus/msm8974'
GEN /home/mk/android/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
GEN /home/mk/android/out/target/product/bacon/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/mk/android/kernel/oneplus/msm8974 as source for kernel
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/mk/android/kernel/oneplus/msm8974/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
Kernel: arch/arm/boot/Image is ready
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/mk/android/kernel/oneplus/msm8974'
make -C kernel/oneplus/msm8974 O=/home/mk/android/out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/mk/android/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" dtbs
make[1]: Entering directory `/home/mk/android/kernel/oneplus/msm8974'
make[3]: Nothing to be done for `arch/arm/boot/dtbs'.
make[1]: Leaving directory `/home/mk/android/kernel/oneplus/msm8974'
make -C kernel/oneplus/msm8974 O=/home/mk/android/out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/mk/android/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules
make[1]: Entering directory `/home/mk/android/kernel/oneplus/msm8974'

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] Error 1
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mk/android/kernel/oneplus/msm8974'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/oneplus/msm8974 O=/home/mk/android/out/target/product/bacon/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE="/home/mk/android/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules_install
make[1]: Entering directory `/home/mk/android/kernel/oneplus/msm8974'

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

Can someone please tell me what I'm doing wrong. I want this kernel integrated in my rom as I love all the cool zzmove governors.