Re: [2.6] GUI config targets fail with "make O=..."

From: Sam Ravnborg (sam_at_ravnborg.org)
Date: 11/01/03

  • Next message: Sam Ravnborg: "Re: Post-halloween doc updates."
    Date:	Sat, 1 Nov 2003 08:31:29 +0100
    To: Bryan O'Sullivan <bos@serpentine.com>
    
    

    On Fri, Oct 31, 2003 at 04:14:50PM -0800, Bryan O'Sullivan wrote:
    > Hi, Sam -
    >
    > There's something in the 2.6 kbuild infrastructure that does some rather
    > wrong things for the gconfig and xconfig targets when object files
    > should go to a separate directory.

    Hi Bryan - known problem reported some weeks ago, but thanks
    for the report anyhow.

    Patch is present in my kbuild repository (linux-sam.bkbits.net/kbuild).
    Linus has not applied them, since this is not critical fixes. I will
    try to see when 2.6.1 comes out to get them applied.

    Until then the relevant patch is attached here.

            Sam

    # This is a BitKeeper generated patch for the following project:
    # Project Name: Linux kernel tree
    # This patch format is intended for GNU patch command version 2.5 or higher.
    # This patch includes the following deltas:
    # ChangeSet 1.1296.61.1 -> 1.1296.61.2
    # scripts/Makefile.lib 1.22 -> 1.23
    # Makefile 1.435 -> 1.436
    #
    # The following is the BitKeeper ChangeSet Log
    # 03/10/12 sam@mars.ravnborg.org 1.1296.61.2
    # kbuild: Fix make O=../build xconfig
    #
    # Compilation of qconf required -I path to qt. kbuild invalidated the
    # path to qt by prefixing it with $(srctree). No longer prefix absolute paths.
    # Also do not duplicate CPPFLAGS. Previously it was appended twice to CFLAGS
    # --------------------------------------------
    #
    diff -Nru a/Makefile b/Makefile
    --- a/Makefile Sat Oct 18 09:48:02 2003
    +++ b/Makefile Sat Oct 18 09:48:02 2003
    @@ -404,10 +404,6 @@
     
     include $(srctree)/arch/$(ARCH)/Makefile
     
    -# Let architecture Makefiles change CPPFLAGS if needed
    -CFLAGS := $(CPPFLAGS) $(CFLAGS)
    -AFLAGS := $(CPPFLAGS) $(AFLAGS)
    -
     core-y += kernel/ mm/ fs/ ipc/ security/ crypto/
     
     SUBDIRS += $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
    diff -Nru a/scripts/Makefile.lib b/scripts/Makefile.lib
    --- a/scripts/Makefile.lib Sat Oct 18 09:48:02 2003
    +++ b/scripts/Makefile.lib Sat Oct 18 09:48:02 2003
    @@ -154,7 +154,8 @@
     __hostcxx_flags = $(_hostcxx_flags)
     else
     flags = $(foreach o,$($(1)),\
    - $(if $(filter -I%,$(o)),$(patsubst -I%,-I$(srctree)/%,$(o)),$(o)))
    + $(if $(filter -I%,$(filter-out -I/%,$(o))), \
    + $(patsubst -I%,-I$(srctree)/%,$(o)),$(o)))
     
     # -I$(obj) locate generated .h files
     # -I$(srctree)/$(src) locate .h files in srctree, from generated .c files
    @@ -162,7 +163,7 @@
     __c_flags = -I$(obj) -I$(srctree)/$(src) $(call flags,_c_flags)
     __a_flags = $(call flags,_a_flags)
     __hostc_flags = -I$(obj) $(call flags,_hostc_flags)
    -__hostcxx_flags = $(call flags,_hostcxx_flags)
    +__hostcxx_flags = -I$(obj) $(call flags,_hostcxx_flags)
     endif
     
     c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Sam Ravnborg: "Re: Post-halloween doc updates."

    Relevant Pages

    • [BK] kbuild updates
      ... Restructure build of vmlinux in top-level Makefile ... Updated kbuild support files so they build on cygwin & Solaris ... Move localversion config option to top of menu ... um patch will be submitted by the UML folks. ...
      (Linux-Kernel)
    • [BK PATCHES] kbuild updates
      ... Please pull latest kbuild patches. ... I used to be be able to cross compile for i386 on my x86_64 machine, ... Following patch makes cross compile work with: ... Compiling an allyesconfig kernel straight with a gcc 4.0 snapshot ...
      (Linux-Kernel)
    • [PATCH 002/002] scripts/Makefile.modpost: New Kbuild variable EXTRA_SYMBOLS
      ... This patch adds a new (Kbuild) Makefile variable EXTRA_SYMBOLS. ... modpost.c, modpost loads these files during initialisation of its symbol ... an external module uses exported symbols from another ...
      (Linux-Kernel)
    • Re: build system: no module target ending with slash?
      ... playing with iwlwifi I try to patch it into the kernel and to build ... the only target the object file is not built. ... I have applied your patch and tried it out. ... in mac80211/Makefile and kbuild is happy again. ...
      (Linux-Kernel)
    • Re: kbuild/all archs: Sanitize creating offsets.h
      ... Did you apply the patch that enabled kbuild files to be named Kbuild? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)