lkml.org 
[lkml]   [2000]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] 2.2: /proc/config.gz
    Chip Salzenberg wrote:
    >
    > This is a 2.2.17pre20 refresh of the /proc/config.gz patch

    [...]

    > +include/linux/config_data.h: newversion scripts/bin2c
    > + gzip -9 < .config | scripts/bin2c kernel_config_data > $@
    > +

    If you are going to store options the kernel was built with, you
    might as well get rid of all the cruft so you don't run into size
    problems. For example:

    sed '/=m/d;s/=y//;/^CONFIG_/s///p;d' .config | \
    gzip -9 | scripts/bin2c kernel_config_data > $@

    maintains all the useful information and will be less than 1/2kB.
    (things marked as not set or modular aren't relevant to the zImage)

    You can reconstruct it back with:

    gzip -d < /proc/config.gz | sed '/=/\!s/$/=y/;s/^/CONFIG_/' > .config

    Run 'make oldconfig' and hold down the Enter key for a few seconds.

    Paul.



    _________________________________________________________
    Do You Yahoo!?
    Get your free @yahoo.com address at http://mail.yahoo.com

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 12:38    [W:0.026 / U:30.144 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site