LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 03-18-2011, 11:36 PM   #1
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Rep: Reputation: 0
"missing kernel .config file" error while compiling linux source code for android


I am compiling linux source code for android emulator. I did all the prerequisites. I extracted the .config file from the android emulator(1.5) with following commands

$adb pull /proc/config.gz . # get compressed .config file from the emulator.

$gunzip config.gz # uncompress it.
$cp config .config # rename it into .config


And now the config file is in my /android-sdk-linux_x86/tools directory. I have modified it according to my needs. Now when i try to make(for building and cross-compiling the linux source) i get the following error.


root@ubuntu:~# cd common
root@ubuntu:~/common# ARCH=arm CROSS_COMPILE=/home/preetam/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/arm/Kconfig
***
*** You have not yet configured your kernel!
*** (missing kernel .config file)
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
CHK include/linux/version.h
UPD include/linux/version.h
Generating include/asm-arm/mach-types.h
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
root@ubuntu:~/common#

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

Here "common" directory is where my android kernel source resides. The error is regarding the .config file. where should i place the .config file? or how to solve this problem?



please help. thank you!
 
Old 03-19-2011, 12:18 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
The .config should be in the top-level directory.

Which, in this case, would be ~/common.
 
1 members found this post helpful.
Old 03-19-2011, 01:32 AM   #3
preetb123
LQ Newbie
 
Registered: Jan 2011
Posts: 28

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by andrewthomas View Post
The .config should be in the top-level directory.

Which, in this case, would be ~/common.
i did it sometime ago. thankyou very much.
 
Old 03-19-2011, 07:46 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You're welcome.

Glad to be of help.
 
  


Reply

Tags
android, crosscompile, emulator, kernel config



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error while compiling linux kernel source for android preetb123 Linux - Mobile 6 05-17-2013 08:06 PM
Please share "A Heavily Commented Linux Kernel Source Code" English version osdevkid Linux - Kernel 3 03-04-2011 12:02 AM
LXer: Google releases Android 2.3 "Gingerbread" source code LXer Syndicated Linux News 0 12-20-2010 09:00 AM
Adding a ".c" source code file name to the Kernel's Makefile. RossR Linux - Kernel 2 05-30-2009 05:28 AM
"convert source code into bin file" kandhakumar Linux - Software 2 05-26-2009 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration