Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/scripts/kconfig


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
2 deleted
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/scripts/kconfig/Makefile

    r3232 r3621  
    151151HOSTCXXFLAGS_qconf.o    = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK
    152152
    153 HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
     153HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` -ldl
    154154HOSTCFLAGS_gconf.o  = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
    155155                          -D LKC_DIRECT_LINK
  • branches/3.3/mindi-busybox/scripts/kconfig/confdata.c

    r2725 r3621  
    125125        case S_HEX:
    126126        case S_STRING:
    127             if (sym->user.val)
    128                 free(sym->user.val);
     127            free(sym->user.val);
    129128        default:
    130129            sym->user.val = NULL;
     
    475474                        /* bbox */
    476475                        fprintf(out_h, "#define ENABLE_%s 1\n", sym->name);
    477                         fprintf(out_h, "#define IF_%s(...) __VA_ARGS__\n", sym->name);
     476                        fprintf(out_h, "#ifdef MAKE_SUID\n");
     477                        fprintf(out_h, "# define IF_%s(...) __VA_ARGS__ \"CONFIG_%s\"\n", sym->name, sym->name);
     478                        fprintf(out_h, "#else\n");
     479                        fprintf(out_h, "# define IF_%s(...) __VA_ARGS__\n", sym->name);
     480                        fprintf(out_h, "#endif\n");
    478481                        fprintf(out_h, "#define IF_NOT_%s(...)\n", sym->name);
    479482                    }
     
    507510                    /* bbox */
    508511                    fprintf(out_h, "#define ENABLE_%s 1\n", sym->name);
    509                     fprintf(out_h, "#define IF_%s(...) __VA_ARGS__\n", sym->name);
     512                    fprintf(out_h, "#ifdef MAKE_SUID\n");
     513                    fprintf(out_h, "# define IF_%s(...) __VA_ARGS__ \"CONFIG_%s\"\n", sym->name, sym->name);
     514                    fprintf(out_h, "#else\n");
     515                    fprintf(out_h, "# define IF_%s(...) __VA_ARGS__\n", sym->name);
     516                    fprintf(out_h, "#endif\n");
    510517                    fprintf(out_h, "#define IF_NOT_%s(...)\n", sym->name);
    511518                }
     
    519526                        /* bbox */
    520527                        fprintf(out_h, "#define ENABLE_%s 1\n", sym->name);
    521                         fprintf(out_h, "#define IF_%s(...) __VA_ARGS__\n", sym->name);
     528                        fprintf(out_h, "#ifdef MAKE_SUID\n");
     529                        fprintf(out_h, "# define IF_%s(...) __VA_ARGS__ \"CONFIG_%s\"\n", sym->name, sym->name);
     530                        fprintf(out_h, "#else\n");
     531                        fprintf(out_h, "# define IF_%s(...) __VA_ARGS__\n", sym->name);
     532                        fprintf(out_h, "#endif\n");
    522533                        fprintf(out_h, "#define IF_NOT_%s(...)\n", sym->name);
    523534                    }
     
    533544                    /* bbox */
    534545                    fprintf(out_h, "#define ENABLE_%s 1\n", sym->name);
    535                     fprintf(out_h, "#define IF_%s(...) __VA_ARGS__\n", sym->name);
     546                    fprintf(out_h, "#ifdef MAKE_SUID\n");
     547                    fprintf(out_h, "# define IF_%s(...) __VA_ARGS__ \"CONFIG_%s\"\n", sym->name, sym->name);
     548                    fprintf(out_h, "#else\n");
     549                    fprintf(out_h, "# define IF_%s(...) __VA_ARGS__\n", sym->name);
     550                    fprintf(out_h, "#endif\n");
    536551                    fprintf(out_h, "#define IF_NOT_%s(...)\n", sym->name);
    537552                }
  • branches/3.3/mindi-busybox/scripts/kconfig/lxdialog/check-lxdialog.sh

    r2725 r3621  
    55ldflags()
    66{
    7     for ext in so a dylib ; do
     7    pkg-config --libs ncursesw 2>/dev/null && exit
     8    pkg-config --libs ncurses 2>/dev/null && exit
     9    for ext in so a dll.a dylib ; do
    810        for lib in ncursesw ncurses curses ; do
    911            $cc -print-file-name=lib${lib}.${ext} | grep -q /
     
    2022ccflags()
    2123{
    22     if [ -f /usr/include/ncursesw/ncurses.h ]; then
    23         echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncurses.h>"'
     24    if pkg-config --cflags ncursesw 2>/dev/null; then
     25        echo '-DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1'
     26    elif pkg-config --cflags ncurses 2>/dev/null; then
     27        echo '-DCURSES_LOC="<ncurses.h>"'
    2428    elif [ -f /usr/include/ncursesw/curses.h ]; then
    25         echo '-I/usr/include/ncursesw -DCURSES_LOC="<ncursesw/curses.h>"'
     29        echo '-I/usr/include/ncursesw -DCURSES_LOC="<curses.h>"'
     30        echo ' -DNCURSES_WIDECHAR=1'
    2631    elif [ -f /usr/include/ncurses/ncurses.h ]; then
    2732        echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"'
    2833    elif [ -f /usr/include/ncurses/curses.h ]; then
    29         echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
     34        echo '-I/usr/include/ncurses -DCURSES_LOC="<curses.h>"'
    3035    elif [ -f /usr/include/ncurses.h ]; then
    3136        echo '-DCURSES_LOC="<ncurses.h>"'
     
    4146# Check if we can link to ncurses
    4247check() {
    43         $cc -xc - -o $tmp 2>/dev/null <<'EOF'
     48        $cc -x c - -o $tmp 2>/dev/null <<'EOF'
    4449#include CURSES_LOC
    4550main() {}
  • branches/3.3/mindi-busybox/scripts/kconfig/util.c

    r2725 r3621  
    8080void str_free(struct gstr *gs)
    8181{
    82     if (gs->s)
    83         free(gs->s);
     82    free(gs->s);
    8483    gs->s = NULL;
    8584    gs->len = 0;
  • branches/3.3/mindi-busybox/scripts/kconfig/zconf.hash.c_shipped

    r2725 r3621  
    3333/* maximum key range = 45, duplicates = 0 */
    3434
    35 #ifdef __GNUC__
    36 __inline
    37 #else
    38 #ifdef __cplusplus
    39 inline
    40 #endif
    41 #endif
    42 static unsigned int
     35unsigned int
    4336kconf_id_hash (register const char *str, register unsigned int len)
    4437{
     
    120113    char kconf_id_strings_str46[sizeof("prompt")];
    121114  };
    122 static struct kconf_id_strings_t kconf_id_strings_contents =
     115struct kconf_id_strings_t kconf_id_strings_contents =
    123116  {
    124117    "if",
     
    154147  };
    155148#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
    156 #ifdef __GNUC__
    157 __inline
    158 #endif
    159149struct kconf_id *
    160150kconf_id_lookup (register const char *str, register unsigned int len)
Note: See TracChangeset for help on using the changeset viewer.