[Nexus 4 Android Development] mammenj:
yes, I tried that but it fails in many other places. looks like a bigger issue.

I am building again making the above changes, and post the error if any.

Error log:

No private recovery resources for TARGET_DEVICE mako

make -C kernel/lge/mako O=/home/mammen/aokp/aospal/out/target/product/mako/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=arm-eabi- headers_install

make[1]: Entering directory `/home/mammen/aokp/aospal/kernel/lge/mako'

Copying: /home/mammen/aokp/aospal/out/target/common/obj/APPS/Browser_intermediates/classes.dex

Copying: /home/mammen/aokp/aospal/out/target/common/obj/APPS/Calculator_intermediates/classes.dex

target Package: Calendar (/home/mammen/aokp/aospal/out/target/product/mako/obj/APPS/Calendar_intermediates/package.apk)

target Package: Camera2 (/home/mammen/aokp/aospal/out/target/product/mako/obj/APPS/Camera2_intermediates/package.apk)

target Package: DSPManager (/home/mammen/aokp/aospal/out/target/product/mako/obj/APPS/DSPManager_intermediates/package.apk)

nothing matches overlay file ic_colorpicker_swatch_selected.png, for flavor ,,,,,,,,,,,,hdpi,,,,,,,

nothing matches overlay file ic_colorpicker_swatch_selected.png, for flavor ,,,,,,,,,,,,mdpi,,,,,,,

nothing matches overlay file ic_contact_picture.png, for flavor ,,,,,,,,,,,,hdpi,,,,,,,

nothing matches overlay file ic_contact_picture.png, for flavor ,,,,,,,,,,,,mdpi,,,,,,,

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

target Package: DashClock (/home/mammen/aokp/aospal/out/target/product/mako/obj/APPS/DashClock_intermediates/package.apk)

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

warning: no entries written for bool/only_use_portrait

warning: no entries written for bool/picker_is_dialog

warning: no entries written for dimen/category_panel_height

warning: no entries written for dimen/category_panel_icon_size

warning: no entries written for dimen/category_panel_text_size

warning: no entries written for dimen/category_panel_margin

warning: no entries written for style/DialogPickerTheme

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

target Package: DeskClock (/home/mammen/aokp/aospal/out/target/product/mako/obj/APPS/DeskClock_intermediates/package.apk)

Copying: /home/mammen/aokp/aospal/out/target/common/obj/APPS/Email_intermediates/classes-jarjar.jar

Copying: /home/mammen/aokp/aospal/out/target/common/obj/APPS/Exchange2_intermediates/classes-jarjar.jar

target Package: Gallery2 (/home/mammen/aokp/aospal/out/target/product/mako/obj/APPS/Gallery2_intermediates/package.apk)

target Symbolic: libart-compiler (/home/mammen/aokp/aospal/out/target/product/mako/symbols/system/lib/libart-compiler.so)

target Symbolic: oatdump (/home/mammen/aokp/aospal/out/target/product/mako/symbols/system/bin/oatdump)

Copying: /home/mammen/aokp/aospal/out/target/common/obj/APPS/Contacts_intermediates/classes.dex

Copying: /home/mammen/aokp/aospal/out/target/common/obj/APPS/Dialer_intermediates/classes.dex

Copying: /home/mammen/aokp/aospal/out/target/common/obj/APPS/Mms_intermediates/classes.dex

target Java: Settings (/home/mammen/aokp/aospal/out/target/common/obj/APPS/Settings_intermediates/classes)

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

warning: no entries written for drawable/background_protector

Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.

CHK include/linux/version.h

Copying: /home/mammen/aokp/aospal/out/target/common/obj/APPS/SystemUI_intermediates/classes.dex

Copying: /home/mammen/aokp/aospal/out/target/common/obj/APPS/Trebuchet_intermediates/classes.jar

target Dex: WallpaperCropper

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

make[1]: Leaving directory `/home/mammen/aokp/aospal/kernel/lge/mako'

host Executable: dex2oat (/home/mammen/aokp/aospal/out/host/linux-x86/obj/EXECUTABLES/dex2oat_intermediates/dex2oat)

