1. 25 Apr, 2008 6 commits
    • Richard Hacker's avatar
      kbuild: Add new Kbuild variable KBUILD_EXTRA_SYMBOLS · 0d96fb20
      Richard Hacker authored
      This patch adds a new (Kbuild) Makefile variable KBUILD_EXTRA_SYMBOLS.
      The space separated list of file names assigned to KBUILD_EXTRA_SYMBOLS
      is used when calling scripts/mod/modpost during stage 2 of the Kbuild
      process for non-kernel-tree modules.
      Signed-off-by: default avatarRichard Hacker <lerichi@gmx.net>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      0d96fb20
    • Richard Hacker's avatar
      kbuild: support loading extra symbols in modpost · 2d04b5ae
      Richard Hacker authored
      This patch adds a new command line option -E to modpost, expecting a symbol
      file as an argument which is read prior to symbol processing. -E can be
      supplied multiple times for as many files as is needed.
      
      When building kernel modules that depend on other modules not in the main
      kernel tree, modpost complains about undefined symbols:
      # make -C /path/to/linux/kernel M=/path/to/my/module
      ...
      Building modules, stage 2.
      ....
      WARNING: "rt_copy_buf" [/home/rich/osc_etl_rtw/osc_kmod.ko] undefined!
      ...etc
      
      This situation occurs when modpost processes the new module's symbols. When
      it finds symbols not exported by the mainline kernel, it issues this warning.
      
      The patch adds a new command line option -e to modpost which expects a symbol
      file as an argument. The symbols listed in this file are added to modpost's
      symbol tables during startup. -e can be supplied as often as required.
      
      This patch works together with the second patch. It introduces a new make
      variable, KBUILD_EXTRA_SYMBOLS, which is used when calling modpost.
      Signed-off-by: default avatarRichard Hacker <lerichi@gmx.net>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      2d04b5ae
    • Andi Kleen's avatar
      Add option to enable -Wframe-larger-than= on gcc 4.4 · 35bb5b1e
      Andi Kleen authored
      Add option to enable -Wframe-larger-than= on gcc 4.4
      
      gcc mainline (upcoming 4.4) added a new -Wframe-larger-than=...
      option to warn at build time about too large stack frames. Add a config
      option to enable this warning, since this very useful for the kernel.
      
      I choose (somewhat arbitarily) 2048 as default warning threshold for 64bit
      and 1024 as default for 32bit architectures.  With some research and
      fixing all the code for smaller values these defaults should be probably
      lowered.
      
      With the default allyesconfigs have some new warnings, but I think
      that is all code that should be just fixed.
      
      At some point (when gcc 4.4 is released and widely used) this should
      obsolete make checkstack
      Signed-off-by: default avatarAndi Kleen <ak@suse.de>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      35bb5b1e
    • Alexey Dobriyan's avatar
      kbuild: add kconfig symbols to tags output · 80ff2624
      Alexey Dobriyan authored
      Steps to reproduce:
      
      	vi -t NETFILTER
      Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      80ff2624
    • Robert P. J. Day's avatar
      kbuild: fix some minor typoes · 3156fd05
      Robert P. J. Day authored
      Signed-off-by: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      3156fd05
    • Sam Ravnborg's avatar
      kbuild: error out on missing MODULE_LICENSE · eed7d279
      Sam Ravnborg authored
      Adrian Bunk suggested a build time check for
      missing MODULE_LICENSE annotation in modules.
      The build time check is fatal as we really
      want this fixed for all modules.
      In-tree modules should all have been fixed up by now.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Adrian Bunk <bunk@kernel.org>
      eed7d279
  2. 24 Apr, 2008 34 commits