DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 3 of 3

Thread: "missing kernel .config file" error while compiling linux source code for android

  1. Junior Droid
    preetb123's Avatar
    Member #
    170391
    Join Date
    Feb 2011
    Posts
    25
    Phone
    Android Emulator(1.5 to 2.3)
    #1

    "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!
  2. Developer
    CorCor67's Avatar
    Member #
    64549
    Join Date
    May 2010
    Posts
    440
    Liked
    16 times
    Twitter
    _CorCor67
    Phone
    Droid DNA
    DroidForums.net Developer
    Premium Member
    #2
    And now the config file is in my /android-sdk-linux_x86/tools directory
    put .config in ~/common it should be in the dir you run "make" in
  3. Junior Droid
    preetb123's Avatar
    Member #
    170391
    Join Date
    Feb 2011
    Posts
    25
    Phone
    Android Emulator(1.5 to 2.3)
    #3
    i got it some time ago. thank you very much.

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. error while compiling linux kernel source for android
    By preetb123 in forum Android Hacks and Help
    Replies: 0
    Last Post: 03-17-2011, 08:33 PM
  2. jdk-5 error while building android source code
    By preetb123 in forum Android Roms
    Replies: 0
    Last Post: 03-16-2011, 09:48 AM
  3. Replies: 7
    Last Post: 01-22-2011, 06:06 PM
  4. Replies: 3
    Last Post: 02-27-2010, 07:35 AM

Search tags for this page

/proc/config.gz android
,

android config.gz

,
android config.gz missing
,
android proc/config.gz
,
cdt plugin for linux
,

config.gz android

,
config.gz galaxy nexus
,
how to get .config file from android
,
proc/config.gz android
,
where is android droid bionic config.gz
Click on a term to search our site for related topics.

Tags for this Thread

Find us on Google+