Install: /home/mammen/aokp/aospal/out/host/linux-x86/lib/libart-compiler.so

host C++: oatdump <= art/oatdump/oatdump.cc

Install: /home/mammen/aokp/aospal/out/target/product/mako/fake_packages/webview-timestamp

make -C kernel/lge/mako O=/home/mammen/aokp/aospal/out/target/product/mako/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=arm-eabi- zImage

target Package: Browser (/home/mammen/aokp/aospal/out/target/product/mako/obj/APPS/Browser_intermediates/package.apk)

make[1]: Entering directory `/home/mammen/aokp/aospal/kernel/lge/mako'

target Package: Calculator (/home/mammen/aokp/aospal/out/target/product/mako/obj/APPS/Calculator_intermediates/package.apk)

Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.

Install: /home/mammen/aokp/aospal/out/target/product/mako/system/app/Calendar.apk

art/oatdump/oatdump.cc: In member function 'void art::eek:atDumper::DumpVerifier(std::ostream&, uint32_t, const art::DexFile*, const art::DexFile::ClassDef&, const art::DexFile::CodeItem*, uint32_t)':

art/oatdump/oatdump.cc:620:54: error: Lock 'mutator_lock_' (acquired at line 620) is not released at the end of its scope in function 'DumpVerifier' [-Werror=thread-safety]

art/oatdump/oatdump.cc:621:97: error: Calling function 'FindDexCache' requires lock 'mutator_lock_' [-Werror=thread-safety]

art/oatdump/oatdump.cc:625:73: error: Calling function 'VerifyMethodAndDump' requires lock 'mutator_lock_' [-Werror=thread-safety]

art/oatdump/oatdump.cc: In member function 'void art::eek:atDumper::DumpVRegsAtDexPc(std::ostream&, const art::eek:atFile::eek:atMethod&, uint32_t, const art::DexFile*, const art::DexFile::ClassDef&, const art::DexFile::CodeItem*, uint32_t, uint32_t)':

art/oatdump/oatdump.cc:562:54: error: Lock 'mutator_lock_' (acquired at line 562) is not released at the end of its scope in function 'DumpVRegsAtDexPc' [-Werror=thread-safety]

art/oatdump/oatdump.cc:563:97: error: Calling function 'FindDexCache' requires lock 'mutator_lock_' [-Werror=thread-safety]

art/oatdump/oatdump.cc:567:82: error: Calling function 'MethodVerifier' requires lock 'mutator_lock_' [-Werror=thread-safety]

art/oatdump/oatdump.cc:568:25: error: Calling function 'Verify' requires lock 'mutator_lock_' [-Werror=thread-safety]

art/oatdump/oatdump.cc: In function 'int art::oatdump(int, char**)':

art/oatdump/oatdump.cc:1458:50: error: Lock 'mutator_lock_' (acquired at line 1458) is not released at the end of its scope in function 'oatdump' [-Werror=thread-safety]

art/oatdump/oatdump.cc:1469:22: error: Calling function 'Dump' requires lock 'mutator_lock_' [-Werror=thread-safety]

cc1plus: all warnings being treated as errors

make: *** [/home/mammen/aokp/aospal/out/host/linux-x86/obj/EXECUTABLES/oatdump_intermediates/oatdump.o] Error 1

make: *** Waiting for unfinished jobs....

GEN /home/mammen/aokp/aospal/out/target/product/mako/obj/KERNEL_OBJ/Makefile

scripts/kconfig/conf --silentoldconfig Kconfig

warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)

warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)

GEN /home/mammen/aokp/aospal/out/target/product/mako/obj/KERNEL_OBJ/Makefile

CHK include/linux/version.h

Using /home/mammen/aokp/aospal/kernel/lge/mako as source for kernel

CHK include/generated/utsrelease.h

make[3]: `include/generated/mach-types.h' is up to date.

CALL /home/mammen/aokp/aospal/kernel/lge/mako/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

SHIPPED arch/arm/boot/compressed/ashldi3.S

AS arch/arm/boot/compressed/ashldi3.o

LD arch/arm/boot/compressed/vmlinux

OBJCOPY arch/arm/boot/zImage

Kernel: arch/arm/boot/zImage is ready

------------------------