Skip to content
  1. Dec 03, 2008
    • Andreas Gruenbacher's avatar
      genksyms: track symbol checksum changes · 64e6c1e1
      Andreas Gruenbacher authored
      
      
      Sometimes it is preferable to avoid changes of exported symbol checksums
      (to avoid breaking externally provided modules).  When a checksum change
      occurs, it can be hard to figure out what caused this change: underlying
      types may have changed, or additional type information may simply have
      become available at the point where a symbol is exported.
      
      Add a new --reference option to genksyms which allows it to report why
      checksums change, based on the type information dumps it creates with the
      --dump-types flag.  Genksyms will read in such a dump from a previous run,
      and report which symbols have changed (and why).
      
      The behavior can be controlled for an entire build as follows: If
      KBUILD_SYMTYPES is set, genksyms uses --dump-types to produce *.symtypes
      dump files.  If any *.symref files exist, those will be used as the
      reference to check against.  If KBUILD_PRESERVE is set, checksum changes
      will fail the build.
      
      Signed-off-by: default avatarAndreas Gruenbacher <agruen@suse.de>
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      64e6c1e1
    • Sam Ravnborg's avatar
      tags and cscope support really belongs in a shell script · a680eedc
      Sam Ravnborg authored
      
      as they do not benefit from the make functionality.
      
      Moving the support to a shell script has several benefits:
      - The readability of the code has increased a lot
      - More people is able to extend the tags support
      - We see less changes to the top-level Makefile
      
      The shell script version includes improvements from:
      Alexey Dobriyan <adobriyan@gmail.com> (jump to kconfig symbols)
      Alexey Dobriyan <adobriyan@gmail.com> (drop ./ in paths)
      Ian Campbell <ijc@hellion.org.uk> (simplified find algorithms)
      
      This version has a few caveats:
      => It does not support ALLSOURCE_ARCHS
         - it is easy to add if it is really used
      => It assumes all archs have moved to arch/$ARCH/include
         - until that happens we have a few additional hits in the archs
      
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Tested-by: default avatarIan Campbell <ijc@hellion.org.uk>
      a680eedc
    • Sam Ravnborg's avatar
      kconfig: fix options to check-lxdialog.sh · f6682f91
      Sam Ravnborg authored
      
      
      As noted by Bernhard - fix it up.
      
      Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      f6682f91
    • Werner Almesberger's avatar
      remove bashisms from scripts/extract-ikconfig · efddd795
      Werner Almesberger authored
      
      
      unbashify-extract-ikconfig.patch
      
      scripts/extract-ikconfig contains a lot of gratuituous bashisms,
      which make it fail if /bin/sh isn't bash. This patch replaces them
      with regular Bourne shell constructs.
      
      Signed-off-by: default avatarWerner Almesberger <werner@openmoko.org>
      Acked-by: Randy Dunlap <randy.dunlap@oracle.com> # as file author
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      efddd795
    • Sam Ravnborg's avatar
      kbuild: teach mkmakfile to be silent · d2301249
      Sam Ravnborg authored
      
      
      With this fix a "make -s" is now really silent
      
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      d2301249
    • Mike Frysinger's avatar
      kbuild: use KECHO convenience echo · fd54f502
      Mike Frysinger authored
      
      
      Convert a few echos in the build system to new $(kecho) so we get correct
      output according to build verbosity.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      [sam: added kecho in a few more places for O=... builds]
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      fd54f502
    • Mike Frysinger's avatar
      kbuild: introduce $(kecho) convenience echo · 5410ecc0
      Mike Frysinger authored
      
      
      There is a bunch of places in the build system where we do 'echo' to show
      some nice status lines.  This means we still get output when running in
      silent mode.  So declare a new KECHO variable that only does 'echo' when we
      are in a suitable verbose build mode.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      [sam: added Documentation]
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      5410ecc0
    • Mike Frysinger's avatar
      kbuild: kill output in silent mode of mkcompile_h · d03fab43
      Mike Frysinger authored
      
      
      The mkcompile_h script does `echo` regardless of silent mode the make is
      running at, so have it respect $quiet from kbuild and only echo when not in
      silent mode.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      d03fab43
    • Sam Ravnborg's avatar
      kbuild: expand -I in KBUILD_CPPFLAGS · d8672b40
      Sam Ravnborg authored
      
      
      kbuild failed to expand include flags in KBUILD_CPPFLAGS
      resulting in code like this in arch Makefiles:
      
      ifeq ($(KBUILD_SRC),)
      KBUILD_CPPFLAGS += -Iinclude/foo
      else
      KBUILD_CPPFLAGS += -I$(srctree)/include/foo
      endif
      
      Move use of LINUXINCLUDE into Makefile.lib to allow
      us to expand -I directives of KBUILD_CPPFLAGS so
      we can avoid the above code.
      
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      d8672b40
    • Sam Ravnborg's avatar
      kbuild: fix -I option expansion with O=... builds · 5b91c33c
      Sam Ravnborg authored
      
      
      When adding extra -I options with O=... we could
      end up in a situation where there were no parameters to -I.
      So we had a commandline that looked like this:
      
          ... -I -Wall ...
      
      This had the undesired side effect that gcc assumed "-Wall"
      was a path to look for include files so this options was
      effectively ignored.
      
      This happens only when we build the generated module.mod.c files
      as part of the final modules builds and is as such harmless
      with current kbuild.
      This bug was exposed when we rearranged the options to gcc.
      
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      5b91c33c
  2. Dec 02, 2008
  3. Nov 09, 2008
  4. Oct 29, 2008
  5. Oct 26, 2008
    • Randy Dunlap's avatar
      kernel-doc: allow more whitespace in macros · 890c78c2
      Randy Dunlap authored
      
      
      Allow macros that are annotated with kernel-doc to contain whitespace
      between the '#' and "define".  It's valid and being used, so allow it.
      
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      890c78c2
    • Al Viro's avatar
      fix allmodconfig breakage · ce97e13e
      Al Viro authored
      If you use KCONFIG_ALLCONFIG (even with empty file) you get broken
      allmodconfig/allyesconfig; CONFIG_MODULES gets turned off, with obvious
      massive fallout.
      
      Breakage had been introduced when conf_set_all_new_symbols() got used
      for allmodconfig et.al.
      
      What happens is that sym_calc_value(modules_sym) done in
      conf_read_simple() sets SYMBOL_VALID on both modules_sym and MODULES.
      When we get to conf_set_all_new_symbols(), we set sym->def[S_DEF_USER]
      on everything, but it has no effect on sym->curr for the symbols that
      already have SYMBOL_VALID - these are stuck.
      
      Solution: use sym_clear_all_valid() in there.  Note that it makes
      reevaluation of modules_sym redundant - sym_clear_all_valid() will do
      that itself.
      
      [ Fixes http://bugzilla.kernel.org/show_bug.cgi?id=11512
      
      , says Alexey ]
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ce97e13e
  6. Oct 23, 2008
  7. Oct 22, 2008
  8. Oct 20, 2008
  9. Oct 16, 2008
Loading