Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,736,513 Members 52,771 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE]Building a Kernel from source{Mediatek}

Tip us?
 
I.nfraR.ed
Old
#41  
Member
Thanks Meter 25
Posts: 96
Join Date: May 2013
Location: Sofia
git reset --hard will clean it to the stage it is in the github and what I want to do is to remove all generated files from the build process and not loose the changes I made (not committed yet). Imagine I want to make a full compare to another mtk source. I want it as clean as possible.

This is the Makefile I'm using https://github.com/infraredbg/Lenovo...ernel/Makefile
You can check the distclean on line #1248.
 
MasterAwesome
Old
#42  
MasterAwesome's Avatar
Senior Member - OP
Thanks Meter 678
Posts: 1,052
Join Date: Jun 2013
Quote:
Originally Posted by I.nfraR.ed View Post
git reset --hard will clean it to the stage it is in the github and what I want to do is to remove all generated files from the build process and not loose the changes I made (not committed yet). Imagine I want to make a full compare to another mtk source. I want it as clean as possible.

This is the Makefile I'm using https://github.com/infraredbg/Lenovo...ernel/Makefile
You can check the distclean on line #1248.
Manually search for the .o files and delete them usually if make clean is given it automatically cleans is it. Besides, if make is given it will generate pre compiled c files again. It try creating a github patch then reset it, apply the patch again.

Sent from my Moto G using XDA Free mobile app
“Be yourself; everyone else is already taken.”― Oscar Wilde
 
I.nfraR.ed
Old
#43  
Member
Thanks Meter 25
Posts: 96
Join Date: May 2013
Location: Sofia
Quote:
Originally Posted by MasterAwesome View Post
Manually search for the .o files and delete them usually if make clean is given it automatically cleans is it. Besides, if make is given it will generate pre compiled c files again. It try creating a github patch then reset it, apply the patch again.

Sent from my Moto G using XDA Free mobile app
Thanks. I started from scratch. Managed to break the accelerometer and it would be easier to start over.
 
moonrotation
Old
#44  
Junior Member
Thanks Meter 5
Posts: 27
Join Date: Mar 2011
Location: Tenerife (Canary Islands, Spain)

 
DONATE TO ME
Can someone help me with these errors?

