[Q] How to Use a Different Kernel When Building CM12? - Nexus 5 Q&A, Help & Troubleshooting

I have been learning how to compile CM12 on my own and it has been going really good so far. I've done two nightly builds for myself but now I am curious how I would go about compiling a custom kernel with it. Say I wanted to substitute in Franco's kernel or Faux. . .what do I need to do in order to sync the required code to my build?
Off the top of my head, I would think that the line in the local_manifest needs to be changed, but I honestly have no idea if it is that easy.

Here you go.
http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building

So, I have added Franco's details into the local_manifest.xml file and done the repo sync command to pull down all of the source code. Franco's kernel source seemed to pull down successfully and I thought everything was good
However, when I try the "time brunch hammerhead" command, I get some errors. . .
Code:
PRODUCT_COPY_FILES device/lge/hammerhead/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/lge/hammerhead/spn-conf.xml:system/etc/spn-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
No private recovery resources for TARGET_DEVICE hammerhead
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
make -C kernel/lge/hammerhead O=/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_hammerhead_defconfig
make[1]: Entering directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host StaticLib: libhost_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
host C: checkpolicy <= external/checkpolicy/queue.c
host C: checkpolicy <= external/checkpolicy/module_compiler.c
host C: checkpolicy <= external/checkpolicy/parse_util.c
external/checkpolicy/module_compiler.c: In function 'add_perm_to_class':
external/checkpolicy/module_compiler.c:710:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'is_scope_in_stack':
external/checkpolicy/module_compiler.c:1233:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'end_optional':
external/checkpolicy/module_compiler.c:1448:22: warning: unused parameter 'pass' [-Wunused-parameter]
external/checkpolicy/module_compiler.c: In function 'copy_requirements':
external/checkpolicy/module_compiler.c:1511:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c:1517:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: checkpolicy <= external/checkpolicy/policy_define.c
GEN /home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/Makefile
host C: checkpolicy <= external/checkpolicy/checkpolicy.c
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host StaticLib: libsepol_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)
host C: checkfc <= external/sepolicy/tools/checkfc.c
external/checkpolicy/policy_define.c: In function 'define_dominance':
external/checkpolicy/policy_define.c:867:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'clone_level':
external/checkpolicy/policy_define.c:997:38: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'define_compute_type_helper':
external/checkpolicy/policy_define.c:1569:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'dominate_role_recheck':
external/checkpolicy/policy_define.c:2146:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2152:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2125:48: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'parse_semantic_categories':
external/checkpolicy/policy_define.c:3445:64: warning: unused parameter 'levdatum' [-Wunused-parameter]
host C: libselinux_32 <= external/libselinux/src/callbacks.c
external/checkpolicy/checkpolicy.c: In function 'display_bools':
external/checkpolicy/checkpolicy.c:296:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/checkpolicy.c: In function 'check_level':
external/checkpolicy/checkpolicy.c:364:72: warning: unused parameter 'arg' [-Wunused-parameter]
external/checkpolicy/checkpolicy.c: In function 'main':
external/checkpolicy/checkpolicy.c:472:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: libselinux_32 <= external/libselinux/src/check_context.c
host C: libselinux_32 <= external/libselinux/src/freecon.c
***
*** Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!
***
make[3]: *** [cyanogenmod_hammerhead_defconfig] Error 1
make[2]: *** [cyanogenmod_hammerhead_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host C: libselinux_32 <= external/libselinux/src/init.c
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
real 0m55.220s
user 0m46.604s
sys 0m11.489s
It seems to be hanging up on this error "Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!" and I'm not sure how to proceed
I found this and he said that person needed to "Go to the device tree BoardConfig.mk and change cyanogenmod_d802_defconfig to d802_defconfig"
So I went into the BoardConfig.mk file and rmeoved the cyanogenmod bit from that line.
repo sync'd and set everything back up and it seems to be going through the full build right now *crossing my fingers*

Blah
So not I'm getting this error about 20 minutes into the build
Code:
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/profiler.cpp
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
Does anyone have any idea what this pertains to?

Related

[Q] can we install openjdk as building envirement

Ubuntu does not support sun-java6-jdk installation forever. So I only can install openjdk in my Ubuntu. Then I build Android with command "make -j4", but it failed. the Error information as below:
find: "drm/java": not found
find: "drm/java": not found
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: not found
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: not found
........
........
........
external/qemu/elff/elf_alloc.h: In static member function ‘static void* DwarfAllocBase:perator new(size_t)’:
external/qemu/elff/elf_alloc.h:156: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect)
host C++: emulator-elff <= external/qemu/elff/elf_file.cc
In file included from external/qemu/elff/dwarf_die.h:21,
from external/qemu/elff/elf_file.h:20,
from external/qemu/elff/elf_file.cc:18:
external/qemu/elff/elf_alloc.h: In static member function ‘static void* DwarfAllocBase:perator new(size_t)’:
external/qemu/elff/elf_alloc.h:156: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect)
host C++: emulator-elff <= external/qemu/elff/elf_mapped_section.cc
make: *** no rules to creat “out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/emulator”

[HELP] Build Error debug for Ubuntu Touch

