LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (http://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   error while compiling linux kernel source for android (http://www.linuxquestions.org/questions/linux-mobile-81/error-while-compiling-linux-kernel-source-for-android-869303/)

preetb123 03-17-2011 10:29 PM

error while compiling linux kernel source for android
 
I have downloaded the Linux Kernel Source and trying to build Linux kernel for android emulator. Now I get error while compiling the Linux Kernel Source, here I use cross-compiling tool-chain that is downloaded with android source.

When I try this:

ARCH=arm CROSS_COMPILE=~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make

I get the following error:

root@ubuntu:~# ARCH=arm CROSS_COMPILE=~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make
make: *** No targets specified and no makefile found. Stop.
root@ubuntu:~#

i am following the instructions from http://linuxclues.blogspot.com/2010/...l-android.html

so, What is the error, or do I have to execute this in some other directory?

Please help. Thank you!

EDDY1 03-18-2011 04:49 AM

Ithink you're running emulater? This is in the link you provided.
http://linuxclues.blogspot.com/2010/...ebian-sid.html

preetb123 03-18-2011 08:29 AM

Quote:

Originally Posted by EDDY1 (Post 4294764)
Ithink you're running emulater? This is in the link you provided.
http://linuxclues.blogspot.com/2010/...ebian-sid.html


if also i close the emulator, same error appears...
there must be some problem with make files, i am not able to find where this make file is and how to get this done.

archtoad6 03-19-2011 06:30 AM

Why is this marked "[SOLVED]"? -- Your last post sounds like you are still looking for an answer.

preetb123 03-19-2011 06:44 AM

Quote:

Originally Posted by archtoad6 (Post 4295924)
Why is this marked "[SOLVED]"? -- Your last post sounds like you are still looking for an answer.

I changed the directory to "common", that is, from root@ubuntu:~# to root@ubuntu:~/common# and the compilation started.
now there is problem with some files when i "make". most of the things are done, the last error is


root@ubuntu:~/common# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC drivers/rtc/alarm.o
drivers/rtc/alarm.c:16: fatal error: asm/mach/time.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/rtc/alarm.o] Error 1
make[1]: *** [drivers/rtc] Error 2
make: *** [drivers] Error 2
root@ubuntu:~/common#



and i am still finding, how to resolve this...


anyways, thankyou very much...!!!

preetb123 03-19-2011 09:56 AM

Quote:

Originally Posted by preetb123 (Post 4295933)
I changed the directory to "common", that is, from root@ubuntu:~# to root@ubuntu:~/common# and the compilation started.
now there is problem with some files when i "make". most of the things are done, the last error is


root@ubuntu:~/common# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC drivers/rtc/alarm.o
drivers/rtc/alarm.c:16: fatal error: asm/mach/time.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/rtc/alarm.o] Error 1
make[1]: *** [drivers/rtc] Error 2
make: *** [drivers] Error 2
root@ubuntu:~/common#



and i am still finding, how to resolve this...


anyways, thankyou very much...!!!



Well this is resolved too...!! i found this link

http://labs.beatcraft.com/en/index.p...id%20for%20x86

thanks linuxquestions.org!!

xlu2000 05-17-2013 09:06 PM

hi preetb,

Can I use this way to compile a kernel in which I added new codes?

Thank you,


All times are GMT -5. The time now is 11:26 PM.