Results 1 to 5 of 5

Thread: Linux kernel .config file

  1. #1
    Join Date
    Mar 2010
    Posts
    202

    Linux kernel .config file

    Hello,
    Please check the following code
    Code:
    # Ifdef CONFIG_CODE
    code
    # Endif
    Suppose I run a make menuconfig having added the option for my code. When I select my option this will be reflected by a CONFIG_CODE = y in the. Config. What I'm wondering is: what tool and when the CONFIG_CODE = y is transformed into #Define CONFIG_CODE?. Am I going in the correct direction, if I am wrong then please let me know. Thanks in advance.

  2. #2
    Join Date
    Nov 2009
    Posts
    359

    Re: Linux kernel .config file

    Hello,
    I can not answer you in detail because I do not know the particular case of Linux, but I'll just say "probably before compiling the rest of the nucleus, as a tool house. Under NetBSD, it is managed by config (1), just before compiling the kernel. But why do you know that? It should be transparent to you, anyway.

  3. #3
    Join Date
    Dec 2009
    Posts
    213

    Re: Linux kernel .config file

    Hello,
    Even I do need to configure the linux kernel file, but I do not have much idea about it. I have tried may time to modify it and see what are the results, but the file is not modified and when I open it the next time there are no modification seen. If you guys have a idea about it then please let me know. Thanks in advance.

  4. #4
    Join Date
    Nov 2009
    Posts
    335

    Re: Linux kernel .config file

    Hello,
    Personally, it's been a decade that I use with Linux kernels compiled "by hand" and I confess that I never felt the need to go elsewhere to have the make config and company (with handy "make oldconfig") so it would be interesting, first, to answer question rz0 and tell us why you want to go fiddling the kernel code. I go every release of a new kernel version because I find a detailed description of the new options for config quite useful but there are also sections "Kernel hacking", "Kernel documentation or wiki where you should find your happiness.

  5. #5
    Join Date
    Mar 2010
    Posts
    202

    Re: Linux kernel .config file

    Hello,
    No, this is not what I need exactly and this is not my exact problem. I do not particularly want to touch kernel code but I just wanted to understand how the act of choosing a particular option in make menuconfig is represented so that much of the kernel code is compiled. It's just curiosity, because I understand that if I do modify the linux kernel then I will be in great trouble.

Similar Threads

  1. Replies: 8
    Last Post: 18-04-2011, 08:09 AM
  2. Want to know about 2.6 Kernel in Linux
    By mewlyo in forum Operating Systems
    Replies: 4
    Last Post: 26-12-2010, 08:53 AM
  3. The kernel and its configuration in Linux
    By Bruno007 in forum Tips & Tweaks
    Replies: 5
    Last Post: 04-12-2010, 06:28 AM
  4. Difference between Web.Config and Machine.Config File
    By Adrina_g in forum Software Development
    Replies: 5
    Last Post: 23-01-2010, 02:44 PM
  5. Linux kernel error
    By zuzie in forum Operating Systems
    Replies: 3
    Last Post: 15-09-2009, 10:56 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,581,851.49799 seconds with 17 queries