1. 16 10月, 2007 3 次提交
    • S
      kbuild: introduce ccflags-y, asflags-y and ldflags-y · f77bf014
      Sam Ravnborg 提交于
      Introduce ccflags-y, asflags-y and ldflags-y so we soon can
      deprecate use of EXTRA_CFLAGS, EXTRA_AFLAGS and EXTRA_LDFLAGS.
      This patch does not touch any in-tree users - thats next round.
      Lets get this committed first and then fix the users of the
      soon to be deprecated variants next.
      
      The rationale behind this change is to introduce support for
      makefile fragments like:
      
      ccflags-$(CONFIG_WHATEVER_DEBUG) := -DDEBUG
      
      As a replacement for the uglier:
      ifeq ($(CONFIG_WHATEVER_DEBUG),y)
              EXTRA_CFLAGS := -DDEBUG
      endif
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      f77bf014
    • S
      kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP · 06c5040c
      Sam Ravnborg 提交于
      The variable CPPFLAGS is a wellknown variable and the usage by
      kbuild may result in unexpected behaviour.
      
      This patch replace use of CPPFLAGS with KBUILD_CPPFLAGS all over the
      tree and enabling one to use:
      make CPPFLAGS=...
      to specify additional CPP commandline options.
      
      Patch was tested on following architectures:
      alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      06c5040c
    • S
      kbuild: enable 'make AFLAGS=...' to add additional options to AS · 222d394d
      Sam Ravnborg 提交于
      The variable AFLAGS is a wellknown variable and the usage by
      kbuild may result in unexpected behaviour.
      On top of that several people over time has asked for a way to
      pass in additional flags to gcc.
      
      This patch replace use of AFLAGS with KBUILD_AFLAGS all over
      the tree.
      
      Patch was tested on following architectures:
      alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      222d394d
  2. 15 10月, 2007 2 次提交
    • S
      kbuild: check for wrong use of CFLAGS · 0c53c8e6
      Sam Ravnborg 提交于
      External modules have in a few cases modifed gcc option
      by modifying CFLAGS. This has never been documented and
      was a bad practice.
      With the check to use KBUILD_CFLAGS it will no longer work
      so we better error out and tell what was wrong as a service
      to the external module users.
      
      This check can be overruled if
      KBUILD_NOPEDANTIC is set to something.
      Addid this possibility may allow older external
      module to build without any code modifications but potentially
      only loosing some un-important gcc options.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      0c53c8e6
    • S
      kbuild: enable 'make CFLAGS=...' to add additional options to CC · a0f97e06
      Sam Ravnborg 提交于
      The variable CFLAGS is a wellknown variable and the usage by
      kbuild may result in unexpected behaviour.
      On top of that several people over time has asked for a way to
      pass in additional flags to gcc.
      
      This patch replace use of CFLAGS with KBUILD_CFLAGS all over the
      tree and enabling one to use:
      make CFLAGS=...
      to specify additional gcc commandline options.
      
      One usecase is when trying to find gcc bugs but other
      use cases has been requested too.
      
      Patch was tested on following architectures:
      alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k
      
      Test was simple to do a defconfig build, apply the patch and check
      that nothing got rebuild.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      a0f97e06
  3. 13 10月, 2007 24 次提交
  4. 11 10月, 2007 5 次提交
  5. 24 9月, 2007 1 次提交
  6. 01 9月, 2007 1 次提交
  7. 12 8月, 2007 1 次提交
    • A
      update checkpatch.pl to version 0.09 · 22f2a2ef
      Andy Whitcroft 提交于
      This version brings a number of new checks, and a number of bug
      fixes.  Of note:
      
        - checks for spacing on round and square bracket combinations
        - loosening of the single statement brace checks, to allow
          them when they contain comments or where other blocks in a
          compound statement have them.
        - parks the multple declaration support
        - allows architecture defines in architecture specific headers
      
      Andy Whitcroft (21):
            Version: 0.09
            loosen single statement brace checks
            fix up multiple declaration to avoid function arguments
            add some function space parenthesis check exceptions
            handle EXPORT_'s with parentheses in their names
            clean up some warnings in multi-line macro bracketing support
            park the multiple declaration checks
            make block brace checks count comments as a statement
            __volatile__ and __extension__ are not functions
            allow architecture specific defined within architecture includes
            check spacing on square brackets
            check spacing on parentheses
            ensure we apply checks to the part before start comment
            check #ifdef conditional spacing
            handle __init_refok and __must_check
            add noinline to inline checks
            prevent email addresses from tripping spacing checks
            handle typed initialiser spacing
            handle line contination as end of line
            add bool to the type matcher
            refine EXPORT_SYMBOL checks to handle pointers
      Signed-off-by: NAndy Whitcroft <apw@shadowen.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      22f2a2ef
  8. 01 8月, 2007 1 次提交
  9. 26 7月, 2007 2 次提交
    • S
      kbuild: fix modpost warnings for xtensa · cb7e51d8
      Sam Ravnborg 提交于
      The Xtensa architecture places literal pools in sections separate
      from the instructions. The corresponsing text sections, therefore,
      reference the .literal section, and we have to suppress those
      warnings.
      
      The naming convention defines the name for a literal
      section as .SECTION.literal, unless .SECTION is .text. In that case
      the name is only .literal. Using strncmp() instead of strcmp()
      to compare the from-section with .SECTION.init.refok in pattern 0
      should not cause any regressions for other architectures.
      
      We also need to suppress warnings for two informational
      sections (.xt.lit and .xt.prop) used by the Xtensa architecture.
      Signed-off-by: NChris Zankel <chris@zankel.net>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      cb7e51d8
    • S
      kbuild: be more foregiving on init section naming · 83cda2bb
      Sam Ravnborg 提交于
      In the whitelist function of modpost now use the same
      check to identify init_section as in other places of modpost.
      This has the effect that we now recognize sections named
      .init.text.19 as init sections and we no longer warn
      when we see these.
      
      At the same time make surrounding code readable by dropping
      use of temporary flags.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      83cda2bb