Commit ff4eb04c authored by Paul Bolle's avatar Paul Bolle Committed by Michal Marek

doc: change example to existing Makefile fragment

Signed-off-by: default avatarPaul Bolle <pebolle@tiscali.nl>
Acked-by: default avatarRob Landley <rob@landley.net>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent 987d0c8e
...@@ -921,8 +921,9 @@ When kbuild executes, the following steps are followed (roughly): ...@@ -921,8 +921,9 @@ When kbuild executes, the following steps are followed (roughly):
Often, the KBUILD_CFLAGS variable depends on the configuration. Often, the KBUILD_CFLAGS variable depends on the configuration.
Example: Example:
#arch/x86/Makefile #arch/x86/boot/compressed/Makefile
cflags-$(CONFIG_M386) += -march=i386 cflags-$(CONFIG_X86_32) := -march=i386
cflags-$(CONFIG_X86_64) := -mcmodel=small
KBUILD_CFLAGS += $(cflags-y) KBUILD_CFLAGS += $(cflags-y)
Many arch Makefiles dynamically run the target C compiler to Many arch Makefiles dynamically run the target C compiler to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment