Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/scripts/mkconfigs

    r1765 r2725  
    2727#      - lines that use double-quotes must \\-escape-quote them
    2828
    29 config="$1"
    30 if [ $# -lt 1 ]
    31 then
    32     config=.config
    33 fi
     29config=.config
    3430
     31{
    3532echo "\
    3633#ifndef _BBCONFIGOPTS_H
     
    3936 * busybox configuration settings.
    4037 *
    41  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
     38 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    4239 *
    4340 * This file is generated automatically by scripts/mkconfigs.
    4441 * Do not edit.
    45  *
    4642 */
    47 static const char *const bbconfig_config ="
     43static const char bbconfig_config[] ALIGN1 ="
    4844
    49 sed 's/\"/\\\"/g' $config | grep "^#\? \?CONFIG_" | awk '{print "\"" $0 "\\n\"";}'
     45grep '^#\? \?CONFIG_' "$config" \
     46| sed -e 's/\"/\\\"/g' -e 's/^/"/' -e 's/$/\\n"/'
    5047
    5148echo ";"
    52 echo "#endif /* _BBCONFIGOPTS_H */"
     49echo "#endif"
     50} >"$1"
     51
     52{
     53echo "\
     54#ifndef _BBCONFIGOPTS_BZ2_H
     55#define _BBCONFIGOPTS_BZ2_H
     56/*
     57 * busybox configuration settings.
     58 *
     59 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
     60 *
     61 * This file is generated automatically by scripts/mkconfigs.
     62 * Do not edit.
     63 */
     64static const char bbconfig_config_bz2[] ALIGN1 = {"
     65
     66grep '^#\? \?CONFIG_' "$config" \
     67| bzip2 -1 | dd bs=2 skip=1 2>/dev/null \
     68| od -v -t x1 \
     69| sed -e 's/^[^ ]*//' \
     70        -e 's/ //g' \
     71        -e '/^$/d' \
     72        -e 's/\(..\)/0x\1,/g'
     73
     74echo "};"
     75echo "#endif"
     76} >"$2"
Note: See TracChangeset for help on using the changeset viewer.