aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2008-07-25 10:40:14 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-07-25 10:40:14 -0400
commitff877ea80efa2015b6263766f78ee42c2a1b32f9 (patch)
tree85205005c611ab774702148558321c6fb92f1ccd /Makefile
parent30821fee4f0cb3e6d241d9f7ddc37742212e3eb7 (diff)
parentd37e6bf68fc1eb34a4ad21d9ae8890ed37ea80e7 (diff)
Merge branch 'linux-next' of git://git.infradead.org/~dedekind/ubi-2.6
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 23 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6315424a00b9..4bcd1cf90cb1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
1VERSION = 2 1VERSION = 2
2PATCHLEVEL = 6 2PATCHLEVEL = 6
3SUBLEVEL = 26 3SUBLEVEL = 26
4EXTRAVERSION = -rc9 4EXTRAVERSION =
5NAME = Rotary Wombat 5NAME = Rotary Wombat
6 6
7# *DOCUMENTATION* 7# *DOCUMENTATION*
@@ -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
@@ -1133,7 +1148,8 @@ clean: archclean $(clean-dirs)
1133 @find . $(RCS_FIND_IGNORE) \ 1148 @find . $(RCS_FIND_IGNORE) \
1134 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ 1149 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
1135 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ 1150 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
1136 -o -name '*.symtypes' -o -name 'modules.order' \) \ 1151 -o -name '*.symtypes' -o -name 'modules.order' \
1152 -o -name 'Module.markers' \) \
1137 -type f -print | xargs rm -f 1153 -type f -print | xargs rm -f
1138 1154
1139# mrproper - Delete all generated files, including .config 1155# mrproper - Delete all generated files, including .config
@@ -1197,6 +1213,8 @@ help:
1197 @echo '* vmlinux - Build the bare kernel' 1213 @echo '* vmlinux - Build the bare kernel'
1198 @echo '* modules - Build all modules' 1214 @echo '* modules - Build all modules'
1199 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)' 1215 @echo ' modules_install - Install all modules to INSTALL_MOD_PATH (default: /)'
1216 @echo ' firmware_install- Install all firmware to INSTALL_FW_PATH'
1217 @echo ' (default: $$(INSTALL_MOD_PATH)/lib/firmware)'
1200 @echo ' dir/ - Build all files in dir and below' 1218 @echo ' dir/ - Build all files in dir and below'
1201 @echo ' dir/file.[ois] - Build specified target only' 1219 @echo ' dir/file.[ois] - Build specified target only'
1202 @echo ' dir/file.ko - Build module including final link' 1220 @echo ' dir/file.ko - Build module including final link'