Code:
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIGetResolution':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1290: multiple definition of `OV5647MIPIGetResolution'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1290: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIGetInfo':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1302: multiple definition of `OV5647MIPIGetInfo'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1302: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIClose':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1113: multiple definition of `OV5647MIPIClose'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1110: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPI_write_cmos_sensor':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:153: multiple definition of `OV5647MIPI_write_cmos_sensor'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:165: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPI_read_cmos_sensor':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:160: multiple definition of `OV5647MIPI_read_cmos_sensor'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:172: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIOpen':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1026: multiple definition of `OV5647MIPIOpen'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1040: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPISetMaxFrameRate':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:266: multiple definition of `OV5647MIPISetMaxFrameRate'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:280: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `set_OV5647MIPI_shutter':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:305: multiple definition of `set_OV5647MIPI_shutter'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:319: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIGain2Reg':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:322: multiple definition of `OV5647MIPIGain2Reg'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:336: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPI_SetGain':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:346: multiple definition of `OV5647MIPI_SetGain'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:360: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPI_night_mode':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:378: multiple definition of `OV5647MIPI_night_mode'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:392: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5642GetSensorID':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1065: multiple definition of `OV5642GetSensorID'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1078: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIPreview':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1141: multiple definition of `OV5647MIPIPreview'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1138: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIZsdPreview':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1182: multiple definition of `OV5647MIPIZsdPreview'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1179: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPICapture':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1243: multiple definition of `OV5647MIPICapture'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1242: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIControl':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1455: multiple definition of `OV5647MIPIControl'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1459: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPISetVideoMode':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1482: multiple definition of `OV5647MIPISetVideoMode'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1486: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPISetAutoFlickerMode':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1521: multiple definition of `OV5647MIPISetAutoFlickerMode'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1520: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIFeatureControl':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1544: multiple definition of `OV5647MIPIFeatureControl'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1543: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `.LANCHOR0':
ov5647mpi_Sensor.c:(.data+0x100): multiple definition of `SensorFuncOV5647MIPI'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:ov5647mipi_Sensor.c:(.data+0x100): first defined here
 
MasterAwesome
Old
(Last edited by MasterAwesome; 20th July 2014 at 01:26 PM.)
#45  
MasterAwesome's Avatar
Senior Member - OP
Thanks Meter 678
Posts: 1,052
Join Date: Jun 2013
Quote:
Originally Posted by moonrotation View Post
Can someone help me with these errors?

Code:
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIGetResolution':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1290: multiple definition of `OV5647MIPIGetResolution'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1290: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIGetInfo':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1302: multiple definition of `OV5647MIPIGetInfo'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1302: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIClose':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1113: multiple definition of `OV5647MIPIClose'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1110: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPI_write_cmos_sensor':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:153: multiple definition of `OV5647MIPI_write_cmos_sensor'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:165: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPI_read_cmos_sensor':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:160: multiple definition of `OV5647MIPI_read_cmos_sensor'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:172: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIOpen':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1026: multiple definition of `OV5647MIPIOpen'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1040: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPISetMaxFrameRate':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:266: multiple definition of `OV5647MIPISetMaxFrameRate'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:280: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `set_OV5647MIPI_shutter':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:305: multiple definition of `set_OV5647MIPI_shutter'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:319: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIGain2Reg':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:322: multiple definition of `OV5647MIPIGain2Reg'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:336: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPI_SetGain':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:346: multiple definition of `OV5647MIPI_SetGain'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:360: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPI_night_mode':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:378: multiple definition of `OV5647MIPI_night_mode'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:392: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5642GetSensorID':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1065: multiple definition of `OV5642GetSensorID'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1078: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIPreview':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1141: multiple definition of `OV5647MIPIPreview'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1138: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIZsdPreview':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1182: multiple definition of `OV5647MIPIZsdPreview'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1179: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPICapture':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1243: multiple definition of `OV5647MIPICapture'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1242: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIControl':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1455: multiple definition of `OV5647MIPIControl'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1459: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPISetVideoMode':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1482: multiple definition of `OV5647MIPISetVideoMode'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1486: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPISetAutoFlickerMode':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1521: multiple definition of `OV5647MIPISetAutoFlickerMode'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1520: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `OV5647MIPIFeatureControl':
/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.c:1544: multiple definition of `OV5647MIPIFeatureControl'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:/home/kool/Newman/kernel/mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.c:1543: first defined here
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mpi_Sensor.o: In function `.LANCHOR0':
ov5647mpi_Sensor.c:(.data+0x100): multiple definition of `SensorFuncOV5647MIPI'
mediatek/custom/out/newmann1/kernel/imgsensor/ov5647mipi_Sensor.o:ov5647mipi_Sensor.c:(.data+0x100): first defined here
Looks like the header file and/or the source file has multiple definitions

Code:
#define "var_name"
or the function itself is defined both in the .c and the .h causing multiple definitions. or probably the .c is including itself while compilation. before actual usage the driver source code looks bad and needs some modifying. I had a similar issue some time ago and modified the files. try the ones in the attachment(Replace only files which cause error!)
Attached Files
File Type: zip imgsensor.zip - [Click for QR Code] (711.6 KB, 1 views)
“Be yourself; everyone else is already taken.”― Oscar Wilde
 
moonrotation
Old
(Last edited by moonrotation; 20th July 2014 at 06:32 PM.) Reason: edit
#46  
Junior Member
Thanks Meter 5
Posts: 27
Join Date: Mar 2011
Location: Tenerife (Canary Islands, Spain)

 
DONATE TO ME
Quote:
Originally Posted by MasterAwesome View Post
Looks like the header file and/or the source file has multiple definitions

Code:
#define "var_name"
or the function itself is defined both in the .c and the .h causing multiple definitions. or probably the .c is including itself while compilation. before actual usage the driver source code looks bad and needs some modifying. I had a similar issue some time ago and modified the files. try the ones in the attachment(Replace only files which cause error!)
Thanks for reply!

EDIT!

Finally solved!
 
MasterAwesome
Old
#47  
MasterAwesome's Avatar
Senior Member - OP
Thanks Meter 678
Posts: 1,052
Join Date: Jun 2013
Quote:
Originally Posted by moonrotation View Post
Thanks for reply!

EDIT!

Finally solved!
If fixed please link the files modified along with the device name so it can help the XDA community.

Sent from my Moto G using XDA Free mobile app
“Be yourself; everyone else is already taken.”― Oscar Wilde
 
moonrotation
Old
#48  
Junior Member
Thanks Meter 5
Posts: 27
Join Date: Mar 2011
Location: Tenerife (Canary Islands, Spain)

 
DONATE TO ME
Quote:
Originally Posted by MasterAwesome View Post
If fixed please link the files modified along with the device name so it can help the XDA community.

Sent from my Moto G using XDA Free mobile app
Finally, there is bootloop after alcatel logo.

Mainly just looked blank screen, now loads the driver lcm, but not work.
I need some time to test and learn a little about source code.

Alcatel does not release the jb source code to my device (X'POP 5035X) but if the ics source.
Is possible to adapt the Ics project to a source code of another device?

I've been doing this with Newman-N1 3.4.11 and now loads the lcm driver but I'm really noob about kernel sources.

Tags
building, guide, kernel, mediatek, source
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes