13 Oct, 2007

20 commits

  • Remove the following redundant and never or rarely used kconfig syntax:

    - "def_boolean" (same as "def_bool")
    - "requires" (same as "depends on")
    - "depends" (same as "depends on")

    This patch contains the code changes and Kconfig updates.
    The shipped files are in next patch to let actual codechange stand out.

    Signed-off-by: Adrian Bunk
    Cc: "Randy.Dunlap"
    Cc: Bryan Wu
    Cc: Paul Mackerras
    Cc: Benjamin Herrenschmidt
    Cc: Dmitry Torokhov
    Cc: "John W. Linville"
    Cc: Roman Zippel
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Adrian Bunk
     
  • Jan Engelhardt reported:
    You can cause a recursion in kbuild/make with the following:

    make O=$PWD kernel/time.o
    make mrproper

    Of course no one would use O=$PWD (that's just the testcase),
    but this happened too often:

    /ws/linux/linux-2.6.23$ make O=/ws/linux/linux-2.6.23 kernel/time.o
    (Oops - should have been O=/ws/linux/obj-2.6.23!)

    Fixed by an explicit test for this case - we error
    out if output directory and source directory are the same.

    Tested-by: Jan Engelhardt
    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • With specific configurations requesting help for certain
    menu lines caused menuconfig to crash.
    This was tracked down to a null pointer bug.
    Thanks to "Miles Lane" for inital reporting
    and to Gabriel C for the backtrace
    that helped me locating the bug.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Matěj Laitl noticed that there was no way
    to distingush between comments and un-selectable menu lines.
    This patch marks comments with *** comment ***

    Cc: Matěj Laitl
    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Previously kbuild choked over the following:
    obj-y += ../../../arch/i386/kernel/bootflag.o

    This has resulted in some rather ugly workarounds in
    current x86_64 tree.
    This patch fixes kbuild to allow the above and enable
    potential cleanups in x86_64 and maybe in other places.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Changing the global CPPFLAGS is not the recommended way
    to add additional include dirs.
    Changed to use EXTRA_CFLAGS.

    Signed-off-by: Sam Ravnborg
    Acked-by: Jes Sorensen

    Sam Ravnborg
     
  • - fix typos/spellos in docproc.c and Makefile
    - add a little whitespace {while, switch} (coding style)
    - use NULL instead of 0 for pointer testing

    Signed-off-by: Randy Dunlap
    Signed-off-by: Sam Ravnborg

    Randy Dunlap
     
  • This patch updates the _shipped files for genksyms.
    See previous patch for actual functional changes.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Recently the __extension__ keyword has been introduced in the kernel.
    Teach genksyms about this keyword so it can generate correct CRC for
    exported symbols that uses a symbol marked __extension__.
    For now only the typedef variant:

    __extension__ typedef ...

    is supported.
    Later we may add more variants as needed.

    This patch contains the actual source file changes. The
    following patch will hold modifications to the generated
    files (*_shipped) and only after the second patch the fix
    has effect.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • When enabling GENERATE_PARSER the genksyms Makefile
    failed to create _shipped version of generated files.

    Modifying keywords.gperf failed to cause a rebuild
    of genksyms.
    Fixed by specifying keywowrds .c as explicit prerequisite
    of the lexer.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • Currently scripts/ver_linux prints "Binutils" or other random
    information for the version number in the "binutils" output line
    on some distributions. This patch corrects that.

    When I initially submitted a patch to correct that, I was not aware
    that the output from "ld -v" could differ as much as it turned out
    it can, so my original fix turned out to not cover all bases.
    This patch works correctly with all the different "ld -v" output
    that people posted in replys to my first patch, so it should be a
    clear win over what we have currently.

    Signed-off-by: Jesper Juhl
    Signed-off-by: Sam Ravnborg

    Jesper Juhl
     
  • Fix ver_linux glibc version printing (for real this time)

    Alexey Dobriyan reported that commit
    4a645d5ea65baaa5736bcb566673bf4a351b2ad8
    broke ver_linux when glibc has a 3 digit
    version number, and proposed a patch.
    Al Viro then suggested a simpler way to
    solve the problem which I've then simply
    put into patch form.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Al Viro
    Signed-off-by: Jesper Juhl
    Signed-off-by: Sam Ravnborg

    Jesper Juhl
     
  • Currently, if you call scripts/gcc-version.sh without arguments it will
    generate this output :

    $ sh scripts/gcc-version.sh
    scripts/gcc-version.sh: line 12: [: =: unary operator expected
    scripts/gcc-version.sh: line 16: -E: command not found
    scripts/gcc-version.sh: line 17: -E: command not found
    0000

    Not too pretty. I believe this is an improvement :

    $ sh scripts/gcc-version.sh
    Error: No compiler specified.
    Usage:
    scripts/gcc-version.sh

    Signed-off-by: Jesper Juhl
    Signed-off-by: Sam Ravnborg

    Jesper Juhl
     
  • At the moment, running `make clean` in an external module directory does a
    nice job of cleaning up with one exception: it leaves behind Modules.symvers.
    Attached patch adds this file to the clean list for external modules.

    Signed-off-by: Mike Frysinger
    Signed-off-by: Sam Ravnborg

    Mike Frysinger
     
  • Fix modpost segfault.

    Before:
    -------
    ynezz@ntbk:~/linux-2.6.git$ scripts/mod/modpost vmlinux ath_pci.o
    Segmentation fault

    After:
    ------
    ynezz@ntbk:~/linux-2.6.git$ scripts/mod/modpost vmlinux ath_pci.o
    FATAL: section header offset=815726848 in file 'ath_pci.o' is bigger then filesize=153968

    Sam: This seems to warn for a binutils issue. Anyway modpost should not
    segfault.

    Signed-off-by: Petr Stetiar
    Signed-off-by: Sam Ravnborg

    Petr Stetiar
     
  • Fixes some subtle perl coding bug observed
    by Jan Engelhardt
    This patch applies on top of Adrian's fix.

    Signed-off-by: Ram Pai
    Acked-by: Jan Engelhardt
    Signed-off-by: Sam Ravnborg

    Ram Pai
     
  • This patch fixes an annoying bug of export_report.pl missing the usages
    of some exports.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Sam Ravnborg

    Adrian Bunk
     
  • To avoid having to look manually for used but undefined Kconfig variables,
    I've written a script which tries do this efficiently, in case all other
    attention fail. It accounts for _MODULE suffix and for UML_ prefixes to
    Kconfig variable, but otherwise looks for exact matches (i.e. \
    Cc: Roman Zippel
    Cc: Adrian Bunk
    Signed-off-by: Andrew Morton
    Signed-off-by: Sam Ravnborg

    Paolo 'Blaisorblade' Giarrusso
     
  • cygwin provides the header file but the lib file needs
    to be added manually. A generic fix is to check if
    we can compile and link a program that uses gettext()
    and if it fails fall back to NO_NLS.

    International users of cygwin may have to specify
    HOST_LOADLIBES := "-lintl" on the make command line.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • The Elfnn_Section is not available on all platforms,
    noteworthy are cygwin.
    Use the safe replacement _Half.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     

12 Oct, 2007

20 commits