[LG Optimus 3D] lung1:
I added the binaries for cosmo and cx2, here is the source https://github.com/lung1/kernel_lge_p720 . But now I can't build the recovery image. Here is the error.

a@a:~/l$ make recoveryimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150630-UNOFFICIAL-p720
TARGET_PRODUCT=cm_p720
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/home/a/l/out
============================================
"ebtables is disabled on this build"
find: `omapmmlib/java': No such file or directory
find: `omapmmlib/java': No such file or directory
find: `dummy': No such file or directory
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.
PRODUCT_COPY_FILES hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p720_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-omap2/omap_hsi.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/omap_hsi.c: In function 'hsi_get_hsi_platform_device':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/omap_hsi.c:139:11: error: 'hsi_temp_ptr' undeclared (first use in this function)
dev = hsi_temp_ptr;
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/omap_hsi.c:139:11: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [arch/arm/mach-omap2/omap_hsi.o] Error 1
make[2]: *** [arch/arm/mach-omap2] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2

#### make failed to build some targets (01:29 (mm:ss)) ####