doc: change example to existing Makefile fragment
authorPaul Bolle <pebolle@tiscali.nl>
Mon, 8 Apr 2013 10:51:25 +0000 (12:51 +0200)
committerMichal Marek <mmarek@suse.cz>
Mon, 8 Apr 2013 11:00:29 +0000 (13:00 +0200)
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Acked-by: Rob Landley <rob@landley.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Documentation/kbuild/makefiles.txt

index 5198b742fde1608330b799015573ecf97277531e..020bb67586efb62715c94bb21faf94ead3331f87 100644 (file)
@@ -921,8 +921,9 @@ When kbuild executes, the following steps are followed (roughly):
        Often, the KBUILD_CFLAGS variable depends on the configuration.
 
        Example:
-               #arch/x86/Makefile
-               cflags-$(CONFIG_M386) += -march=i386
+               #arch/x86/boot/compressed/Makefile
+               cflags-$(CONFIG_X86_32) := -march=i386
+               cflags-$(CONFIG_X86_64) := -mcmodel=small
                KBUILD_CFLAGS += $(cflags-y)
 
        Many arch Makefiles dynamically run the target C compiler to