1. 13 10月, 2007 3 次提交
    • P
      kbuild: script to check for undefined Kconfig symbols · 0bce6735
      Paolo 'Blaisorblade' Giarrusso 提交于
      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.  \<CONFIG_;
      this is done to exclude macros like MMCONFIG_).
      
      Undefined Kconfig variables should be not be removed without care, but for
      instance arch/i386/boot/ uses a bunch of undefined Kconfig vars:
      
      $ scripts/checkunknowndefines.sh arch/i386/boot/
      arch/i386/boot/video.h uses undefined symbol VIDEO_400_HACK
      arch/i386/boot/video-vga.c uses undefined symbol VIDEO_400_HACK
      arch/i386/boot/video.c uses undefined symbol VIDEO_RETAIN
      arch/i386/boot/video.h uses undefined symbol VIDEO_RETAIN
      arch/i386/boot/video.h uses undefined symbol VIDEO_SVGA
      arch/i386/boot/video.h uses undefined symbol VIDEO_VESA
      arch/i386/boot/video-vesa.c uses undefined symbol VIDEO_VESA
      
      It should also be mentioned in SubmittingPatches and SubmitChecklist.
      Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Adrian Bunk <bunk@stusta.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      0bce6735
    • S
      kbuild: check if we can link gettext not just compile · aa1e5ef5
      Sam Ravnborg 提交于
      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: NSam Ravnborg <sam@ravnborg.org>
      aa1e5ef5
    • S
      kbuild: Use Elfnn_Half as replacement for Elfnn_Section · 4f4c4ee1
      Sam Ravnborg 提交于
      The Elfnn_Section is not available on all platforms,
      noteworthy are cygwin.
      Use the safe replacement _Half.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      4f4c4ee1
  2. 12 10月, 2007 37 次提交