Skip to content

Commit

Permalink
doc: change example to existing Makefile fragment
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Acked-by: Rob Landley <rob@landley.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
  • Loading branch information
Paul Bolle authored and Michal Marek committed Apr 8, 2013
1 parent 987d0c8 commit ff4eb04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Documentation/kbuild/makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff4eb04

Please sign in to comment.