lkml.org 
[lkml]   [2005]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] Permanently fix kernel configuration include mess (was: Missing #include <config.h>)
    On Tue, 13 September 2005 15:50:12 +0100, Russell King wrote:
    >
    > Subject: [KBUILD] Permanently fix kernel configuration include mess.
    >
    > Include autoconf.h into every kernel compilation via the gcc
    > command line using -imacros. This ensures that we have the
    > kernel configuration included from the start, rather than
    > relying on each file having #include <linux/config.h> as
    > appropriate. History has shown that this is something which
    > is difficult to get right.
    >
    > Since we now include the kernel configuration automatically,
    > make configcheck becomes meaningless, so remove it.
    >
    > Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

    If it helps:
    Signed-off-by: Joern Engel <joern@wh.fh-wedel.de>

    > diff --git a/Makefile b/Makefile
    > --- a/Makefile
    > +++ b/Makefile
    > @@ -346,7 +346,8 @@ AFLAGS_KERNEL =
    > # Use LINUXINCLUDE when you must reference the include/ directory.
    > # Needed to be compatible with the O= option
    > LINUXINCLUDE := -Iinclude \
    > - $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include)
    > + $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include) \
    > + -imacros include/linux/autoconf.h
    >
    > CPPFLAGS := -D__KERNEL__ $(LINUXINCLUDE)
    >
    > @@ -1247,11 +1248,6 @@ tags: FORCE
    > # Scripts to check various things for consistency
    > # ---------------------------------------------------------------------------
    >
    > -configcheck:
    > - find * $(RCS_FIND_IGNORE) \
    > - -name '*.[hcS]' -type f -print | sort \
    > - | xargs $(PERL) -w scripts/checkconfig.pl
    > -
    > includecheck:
    > find * $(RCS_FIND_IGNORE) \
    > -name '*.[hcS]' -type f -print | sort \

    Jörn

    --
    Schrödinger's cat is <BLINK>not</BLINK> dead.
    -- Illiad
    -
    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/

    \
     
     \ /
      Last update: 2005-09-13 19:04    [W:4.913 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site