aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-18 13:53:16 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-18 13:53:16 -0400
commit9b610fda0df5d0f0b0c64242e37441ad1b384aac (patch)
tree0ea14b15f2e6546f37fe18d8ac3dc83077ec0e55 /Makefile
parentb8f8c3cf0a4ac0632ec3f0e15e9dc0c29de917af (diff)
parent5b664cb235e97afbf34db9c4d77f08ebd725335e (diff)
Merge branch 'linus' into timers/nohz
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 22 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 8db70fec11a..6192922de9c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
1VERSION = 2 1VERSION = 2
2PATCHLEVEL = 6 2PATCHLEVEL = 6
3SUBLEVEL = 26 3SUBLEVEL = 26
4EXTRAVERSION = -rc4 4EXTRAVERSION =
5NAME = Funky Weasel is Jiggy wit it 5NAME = Rotary Wombat
6 6
7# *DOCUMENTATION* 7# *DOCUMENTATION*
8# To see a list of typical targets execute "make help" 8# To see a list of typical targets execute "make help"
@@ -450,7 +450,7 @@ scripts: scripts_basic include/config/auto.conf
450 450
451# Objects we will link into vmlinux / subdirs we need to visit 451# Objects we will link into vmlinux / subdirs we need to visit
452init-y := init/ 452init-y := init/
453drivers-y := drivers/ sound/ 453drivers-y := drivers/ sound/ firmware/
454net-y := net/ 454net-y := net/
455libs-y := lib/ 455libs-y := lib/
456core-y := usr/ 456core-y := usr/
@@ -507,6 +507,8 @@ else
507KBUILD_CFLAGS += -O2 507KBUILD_CFLAGS += -O2
508endif 508endif
509 509
510include $(srctree)/arch/$(SRCARCH)/Makefile
511
510ifneq (CONFIG_FRAME_WARN,0) 512ifneq (CONFIG_FRAME_WARN,0)
511KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN}) 513KBUILD_CFLAGS += $(call cc-option,-Wframe-larger-than=${CONFIG_FRAME_WARN})
512endif 514endif
@@ -515,8 +517,6 @@ endif
515# Arch Makefiles may override this setting 517# Arch Makefiles may override this setting
516KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) 518KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
517 519
518include $(srctree)/arch/$(SRCARCH)/Makefile
519
520ifdef CONFIG_FRAME_POINTER 520ifdef CONFIG_FRAME_POINTER
521KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls 521KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
522else 522else
@@ -528,6 +528,10 @@ KBUILD_CFLAGS += -g
528KBUILD_AFLAGS += -gdwarf-2 528KBUILD_AFLAGS += -gdwarf-2
529endif 529endif
530 530
531ifdef CONFIG_FTRACE
532KBUILD_CFLAGS += -pg
533endif
534
531# We trigger additional mismatches with less inlining 535# We trigger additional mismatches with less inlining
532ifdef CONFIG_DEBUG_SECTION_MISMATCH 536ifdef CONFIG_DEBUG_SECTION_MISMATCH
533KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once) 537KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
@@ -995,6 +999,16 @@ depend dep:
995 @echo '*** Warning: make $@ is unnecessary now.' 999 @echo '*** Warning: make $@ is unnecessary now.'
996 1000
997# --------------------------------------------------------------------------- 1001# ---------------------------------------------------------------------------
1002# Firmware install
1003INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware
1004export INSTALL_FW_PATH
1005
1006PHONY += firmware_install
1007firmware_install: FORCE
1008 @mkdir -p $(objtree)/firmware
1009 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_install
1010
1011# ---------------------------------------------------------------------------
998# Kernel headers 1012# Kernel headers
999INSTALL_HDR_PATH=$(objtree)/usr 1013INSTALL_HDR_PATH=$(objtree)/usr
1000export INSTALL_HDR_PATH 1014export INSTALL_HDR_PATH
@@ -1080,6 +1094,7 @@ _modinst_:
1080# boot script depmod is the master version. 1094# boot script depmod is the master version.
1081PHONY += _modinst_post 1095PHONY += _modinst_post
1082_modinst_post: _modinst_ 1096_modinst_post: _modinst_
1097 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst
1083 $(call cmd,depmod) 1098 $(call cmd,depmod)
1084 1099
1085else # CONFIG_MODULES 1100else # CONFIG_MODULES
@@ -1197,6 +1212,8 @@ help:
1197 @echo '* vmlinux - Build the bare kernel' 1212 @echo '* vmlinux - Build the bare kernel'
1198 @echo '* modules - Build all modules' 1213 @echo '* modules - Build all modules'
1199 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)' 1214 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1215 @echo ' firmware_install- Install all firmware to INSTALL_FW_PATH'
1216 @echo ' (default: $$(INSTALL_MOD_PATH)/lib/firmware)'
1200 @echo ' dir/ - Build all files in dir and below' 1217 @echo ' dir/ - Build all files in dir and below'
1201 @echo ' dir/file.[ois] - Build specified target only' 1218 @echo ' dir/file.[ois] - Build specified target only'
1202 @echo ' dir/file.ko - Build module including final link' 1219 @echo ' dir/file.ko - Build module including final link'