Hey guys, i am building Ubuntu Touch for Moto G and it is my first source build. I got stuck on this build error. Can anyone help me out so that we can get Ubuntu Touch for this awesome device too.
@TeamMex @rr46000 @herna can you guys please help me on this?
Code:
Copy: /home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/root/ueventd.rc
Install: /home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/bin/zipalign
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/yeshwanth/Ubuntu_Touch/kernel/motorola/msm8226'
target StaticLib: libc (/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
Code:
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-11.0" />
use it
and if you have issues copy attached file on out/host/linux-x86/framework
TeamMex said:
Code:
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-11.0" />
Click to expand...
Click to collapse
after adding the line to roomservice.xml and when trying to repo sync i get this error:
Code:
$ repo sync
fatal: duplicate path vendor/motorola in /home/yeshwanth/Ubuntu_Touch/.repo/manifest.xml
seems there is a similar line in my roomservice.xml like this:
Code:
project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="stable/cm-11.0" />
yeshwanthvshenoy said:
after adding the line to roomservice.xml and when trying to repo sync i get this error:
Code:
$ repo sync
fatal: duplicate path vendor/motorola in /home/yeshwanth/Ubuntu_Touch/.repo/manifest.xml
seems there is a similar line in my roomservice.xml like this:
Code:
project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="stable/cm-11.0" />
Click to expand...
Click to collapse
replace it...
TeamMex said:
replace it...
Click to expand...
Click to collapse
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
yeshwanthvshenoy said:
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
Click to expand...
Click to collapse
In a terminal
cd /pathtoyourubuntutouchdirectory/
mkdir -p out/host/linux-x86/framework/
And put the teamMex apk in
out/host/linux-x86/framework/
Sent from my Moto G using XDA Free mobile app
yeshwanthvshenoy said:
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
Click to expand...
Click to collapse
add this
TimeService.apk
/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates
(Added in attached files.)
h2o64 said:
In a terminal
cd /pathtoyourubuntutouchdirectory/
mkdir -p out/host/linux-x86/framework/
And put the teamMex apk in
out/host/linux-x86/framework/
Sent from my Moto G using XDA Free mobile app
Click to expand...
Click to collapse
TeamMex said:
add this
TimeService.apk
/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates
(Added in attached files.)
Click to expand...
Click to collapse
Added both files now new error
Code:
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_sxnet.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_utl.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3err.c
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/recovery', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/recovery/root.ts'. Stop.
make: *** Waiting for unfinished jobs....
yeshwanthvshenoy said:
Added both files now new error
Code:
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_sxnet.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_utl.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3err.c
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/recovery', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/recovery/root.ts'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Remenber that EVERY TIME you close the building terminal, you need to do
Code:
$ . build/envsetup.sh
$ lunch full_falcon-userdebug

Cyanogenmod12 for galaxy tab 2

Code:
target thumb C: sh <= external/mksh/src/eval.c
target thumb C: sh <= external/mksh/src/exec.c
target thumb C: sh <= external/mksh/src/expr.c
target thumb C: sh <= external/mksh/src/funcs.c
target thumb C: sh <= external/mksh/src/histrap.c
target thumb C: sh <= external/mksh/src/jobs.c
target thumb C: sh <= external/mksh/src/lex.c
target thumb C: sh <= external/mksh/src/main.c
target thumb C: sh <= external/mksh/src/misc.c
target thumb C: sh <= external/mksh/src/shf.c
target thumb C: sh <= external/mksh/src/syn.c
target thumb C: sh <= external/mksh/src/tree.c
target thumb C: sh <= external/mksh/src/var.c
target thumb C: showlease <= external/dhcpcd/showlease.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl_linux.c
Import includes file: /home/owner/android/system/out/target/product/p3110/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:35:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:39:
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags]
class DisplayInfo;
^
frameworks/native/include/ui/DisplayInfo.h:28:8: note: previous use is here
struct DisplayInfo {
^
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: note: did you mean struct here?
class DisplayInfo;
^~~~~
struct
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:76:18: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
mPowerMode(HWC_POWER_MODE_OFF),
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:19: error: use of undeclared identifier 'HWC_POWER_MODE_NORMAL'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:43: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:351:27: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
return (mPowerMode != HWC_POWER_MODE_OFF);
^
2 warnings and 4 errors generated.
make: *** [/home/owner/android/system/out/target/product/p3110/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/Client.cpp:26:
In file included from frameworks/native/services/surfaceflinger/Layer.h:42:
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:57:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
instead of HWComposer being declared as a class changed it to be declared as a struct.
I wonder what android-andi did to get his android 5.0 rom to compile. I think this error is telling that surfaceflinger is broken in cm12.
the device and kernel sources I used in my attempt to compile cm12 are just the cm11 ones.
dorfd1 said:
Code:
target thumb C: sh <= external/mksh/src/eval.c
target thumb C: sh <= external/mksh/src/exec.c
target thumb C: sh <= external/mksh/src/expr.c
target thumb C: sh <= external/mksh/src/funcs.c
target thumb C: sh <= external/mksh/src/histrap.c
target thumb C: sh <= external/mksh/src/jobs.c
target thumb C: sh <= external/mksh/src/lex.c
target thumb C: sh <= external/mksh/src/main.c
target thumb C: sh <= external/mksh/src/misc.c
target thumb C: sh <= external/mksh/src/shf.c
target thumb C: sh <= external/mksh/src/syn.c
target thumb C: sh <= external/mksh/src/tree.c
target thumb C: sh <= external/mksh/src/var.c
target thumb C: showlease <= external/dhcpcd/showlease.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl_linux.c
Import includes file: /home/owner/android/system/out/target/product/p3110/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:35:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:39:
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags]
class DisplayInfo;
^
frameworks/native/include/ui/DisplayInfo.h:28:8: note: previous use is here
struct DisplayInfo {
^
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: note: did you mean struct here?
class DisplayInfo;
^~~~~
struct
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:76:18: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
mPowerMode(HWC_POWER_MODE_OFF),
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:19: error: use of undeclared identifier 'HWC_POWER_MODE_NORMAL'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:43: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:351:27: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
return (mPowerMode != HWC_POWER_MODE_OFF);
^
2 warnings and 4 errors generated.
make: *** [/home/owner/android/system/out/target/product/p3110/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/Client.cpp:26:
In file included from frameworks/native/services/surfaceflinger/Layer.h:42:
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:57:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
I wonder what android-andi did to get his android 5.0 rom to compile. I think this error is telling that surfaceflinger is broken in cm12.
the device and kernel sources I used in my attempt to compile cm12 are just the cm11 ones.
Click to expand...
Click to collapse
Be patient, also the changes i added are highly WIP... you need to patch device, common omap 4, also kernel (to work on GCC 4.8), native etc.... better wait and don't waste your time.
Send from OnePlus One using Tapatalk

[Q] [5.1.1][LOLLIPOP][p720/p725]Builing CM 12.1 for the good old LG 3D OPTIMUS MAX

I've been trying for two month now to build cm-12.1 for this device. I made this post in order to get help to build it. This is a very good smartphone and I think that it deserves it. For this I need your help.
Here is my latest build error after 3 hour build. I make it again it took 2 minutes, same error
Code:
[email protected]:~/l$ make -j 8
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150624-UNOFFICIAL-p725
TARGET_PRODUCT=cm_p725
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
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: `dummy': No such file or directory
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE p725
build/core/tasks/kernel.mk:102: ***************************************************************
build/core/tasks/kernel.mk:103: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:104: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:105: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:106: * source repository to kernel/lge/p725
build/core/tasks/kernel.mk:107: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:108: * for more information *
build/core/tasks/kernel.mk:109: ***************************************************************
build/core/tasks/kernel.mk:278: warning: overriding commands for target `/home/a/l/out/target/product/p725/kernel'
build/core/Makefile:46: warning: ignoring old commands for target `/home/a/l/out/target/product/p725/kernel'
Copying: /home/a/l/out/target/common/obj/JAVA_LIBRARIES/android-support-v4-eclair_intermediates/classes.jar
target SharedLib: libandroid_runtime (/home/a/l/out/target/product/p725/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so)
target Static Jar: android-support-v7-cardview-jellybean-mr1 (/home/a/l/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-cardview-jellybean-mr1_intermediates/javalib.jar)
target Java: TextSecureLibrary (/home/a/l/out/target/common/obj/JAVA_LIBRARIES/TextSecureLibrary_intermediates/classes)
target thumb C++: libwebviewchromium <= external/chromium_org/android_webview/lib/main/webview_entry_point.cc
Install: /home/a/l/out/target/product/p725/system/bin/bootanimation
Install: /home/a/l/out/target/product/p725/system/bin/drmserver
frameworks/base/core/jni/android_view_Surface.cpp:404: error: undefined reference to 'android::uirenderer::AnimationContext::AnimationContext(android::uirenderer::renderthread::TimeLord&)'
frameworks/base/core/jni/android_view_Surface.cpp:431: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::syncAndDrawFrame(long long, long long, float)'
frameworks/base/core/jni/android_view_Surface.cpp:425: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::updateSurface(android::sp<ANativeWindow> const&)'
frameworks/base/core/jni/android_view_Surface.cpp:412: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::RenderProxy(bool, android::uirenderer::RenderNode*, android::uirenderer::IContextFactory*)'
frameworks/base/core/jni/android_view_Surface.cpp:413: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::loadSystemProperties()'
frameworks/base/core/jni/android_view_Surface.cpp:414: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::setSwapBehavior(android::uirenderer::renderthread::SwapBehavior)'
frameworks/base/core/jni/android_view_Surface.cpp:415: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::initialize(android::sp<ANativeWindow> const&)'
frameworks/base/core/jni/android_view_Surface.cpp:418: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::setup(int, int, android::uirenderer::Vector3 const&, float, unsigned char, unsigned char)'
frameworks/base/core/jni/android/graphics/Paint.cpp:809: error: undefined reference to 'android::uirenderer::Blur::convertRadiusToSigma(float)'
collect2: error: ld returned 1 exit status
make: *** [/home/a/l/out/target/product/p725/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so] Error 1
make: *** Waiting for unfinished jobs....
Note: external/whispersystems/TextSecure/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
#### make failed to build some targets (02:00 (mm:ss)) ####
This is my new error
Code:
Export includes file: system/core/libion/Android.mk -- /home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libion_intermediates/export_includes
Target wpa_supplicant.conf: /home/a/l/out/target/product/p720/obj/ETC/wpa_supplicant.conf_intermediates/wpa_supplicant.conf
make: *** No rule to make target `system/bluetooth/data/main.conf', needed by `/home/a/l/out/target/product/p720/system/etc/bluetooth/main.conf'. Stop.
make: *** Waiting for unfinished jobs....
GEN include/usage.h
GEN loginutils/Kbuild
GEN loginutils/Config.in
GEN shell/Kbuild
GEN shell/Config.in
GEN selinux/Kbuild
GEN selinux/Config.in
GEN util-linux/Kbuild
GEN util-linux/Config.in
GEN util-linux/volume_id/Kbuild
GEN util-linux/volume_id/Config.in
GEN archival/Kbuild
GEN archival/Config.in
GEN archival/libarchive/Kbuild
GEN mailutils/Kbuild
GEN mailutils/Config.in
GEN networking/Kbuild
GEN networking/Config.in
GEN networking/udhcp/Kbuild
GEN networking/udhcp/Config.in
GEN networking/libiproute/Kbuild
GEN debianutils/Kbuild
GEN debianutils/Config.in
GEN sysklogd/Kbuild
GEN sysklogd/Config.in
GEN applets/Kbuild
GEN runit/Kbuild
GEN runit/Config.in
GEN console-tools/Kbuild
GEN console-tools/Config.in
GEN findutils/Kbuild
GEN findutils/Config.in
GEN procps/Kbuild
GEN procps/Config.in
GEN init/Kbuild
GEN init/Config.in
GEN miscutils/Kbuild
GEN miscutils/Config.in
GEN coreutils/Kbuild
GEN coreutils/Config.in
GEN coreutils/libcoreutils/Kbuild
GEN modutils/Kbuild
GEN modutils/Config.in
GEN scripts/Kbuild
GEN editors/Kbuild
GEN editors/Config.in
GEN e2fsprogs/Kbuild
GEN e2fsprogs/Config.in
GEN e2fsprogs/old_e2fsprogs/Kbuild
GEN e2fsprogs/old_e2fsprogs/Config.in
GEN e2fsprogs/old_e2fsprogs/uuid/Kbuild
GEN e2fsprogs/old_e2fsprogs/e2p/Kbuild
GEN e2fsprogs/old_e2fsprogs/ext2fs/Kbuild
GEN e2fsprogs/old_e2fsprogs/blkid/Kbuild
GEN printutils/Kbuild
GEN printutils/Config.in
GEN libpwdgrp/Kbuild
GEN libbb/Kbuild
GEN libbb/Config.in
Using /home/a/l/external/busybox as source for busybox
GEN /home/a/l/out/target/product/p720/obj/busybox/full/Makefile
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
/home/a/l/external/busybox/scripts/basic/split-include.c: In function ‘main’:
/home/a/l/external/busybox/scripts/basic/split-include.c:134:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(old_line, buffer_size, fp_target);
^
HOSTCC scripts/kconfig/conf.o
/home/a/l/external/busybox/scripts/kconfig/conf.c: In function ‘conf_askvalue’:
/home/a/l/external/busybox/scripts/kconfig/conf.c:106:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, 128, stdin);
^
/home/a/l/external/busybox/scripts/kconfig/conf.c: In function ‘conf_choice’:
/home/a/l/external/busybox/scripts/kconfig/conf.c:354:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, 128, stdin);
^
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
/home/a/l/external/busybox/scripts/kconfig/mconf.c: In function ‘show_textbox’:
/home/a/l/external/busybox/scripts/kconfig/mconf.c:847:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(fd, text, strlen(text));
^
/home/a/l/external/busybox/scripts/kconfig/mconf.c: In function ‘exec_conf’:
/home/a/l/external/busybox/scripts/kconfig/mconf.c:481:6: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
pipe(pipefd);
^
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
SPLIT include/autoconf.h -> include/config/*
HOSTCC applets/usage
HOSTCC applets/applet_tables
/home/a/l/external/busybox/applets/usage.c: In function ‘main’:
/home/a/l/external/busybox/applets/usage.c:52:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1);
^
GEN include/bbconfigopts.h
/home/a/l/external/busybox/applets/applet_tables.c: In function ‘main’:
/home/a/l/external/busybox/applets/applet_tables.c:144:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line_old, sizeof(line_old), fp);
^
GEN include/applet_tables.h
HOSTCC applets/usage_pod
GEN include/usage_compressed.h
CC applets/applets.o
LD applets/built-in.o
make[1]: Leaving directory `/home/a/l/external/busybox'
#### make failed to build some targets (02:48 (mm:ss)) ####
Where are your sources, devtree and kernel. If i am not mistaken the p720 has 1g mem, so it would be easier to get the ddk1.9 gpu binaries working for your device. Take the l9 kernel for jellybean, add cosmo and cx support from cm10 kernel and your good to go kernel wise. Device tree needs upgrading of hwcomposer and domx, or use l9 device tree aswell with your device specific changes. Post your sources and i will try to help, i feel im so close with our p920 device, i think its vram specs i need to get right to bring up display.
Sent from my LG-D620 using XDA Free mobile app
---------- Post added at 19:01 ---------- Previous post was at 18:49 ----------
L9 kernel, https://github.com/dhiru1602/lge-kernel-omap4.l9 common dev tree, https://github.com/dhiru1602/android_device_lge_u2-common. Add support from https://github.com/CyanogenMod/lge-kernel-omap4, to the l9 kernel for cosmo and cx.
Sent from my LG-D620 using XDA Free mobile app
I don't think you realize how glad I am for you help. I try you suggestions and I will get back to you as soon as I get something.
Thanks again.
hi, im working on cm12.0 for LG prada, its so similar device to optimus 3d i guess. i following your work , so let me know about your progresses, ty {and sry for my eng}
Hi I just modified the l9 common tree with configuration for the p725 and I could buil the recovery image.
Here is the tree https://github.com/lung1/device_lge_p720
Still after I flashed the recovery image on the p725 it run into a bootloop but just when I tried to get into recovery. When I rebooted the devices it started Android so I didn't bricked it
Suggestions?
I forget to mention that I used the https://github.com/CyanogenMod/lge-kernel-omap4 kernel because it works. If I build cm-10 it works perfectly. I just used this kernel and https://github.com/CyanogenMod/android_device_lge_p720 .
Yes its will build, no problem but you are going to get bootloop or blank screen. The kernel still needs to be updated, because the common dev tree you are using has the 1.9 pvr and the cm10 tree has 1.8 pvr. Just check the pvr version in the dev trees of both, sgx-module/services4. Add the cosmo and cx support to the l9 kernel. Then the kernel will be inline with the common dev tree you are using. The pvr needs the ion,remoteproc rpmsg,dss and dsscomp updates thats in the l9 kernel.
Sent from my LG-D620 using XDA Free mobile app
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.
Code:
[email protected]:~/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)) ####
Error is in arch/arm/mach_omap2/omap_hsi.c, use meld to diff your changes with that of the l9 kernel. Also first test if kernel compiles before building complete rom. Do a (. build/envsetup.sh) then lunch, choose your device and then mm bootimage. Just to build bootimage. It saves time then to build a complete rom to check if you get kernel errors.
Sent from my LG-D620 using XDA Free mobile app
---------- Post added at 12:30 ---------- Previous post was at 12:24 ----------
As an alternative, you could use my updated kernel, its also cm10.2 with all updates for optimus 3d, i haven't changed carveouts for 1g devices, so it should work.
https://github.com/shaqfu786/lge-kernel-omap4. Here you go.
Sent from my LG-D620 using XDA Free mobile app
I found the error in the omap_hsi.c and fixed it. Here is the result:
Code:
[email protected]:~/l$ mm bootimage
============================================
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
LD arch/arm/mach-omap2/mailbox_mach.o
CC arch/arm/mach-omap2/lge/board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/../board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/cx2_i2c.o
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/board-lge-nfc.h:1:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:49:
/home/a/l/kernel/lge/omap4-common/include/linux/nfc/pn544_lge.h:44:28: fatal error: mach/board_lge.h: No such file or directory
#include <mach/board_lge.h>
^
compilation terminated.
make[5]: *** [arch/arm/mach-omap2/lge/cx2/cx2_i2c.o] Error 1
make[4]: *** [arch/arm/mach-omap2/lge/cx2] Error 2
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
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:26 (mm:ss)) ####
I tried your alternative solution, and I had to delete the -Werror flag from drivers/net/wireless/bcmdhd/Makefile because of this error:
Code:
[email protected]:~/l$ mm bootimage
============================================
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 drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.o
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.c: In function 'wl_cfgp2p_ifidx':
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.c:458:31: error: argument to 'sizeof' in 'memcpy' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
memcpy(index, getbuf, sizeof(index));
^
cc1: all warnings being treated as errors
make[6]: *** [drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.o] Error 1
make[5]: *** [drivers/net/wireless/bcmdhd] Error 2
make[4]: *** [drivers/net/wireless] Error 2
make[3]: *** [drivers/net] Error 2
make[2]: *** [drivers] 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)) ####
After I deleted I got this massage:
Code:
[email protected]:~/l$ mm bootimage
============================================
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 drivers/video/omap2/dsscomp/gralloc.o
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c: In function 'dsscomp_gralloc_cb':
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:132:14: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
if ( gsync->adapt_info!=NULL )
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:134:29: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
dsscomp_adapt_free(gsync->adapt_info);
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:135:10: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
gsync->adapt_info = NULL;
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c: In function 'dsscomp_gralloc_queue':
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:628:8: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
gsync->adapt_info = adapt_info;
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:646:12: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
if ( gsync->adapt_info!=NULL )
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:649:39: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
r= dsscomp_adapt_wait_complete(gsync->adapt_info, 100, &ret);
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:653:34: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
dsscomp_adapt_force_stop(gsync->adapt_info);
^
make[6]: *** [drivers/video/omap2/dsscomp/gralloc.o] Error 1
make[5]: *** [drivers/video/omap2/dsscomp] Error 2
make[4]: *** [drivers/video/omap2] Error 2
make[3]: *** [drivers/video] Error 2
make[2]: *** [drivers] 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:31 (mm:ss)) ####
Thanks again for your help!
Use meld again to diff your gralloc.c file. Strange i dont get gralloc errors my side when i compile the updated cm10.2 kernel.
Sent from my LG-D620 using XDA Free mobile app
Here is the error
Code:
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
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/a/l/kernel/lge/omap4-common as source for kernel
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/plat-omap/omap_dsscomp.o
make[3]: *** No rule to make target `arch/arm/plat-omap/lge_err_handler.o', needed by `arch/arm/plat-omap/built-in.o'. Stop.
make[3]: *** Waiting for unfinished jobs....
CC arch/arm/plat-omap/android-display.o
CC mm/page_io.o
CC arch/arm/mach-omap2/hsmmc.o
CC arch/arm/mach-omap2/omap_fiq_debugger.o
CC arch/arm/mach-omap2/omap4-reboot-reason.o
CC arch/arm/mach-omap2/twl_i2c.o
CC arch/arm/mach-omap2/lge/board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/../board-lg-wifi.o
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/android-display.c:27:
/home/a/l/kernel/lge/omap4-common/include/video/dsscomp.h:1:0: error: unterminated #ifndef
#ifndef _LINUX_DSSCOMP_H
^
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/android-display.c:27:
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_set_ovl(dsscomp_t comp, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:17:52: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_get_ovl(dsscomp_t comp, u32 ix, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:18:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_set_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:19:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_get_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'struct dss2_rect_t' declared inside parameter list [enabled by default]
struct dss2_rect_t win);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'enum dsscomp_setup_mode' declared inside parameter list [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:29:4: warning: 'struct dsscomp_setup_dispc_data' declared inside parameter list [enabled by default]
void (*cb_fn)(void *, int), void *cb_arg);
^
make[3]: *** [arch/arm/plat-omap/android-display.o] Error 1
CC arch/arm/mach-omap2/lge/cx2/cx2_i2c.o
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/omap_dsscomp.c:29:0:
/home/a/l/kernel/lge/omap4-common/include/video/dsscomp.h:1:0: error: unterminated #ifndef
#ifndef _LINUX_DSSCOMP_H
^
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/omap_dsscomp.c:30:
/home/a/l/kernel/lge/omap4-common/include/video/dsscomp.h:1:0: error: unterminated #ifndef
#ifndef _LINUX_DSSCOMP_H
^
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/omap_dsscomp.c:30:0:
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_set_ovl(dsscomp_t comp, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:17:52: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_get_ovl(dsscomp_t comp, u32 ix, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:18:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_set_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:19:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_get_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'struct dss2_rect_t' declared inside parameter list [enabled by default]
struct dss2_rect_t win);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'enum dsscomp_setup_mode' declared inside parameter list [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:29:4: warning: 'struct dsscomp_setup_dispc_data' declared inside parameter list [enabled by default]
void (*cb_fn)(void *, int), void *cb_arg);
^
make[3]: *** [arch/arm/plat-omap/omap_dsscomp.o] Error 1
make[2]: *** [arch/arm/plat-omap] Error 2
make[2]: *** Waiting for unfinished jobs....
../../../../../../kernel/lge/omap4-common/mm/page_io.c: In function 'end_swap_bio_read':
../../../../../../kernel/lge/omap4-common/mm/page_io.c:96:3: error: implicit declaration of function 'page_swap_info' [-Werror=implicit-function-declaration]
sis = page_swap_info(page);
^
../../../../../../kernel/lge/omap4-common/mm/page_io.c:96:7: warning: assignment makes pointer from integer without a cast [enabled by default]
sis = page_swap_info(page);
^
cc1: some warnings being treated as errors
make[3]: *** [mm/page_io.o] Error 1
make[2]: *** [mm] Error 2
CC arch/arm/mach-omap2/omap_ram_console.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c:337:35: error: 'SDIO_VENDOR_ID_TI' undeclared here (not in a function)
.vendor = SDIO_VENDOR_ID_TI,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c:338:35: error: 'SDIO_DEVICE_ID_TI_WL12xx' undeclared here (not in a function)
.device = SDIO_DEVICE_ID_TI_WL12xx,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c: In function 'omap_hsmmc_pdata_init':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c:519:25: error: implicit declaration of function 'machine_is_omap_4430sdp' [-Werror=implicit-function-declaration]
if (machine_is_omap_4430sdp())
^
cc1: some warnings being treated as errors
make[3]: *** [arch/arm/mach-omap2/hsmmc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CC drivers/mfd/twl-core.o
CC drivers/mfd/twl4030-irq.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: error: unknown field 'gpio_mhl' specified in initializer
.gpio_mhl = GPIO_MHL_SEL,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: error: unknown field 'gpio_ifx_vbus' specified in initializer
.gpio_ifx_vbus = GPIO_IFX_USB_VBUS_EN,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c: In function 'lge_i2c_init':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:906:6: warning: unused variable 'fixed_rev' [-Wunused-variable]
int fixed_rev = 0;
^
make[5]: *** [arch/arm/mach-omap2/lge/cx2/cx2_i2c.o] Error 1
make[4]: *** [arch/arm/mach-omap2/lge/cx2] Error 2
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
make[2]: *** [arch/arm/mach-omap2] Error 2
CC drivers/mfd/twl6030-irq.o
CC drivers/muic/muic_class.o
CC drivers/input/touchscreen/touch_synaptics_s3000.o
CC drivers/mfd/twl4030-power.o
CC drivers/mfd/twl6030-pwm.o
CC drivers/muic/muic_client_class.o
CC drivers/mtd/mtdcore.o
CC drivers/muic/dp3t.o
CC drivers/mtd/mtdsuper.o
CC drivers/net/mii.o
CC drivers/net/ks8851.o
CC drivers/net/Space.o
CC drivers/muic/usif.o
CC drivers/mtd/mtdconcat.o
LD drivers/nfc/built-in.o
CC drivers/muic/fota.o
../../../../../../kernel/lge/omap4-common/drivers/muic/usif.c: In function 'usif_switch_ctrl':
../../../../../../kernel/lge/omap4-common/drivers/muic/usif.c:175:3: warning: 'return' with a value, in function returning void [enabled by default]
return 1;
^
CC drivers/net/loopback.o
CC drivers/muic/muic_tsu5611.o
LD drivers/platform/built-in.o
CC drivers/net/ppp_generic.o
CC drivers/muic/muic_tsu5611_cx2.o
CC drivers/power/power_supply_core.o
CC drivers/mtd/mtdpart.o
CC drivers/net/ppp_async.o
CC drivers/regulator/core.o
CC drivers/net/ppp_synctty.o
CC drivers/mtd/mtdchar.o
CC drivers/net/ppp_deflate.o
CC drivers/omap_hsi/xmd-tty.o
CC drivers/net/bsd_comp.o
CC drivers/net/ppp_mppe.o
CC drivers/mtd/mtd_blkdevs.o
CC drivers/net/pppox.o
CC drivers/mtd/mtdblock.o
CC drivers/omap_hsi/xmd-rmnet.o
CC drivers/regulator/dummy.o
CC drivers/regulator/fixed.o
CC drivers/omap_hsi/xmd-hsi-mcm.o
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c: In function 'add_children':
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c:708:13: error: 'struct twl4030_bci_platform_data' has no member named 'errata'
pdata->bci->errata = errata;
^
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c: In function 'twl_probe':
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c:1423:15: error: 'TWL6032_ERRATA_DB00119490' undeclared (first use in this function)
errata |= TWL6032_ERRATA_DB00119490;
^
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c:1423:15: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [drivers/mfd/twl-core.o] Error 1
make[4]: *** Waiting for unfinished jobs....
CC drivers/omap_hsi/xmd_hsi_mem.o
CC drivers/net/pppoe.o
CC drivers/mtd/chips/chipreg.o
CC drivers/net/pppolac.o
CC drivers/omap_hsi/xmd-hsi-ll.o
CC drivers/regulator/twl-regulator.o
CC drivers/omap_hsi/hsi_driver.o
LD drivers/mtd/chips/built-in.o
CC drivers/net/pppopns.o
LD drivers/mtd/devices/built-in.o
CC drivers/omap_hsi/hsi_driver_dma.o
CC drivers/net/slhc.o
CC drivers/omap_hsi/hsi_driver_int.o
CC drivers/remoteproc/remoteproc.o
LD drivers/mtd/lpddr/built-in.o
LD drivers/mtd/maps/built-in.o
CC drivers/net/tun.o
CC drivers/remoteproc/omap_remoteproc.o
CC drivers/omap_hsi/hsi_driver_if.o
CC drivers/mtd/nand/nand_ids.o
CC drivers/omap_hsi/hsi_driver_bus.o
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: In function 'synaptics_ts_get_data':
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:254:33: error: 'struct t_data' has no member named 'status'
data->curr_data[finger_index].status = FINGER_PRESSED;
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:254:43: error: 'FINGER_PRESSED' undeclared (first use in this function)
data->curr_data[finger_index].status = FINGER_PRESSED;
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:254:43: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: In function 'get_ic_info':
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:414:18: error: 'struct touch_fw_info' has no member named 'ic_fw_identifier'
snprintf(fw_info->ic_fw_identifier, sizeof(fw_info->ic_fw_identifier),
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:414:52: error: 'struct touch_fw_info' has no member named 'ic_fw_identifier'
snprintf(fw_info->ic_fw_identifier, sizeof(fw_info->ic_fw_identifier),
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:416:18: error: 'struct touch_fw_info' has no member named 'ic_fw_version'
snprintf(fw_info->ic_fw_version, sizeof(fw_info->ic_fw_version), "%d", ts->fw_info.fw_rev);
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:416:49: error: 'struct touch_fw_info' has no member named 'ic_fw_version'
snprintf(fw_info->ic_fw_version, sizeof(fw_info->ic_fw_version), "%d", ts->fw_info.fw_rev);
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: In function 'synaptics_ts_fw_upgrade':
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:678:35: error: 'struct touch_fw_info' has no member named 'fw_upgrade'
ret = FirmwareUpgrade(ts, fw_info->fw_upgrade.fw_path);
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: At top level:
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:761:2: warning: initialization from incompatible pointer type [enabled by default]
.data = synaptics_ts_get_data,
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:761:2: warning: (near initialization for 'synaptics_ts_driver.data') [enabled by default]
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:763:2: warning: initialization from incompatible pointer type [enabled by default]
.fw_upgrade = synaptics_ts_fw_upgrade,
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:763:2: warning: (near initialization for 'synaptics_ts_driver.fw_upgrade') [enabled by default]
make[5]: *** [drivers/input/touchscreen/touch_synaptics_s3000.o] Error 1
make[4]: *** [drivers/input/touchscreen] Error 2
make[3]: *** [drivers/input] Error 2
make[3]: *** Waiting for unfinished jobs....
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c: In function 'muic_is_retain_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:366:58: error: 'RETAIN_MAX' undeclared (first use in this function)
if((muic_retain_mode < NO_RETAIN)||(muic_retain_mode >= RETAIN_MAX)) {
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:366:58: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c: In function 'muic_process_retain_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:376:58: error: 'RETAIN_MAX' undeclared (first use in this function)
if((muic_retain_mode < NO_RETAIN)||(muic_retain_mode >= RETAIN_MAX)) {
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:386:8: error: 'BOOT_MHL' undeclared (first use in this function)
case BOOT_MHL : muic_set_mode(MUIC_MHL); break;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c: In function 'muic_tsu5611_probe':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:794:23: error: 'struct muic_platform_data' has no member named 'gpio_mhl'
dev->gpio_mhl = pdata->gpio_mhl;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:795:28: error: 'struct muic_platform_data' has no member named 'gpio_ifx_vbus'
dev->gpio_ifx_vbus = pdata->gpio_ifx_vbus;
^
make[4]: *** [drivers/muic/muic_tsu5611.o] Error 1
make[4]: *** Waiting for unfinished jobs....
LD drivers/net/arm/built-in.o
CC drivers/power/power_supply_sysfs.o
CC drivers/omap_hsi/hsi_driver_gpio.o
CC drivers/omap_hsi/hsi_driver_fifo.o
CC drivers/remoteproc/rpres.o
LD drivers/mtd/nand/built-in.o
CC drivers/omap_hsi/hsi_driver_debugfs.o
CC drivers/power/twl6030_bci_battery.o
make[3]: *** [drivers/mfd] Error 2
CC drivers/power/rt9524_charger.o
LD drivers/mtd/tests/built-in.o
LD drivers/omap_hsi/omap_hsi.o
LD drivers/mtd/mtd.o
CC drivers/mtd/onenand/onenand_base.o
LD drivers/omap_hsi/ifx.o
LD drivers/omap_hsi/built-in.o
CC drivers/mtd/onenand/onenand_bbt.o
CC drivers/remoteproc/rpres_dev.o
LD drivers/mtd/onenand/onenand.o
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:82:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
extern void android_USB_disconnect();// for usb disconnect event
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_set_ap_usb_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:225:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct i2c_client *' [-Wformat=]
printk("muic %s, client : %d", __func__, client);
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_process_retention_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:312:12: error: 'BOOT_MHL' undeclared (first use in this function)
}else if (BOOT_MHL == muic_retain_mode){
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:312:12: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_tsu5611_detect_accessory':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:429:6: warning: unused variable 'loop' [-Wunused-variable]
s32 loop = 0;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_int_stat':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:672:43: warning: backslash and newline separated by space [enabled by default]
(id_register_value == IDNO_1001) || \
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_int_stat_read':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:718:2: warning: passing argument 3 of 'muic_i2c_read_byte' from incompatible pointer type [enabled by default]
ret = muic_i2c_read_byte(client, INT_STATUS1, &value);
^
In file included from ../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:39:0:
../../../../../../kernel/lge/omap4-common/include/linux/muic/muic.h:136:5: note: expected 'u8 *' but argument is of type 'u32 *'
s32 muic_i2c_read_byte(struct i2c_client *client, u8 addr, u8 *value);
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: At top level:
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:732:2: warning: initialization from incompatible pointer type [enabled by default]
.read_int_state = muic_int_stat_read,
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:732:2: warning: (near initialization for 'muic_dev.read_int_state') [enabled by default]
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'tsu5611_probe':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:766:23: error: 'struct muic_platform_data' has no member named 'gpio_mhl'
dev->gpio_mhl = pdata->gpio_mhl;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:767:28: error: 'struct muic_platform_data' has no member named 'gpio_ifx_vbus'
dev->gpio_ifx_vbus = pdata->gpio_ifx_vbus;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_set_mhl_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:139:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[4]: *** [drivers/muic/muic_tsu5611_cx2.o] Error 1
make[3]: *** [drivers/muic] Error 2
LD drivers/mtd/onenand/built-in.o
LD drivers/mtd/built-in.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_linux.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_sdmmc.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_sdmmc_linux.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_cdc.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_common.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_custom_gpio.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_linux.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_linux_sched.o
LD drivers/power/power_supply.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_cfg80211.o
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c: In function 'twl6030_bci_battery_probe':
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2564:20: error: 'struct twl4030_bci_platform_data' has no member named 'errata'
di->errata = pdata->errata;
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2640:11: error: 'struct twl4030_bci_platform_data' has no member named 'sense_resistor_mohm'
if (pdata->sense_resistor_mohm) {
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2641:42: error: 'struct twl4030_bci_platform_data' has no member named 'sense_resistor_mohm'
di->current_max_scale = (62000) / pdata->sense_resistor_mohm;
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2652:19: error: 'TWL6032_ERRATA_DB00119490' undeclared (first use in this function)
if (di->errata & TWL6032_ERRATA_DB00119490) {
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2652:19: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [drivers/power/twl6030_bci_battery.o] Error 1
make[3]: *** [drivers/power] Error 2
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_sdio.o
CC drivers/net/wireless/bcmdhd/src/shared/aiutils.o
CC drivers/net/wireless/bcmdhd/src/shared/bcmevent.o
../../../../../../kernel/lge/omap4-common/drivers/regulator/twl-regulator.c:923:29: warning: 'twl6030_external_control_pin_ops' defined but not used [-Wunused-variable]
static struct regulator_ops twl6030_external_control_pin_ops = {
^
CC drivers/net/wireless/bcmdhd/src/shared/bcmutils.o
CC drivers/net/wireless/bcmdhd/src/shared/bcmwifi/src/bcmwifi_channels.o
CC drivers/net/wireless/bcmdhd/src/shared/hndpmu.o
CC drivers/net/wireless/bcmdhd/src/shared/linux_osl.o
CC drivers/net/wireless/bcmdhd/src/shared/sbutils.o
CC drivers/net/wireless/bcmdhd/src/shared/siutils.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_android.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.o
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:68:0: warning: "LINUX_VERSION_CODE" redefined [enabled by default]
#define LINUX_VERSION_CODE KERNEL_VERSION(3, 4, 0)
^
In file included from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/linuxver.h:31:0,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:28:
include/linux/version.h:1:0: note: this is the location of the previous definition
#define LINUX_VERSION_CODE 196639
^
CC drivers/net/wireless/bcmdhd/src/wl/sys/wldev_common.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_linux_mon.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_roam.o
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_linux_mon.c:44:0: warning: "LINUX_VERSION_CODE" redefined [enabled by default]
#define LINUX_VERSION_CODE KERNEL_VERSION(3, 4, 0)
^
In file included from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/linuxver.h:31:0,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/linux_osl.h:165,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/osl.h:44,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_linux_mon.c:27:
include/linux/version.h:1:0: note: this is the location of the previous definition
#define LINUX_VERSION_CODE 196639
^
LD drivers/net/wireless/bcmdhd/bcmdhd.o
LD drivers/net/wireless/bcmdhd/built-in.o
LD drivers/net/wireless/built-in.o
LD drivers/remoteproc/built-in.o
LD drivers/net/built-in.o
LD drivers/regulator/built-in.o
make[2]: *** [drivers] 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:34 (mm:ss)) ####
I tried to copy again cx2_i2c.c but still no result.
No, check your i2c files in drivers and include file. Best way now is to check my latest commits and see which files were changed in drivers/i2c, could be that i left out some code specific to cx2, cause mine p920. Also diff with l9 kernel those folders.
Sent from my LG-D620 using XDA Free mobile app
The only difference was in drivers/i2c/busses/i2c-omap.c file. Site have this error:
Code:
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/lge/board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/../board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/cx2_i2c.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: error: unknown field 'gpio_mhl' specified in initializer
.gpio_mhl = GPIO_MHL_SEL,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: error: unknown field 'gpio_ifx_vbus' specified in initializer
.gpio_ifx_vbus = GPIO_IFX_USB_VBUS_EN,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c: In function 'lge_i2c_init':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:906:6: warning: unused variable 'fixed_rev' [-Wunused-variable]
int fixed_rev = 0;
^
make[5]: *** [arch/arm/mach-omap2/lge/cx2/cx2_i2c.o] Error 1
make[4]: *** [arch/arm/mach-omap2/lge/cx2] Error 2
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
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:35 (mm:ss)) ####
This is my kernel now https://github.com/lung1/kernel_lge_p720
I didn't have much time togo through your kernel, but what did catch my eye was that your lge-common.c is wrong, the changes you made. Swap out your file with the one from l9. Also copy the error mesg into google and it might bring up some results, i alway do that.
Sent from my LG-D620 using XDA Free mobile app
Ok perfect. Thanks so much for your help
I just want to tell you how I added support for cx2 and cosmo. I searched in this kernel https://github.com/CyanogenMod/lge-kernel-omap4 for all cosmo occurrences and added each and every instance to https://github.com/dhiru1602/lge-kernel-omap4 . Is that ok?
Or I should just add and change files in the arch/arm/mach-omap2 folder?
With your help I build the bootimage and recoveryimage with you kernel. I added here https://github.com/lung1/kernel_lge_p720/tree/cm-10.2-shaqfu786 . So many thanks!
But still the recoveryimage stucks into bootloop.
Thanks again! Trying to build ROM.
Here is the ROM result
Code:
[email protected]:~/l$ make -j 32
============================================
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/oomap4-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/oomap4-common'
target thumb C++: libcamera_client <= frameworks/av/camera/ICameraClient.cpp
target thumb C++: libcamera_client <= frameworks/av/camera/ICameraService.cpp
target SharedLib: libcamera_metadata (/home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libcamera_metadata_intermediates/LINKED/libcamera_metadata.so)
target thumb C++: libgui <= frameworks/native/libs/gui/IGraphicBufferProducer.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/IProducerListener.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/ISensorEventConnection.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/ISensorServer.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/ISurfaceComposer.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/ISurfaceComposerClient.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/LayerState.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/Sensor.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/SensorEventQueue.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/SensorManager.cpp
frameworks/av/camera/ICameraClient.cpp: In member function 'virtual void android::BpCameraClient::notifyCallback(int32_t, int32_t, int32_t)':
frameworks/av/camera/ICameraClient.cpp:49:63: error: 'CAMERA_FRAME_DATA_FD' was not declared in this scope
if ((msgType == CAMERA_MSG_PREVIEW_FRAME) && (ext1 == CAMERA_FRAME_DATA_FD)) {
^
frameworks/av/camera/ICameraClient.cpp: In member function 'virtual android::status_t android::BnCameraClient::onTransact(uint32_t, const android::Parcel&, android::Parcel*, uint32_t)':
frameworks/av/camera/ICameraClient.cpp:101:67: error: 'CAMERA_FRAME_DATA_FD' was not declared in this scope
if ((msgType == CAMERA_MSG_PREVIEW_FRAME) && (ext1 == CAMERA_FRAME_DATA_FD)) {
^
make: *** [/home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libcamera_client_intermediates/ICameraClient.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: libgui <= frameworks/native/libs/gui/StreamSplitter.cpp
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
In file included from system/media/camera/include/system/camera_metadata.h:23:0,
from frameworks/av/include/camera/CameraMetadata.h:20,
from frameworks/av/include/camera/CaptureResult.h:21,
from frameworks/av/include/camera/camera2/ICameraDeviceCallbacks.h:27,
from frameworks/av/camera/ICameraService.cpp:37:
system/media/camera/include/system/camera_vendor_tags.h:36:8: error: redefinition of 'struct vendor_tag_ops'
struct vendor_tag_ops {
^
In file included from frameworks/av/include/camera/ICameraServiceListener.h:23:0,
from frameworks/av/camera/ICameraService.cpp:31:
device/lge/p720/include/hardware/camera_common.h:261:8: error: previous definition of 'struct vendor_tag_ops'
struct vendor_tag_ops {
^
make: *** [/home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libcamera_client_intermediates/ICameraService.o] Error 1
frameworks/native/libs/gui/Sensor.cpp: In constructor 'android::Sensor::Sensor(const sensor_t*, int)':
frameworks/native/libs/gui/Sensor.cpp:236:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (mFlags != hwSensor->flags) {
^
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/oomap4-common'
#### make failed to build some targets (01:34 (mm:ss)) ####
Ok, now work on device tree. Fault is with camera service, so check your include, kernel-headers, and camera folder. Again diff with mine and l9. Also in kernel plat-omap/android_display.c compare it with l9. Understand that my kernel im trying to build for 512mb device, so vram and some other carvouts you would have to use l9 carveouts to bring up display, like android_display.c for example. For now, fix device tree to get complete rom to compile, then we can trace error from the dmesg. You doing good so far, good luck.:thumbup:
Sent from my LG-D620 using XDA Free mobile app

Error while compiling Kernel from source (Mediatek)

So I was compiling kernel for my Meizu m2 note and I encountered this error :
Code:
In file included from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/io.h:243:0,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/clocksource.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/clocksource/arm_arch_timer.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/arch_timer.h:27,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/timex.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timex.h:65,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/jiffies.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/ktime.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timer.h:5,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/workqueue.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/pm.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/device.h:25,
from drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:11:
/home/suvam/RRMM/kernel/meizu/m2note/include/asm-generic/iomap.h:31:21: note: expected 'void *' but argument is of type 'long unsigned int'
extern unsigned int ioread32(void __iomem *);
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:99:26: warning: passing argument 1 of 'ioread32' makes pointer from integer without a cast
#define ISP_RD32(addr) ioread32(addr)
^
/home/suvam/RRMM/kernel/meizu/m2note/include/linux/printk.h:248:38: note: in expansion of macro 'ISP_RD32'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:87:37: note: in expansion of macro 'pr_debug'
#define LOG_DBG(format, args...) pr_debug(MyTag format, ##args)
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:10828:3: note: in expansion of macro 'LOG_DBG'
LOG_DBG("0x%08X %08X", (unsigned int)(ISP_TPIPE_ADDR + 0x00a8), (unsigned int)ISP_RD32(ISP_ADDR + 0x00a8));
^
In file included from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/io.h:243:0,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/clocksource.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/clocksource/arm_arch_timer.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/arch_timer.h:27,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/timex.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timex.h:65,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/jiffies.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/ktime.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timer.h:5,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/workqueue.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/pm.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/device.h:25,
from drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:11:
/home/suvam/RRMM/kernel/meizu/m2note/include/asm-generic/iomap.h:31:21: note: expected 'void *' but argument is of type 'long unsigned int'
extern unsigned int ioread32(void __iomem *);
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: At top level:
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:175:22: warning: 'g_isp_base_dase' defined but not used [-Wunused-variable]
static void __iomem *g_isp_base_dase;
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:176:22: warning: 'g_isp_inner_base_dase' defined but not used [-Wunused-variable]
static void __iomem *g_isp_inner_base_dase;
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:177:22: warning: 'g_imgsys_config_base_dase' defined but not used [-Wunused-variable]
static void __iomem *g_imgsys_config_base_dase;
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: In function 'compat_put_isp_read_register_data':
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:8407:6: warning: 'err' is used uninitialized in this function [-Wuninitialized]
err |= get_user(count, &data->Count);
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: In function 'ISP_DONE_Buf_Time.isra.4':
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:5522:49: warning: 'out' may be used uninitialized in this function [-Wmaybe-uninitialized]
pstRTBuf->ring_buf[i_dma].img_cnt = sof_count[out];
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: In function 'ISP_Buf_CTRL_FUNC':
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:4447:34: warning: 'out' may be used uninitialized in this function [-Wmaybe-uninitialized]
deque_buf.sof_cnt = sof_count[out];
^
LD drivers/misc/mediatek/mach/mt6735/built-in.o
LD drivers/misc/mediatek/mach/built-in.o
make[4]: *** [drivers/misc/mediatek] Error 2
make[3]: *** [drivers/misc] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/suvam/RRMM/kernel/meizu/m2note'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (09:32 (mm:ss)) ####
Can somebody please help me out ?

Categories

Resources