1. 03 Dec, 2008 2 commits
    • 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. 02 Dec, 2008 38 commits