Makefile (b3869b17fd63bacb53ac4db4ff4ba093701e17be) | Makefile (c0a80c0c27e5e65b180a25e6c4c2f7ef9e386cd3) |
---|---|
1VERSION = 3 | 1VERSION = 3 |
2PATCHLEVEL = 19 | 2PATCHLEVEL = 18 |
3SUBLEVEL = 0 | 3SUBLEVEL = 0 |
4EXTRAVERSION = -rc6 | 4EXTRAVERSION = |
5NAME = Diseased Newt 6 7# *DOCUMENTATION* 8# To see a list of typical targets execute "make help" 9# More info can be located in ./README 10# Comments in this file are targeted only to the developer, do not 11# expect to learn how to build the kernel reading this file. 12 --- 373 unchanged lines hidden (view full) --- 386 -I$(srctree)/include/uapi \ 387 -Iinclude/generated/uapi \ 388 -include $(srctree)/include/linux/kconfig.h 389 390# Use LINUXINCLUDE when you must reference the include/ directory. 391# Needed to be compatible with the O= option 392LINUXINCLUDE := \ 393 -I$(srctree)/arch/$(hdr-arch)/include \ | 5NAME = Diseased Newt 6 7# *DOCUMENTATION* 8# To see a list of typical targets execute "make help" 9# More info can be located in ./README 10# Comments in this file are targeted only to the developer, do not 11# expect to learn how to build the kernel reading this file. 12 --- 373 unchanged lines hidden (view full) --- 386 -I$(srctree)/include/uapi \ 387 -Iinclude/generated/uapi \ 388 -include $(srctree)/include/linux/kconfig.h 389 390# Use LINUXINCLUDE when you must reference the include/ directory. 391# Needed to be compatible with the O= option 392LINUXINCLUDE := \ 393 -I$(srctree)/arch/$(hdr-arch)/include \ |
394 -Iarch/$(hdr-arch)/include/generated/uapi \ | |
395 -Iarch/$(hdr-arch)/include/generated \ 396 $(if $(KBUILD_SRC), -I$(srctree)/include) \ 397 -Iinclude \ 398 $(USERINCLUDE) 399 400KBUILD_CPPFLAGS := -D__KERNEL__ 401 402KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ --- 74 unchanged lines hidden (view full) --- 477# catch them early, and hand them over to scripts/kconfig/Makefile 478# It is allowed to specify more targets when calling make, including 479# mixing *config targets and build targets. 480# For example 'make oldconfig all'. 481# Detect when mixed targets is specified, and make a second invocation 482# of make so .config is not included in this case either (for *config). 483 484version_h := include/generated/uapi/linux/version.h | 394 -Iarch/$(hdr-arch)/include/generated \ 395 $(if $(KBUILD_SRC), -I$(srctree)/include) \ 396 -Iinclude \ 397 $(USERINCLUDE) 398 399KBUILD_CPPFLAGS := -D__KERNEL__ 400 401KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ --- 74 unchanged lines hidden (view full) --- 476# catch them early, and hand them over to scripts/kconfig/Makefile 477# It is allowed to specify more targets when calling make, including 478# mixing *config targets and build targets. 479# For example 'make oldconfig all'. 480# Detect when mixed targets is specified, and make a second invocation 481# of make so .config is not included in this case either (for *config). 482 483version_h := include/generated/uapi/linux/version.h |
485old_version_h := include/linux/version.h | |
486 487no-dot-config-targets := clean mrproper distclean \ | 484 485no-dot-config-targets := clean mrproper distclean \ |
488 cscope gtags TAGS tags help% %docs check% coccicheck \ | 486 cscope gtags TAGS tags help %docs check% coccicheck \ |
489 $(version_h) headers_% archheaders archscripts \ 490 kernelversion %src-pkg 491 492config-targets := 0 493mixed-targets := 0 494dot-config := 1 495 496ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) --- 224 unchanged lines hidden (view full) --- 721endif 722 723ifdef CONFIG_DEBUG_INFO_REDUCED 724KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \ 725 $(call cc-option,-fno-var-tracking) 726endif 727 728ifdef CONFIG_FUNCTION_TRACER | 487 $(version_h) headers_% archheaders archscripts \ 488 kernelversion %src-pkg 489 490config-targets := 0 491mixed-targets := 0 492dot-config := 1 493 494ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) --- 224 unchanged lines hidden (view full) --- 719endif 720 721ifdef CONFIG_DEBUG_INFO_REDUCED 722KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \ 723 $(call cc-option,-fno-var-tracking) 724endif 725 726ifdef CONFIG_FUNCTION_TRACER |
727ifndef CC_FLAGS_FTRACE 728CC_FLAGS_FTRACE := -pg 729endif 730export CC_FLAGS_FTRACE |
|
729ifdef CONFIG_HAVE_FENTRY 730CC_USING_FENTRY := $(call cc-option, -mfentry -DCC_USING_FENTRY) 731endif | 731ifdef CONFIG_HAVE_FENTRY 732CC_USING_FENTRY := $(call cc-option, -mfentry -DCC_USING_FENTRY) 733endif |
732KBUILD_CFLAGS += -pg $(CC_USING_FENTRY) | 734KBUILD_CFLAGS += $(CC_FLAGS_FTRACE) $(CC_USING_FENTRY) |
733KBUILD_AFLAGS += $(CC_USING_FENTRY) 734ifdef CONFIG_DYNAMIC_FTRACE 735 ifdef CONFIG_HAVE_C_RECORDMCOUNT 736 BUILD_C_RECORDMCOUNT := y 737 export BUILD_C_RECORDMCOUNT 738 endif 739endif 740endif --- 261 unchanged lines hidden (view full) --- 1002define filechk_version.h 1003 (echo \#define LINUX_VERSION_CODE $(shell \ 1004 expr $(VERSION) \* 65536 + 0$(PATCHLEVEL) \* 256 + 0$(SUBLEVEL)); \ 1005 echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) 1006endef 1007 1008$(version_h): $(srctree)/Makefile FORCE 1009 $(call filechk,version.h) | 735KBUILD_AFLAGS += $(CC_USING_FENTRY) 736ifdef CONFIG_DYNAMIC_FTRACE 737 ifdef CONFIG_HAVE_C_RECORDMCOUNT 738 BUILD_C_RECORDMCOUNT := y 739 export BUILD_C_RECORDMCOUNT 740 endif 741endif 742endif --- 261 unchanged lines hidden (view full) --- 1004define filechk_version.h 1005 (echo \#define LINUX_VERSION_CODE $(shell \ 1006 expr $(VERSION) \* 65536 + 0$(PATCHLEVEL) \* 256 + 0$(SUBLEVEL)); \ 1007 echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) 1008endef 1009 1010$(version_h): $(srctree)/Makefile FORCE 1011 $(call filechk,version.h) |
1010 $(Q)rm -f $(old_version_h) | |
1011 1012include/generated/utsrelease.h: include/config/kernel.release FORCE 1013 $(call filechk,utsrelease.h) 1014 1015PHONY += headerdep 1016headerdep: 1017 $(Q)find $(srctree)/include/ -name '*.h' | xargs --max-args 1 \ 1018 $(srctree)/scripts/headerdep.pl -I$(srctree)/include --- 15 unchanged lines hidden (view full) --- 1034 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_install 1035 1036# --------------------------------------------------------------------------- 1037# Kernel headers 1038 1039#Default location for installed headers 1040export INSTALL_HDR_PATH = $(objtree)/usr 1041 | 1012 1013include/generated/utsrelease.h: include/config/kernel.release FORCE 1014 $(call filechk,utsrelease.h) 1015 1016PHONY += headerdep 1017headerdep: 1018 $(Q)find $(srctree)/include/ -name '*.h' | xargs --max-args 1 \ 1019 $(srctree)/scripts/headerdep.pl -I$(srctree)/include --- 15 unchanged lines hidden (view full) --- 1035 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_install 1036 1037# --------------------------------------------------------------------------- 1038# Kernel headers 1039 1040#Default location for installed headers 1041export INSTALL_HDR_PATH = $(objtree)/usr 1042 |
1043hdr-inst := -rR -f $(srctree)/scripts/Makefile.headersinst obj 1044 |
|
1042# If we do an all arch process set dst to asm-$(hdr-arch) 1043hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) 1044 1045PHONY += archheaders 1046archheaders: 1047 1048PHONY += archscripts 1049archscripts: --- 121 unchanged lines hidden (view full) --- 1171 1172# Directories & files removed with 'make mrproper' 1173MRPROPER_DIRS += include/config usr/include include/generated \ 1174 arch/*/include/generated .tmp_objdiff 1175MRPROPER_FILES += .config .config.old .version .old_version $(version_h) \ 1176 Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \ 1177 signing_key.priv signing_key.x509 x509.genkey \ 1178 extra_certificates signing_key.x509.keyid \ | 1045# If we do an all arch process set dst to asm-$(hdr-arch) 1046hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) 1047 1048PHONY += archheaders 1049archheaders: 1050 1051PHONY += archscripts 1052archscripts: --- 121 unchanged lines hidden (view full) --- 1174 1175# Directories & files removed with 'make mrproper' 1176MRPROPER_DIRS += include/config usr/include include/generated \ 1177 arch/*/include/generated .tmp_objdiff 1178MRPROPER_FILES += .config .config.old .version .old_version $(version_h) \ 1179 Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \ 1180 signing_key.priv signing_key.x509 x509.genkey \ 1181 extra_certificates signing_key.x509.keyid \ |
1179 signing_key.x509.signer | 1182 signing_key.x509.signer include/linux/version.h |
1180 1181# clean - Delete most, but leave enough to build external modules 1182# 1183clean: rm-dirs := $(CLEAN_DIRS) 1184clean: rm-files := $(CLEAN_FILES) 1185clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) 1186 1187PHONY += $(clean-dirs) clean archclean vmlinuxclean --- 43 unchanged lines hidden (view full) --- 1231rpm: include/config/kernel.release FORCE 1232 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1233 1234 1235# Brief documentation of the typical targets used 1236# --------------------------------------------------------------------------- 1237 1238boards := $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*_defconfig) | 1183 1184# clean - Delete most, but leave enough to build external modules 1185# 1186clean: rm-dirs := $(CLEAN_DIRS) 1187clean: rm-files := $(CLEAN_FILES) 1188clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) 1189 1190PHONY += $(clean-dirs) clean archclean vmlinuxclean --- 43 unchanged lines hidden (view full) --- 1234rpm: include/config/kernel.release FORCE 1235 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1236 1237 1238# Brief documentation of the typical targets used 1239# --------------------------------------------------------------------------- 1240 1241boards := $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*_defconfig) |
1239boards := $(sort $(notdir $(boards))) | 1242boards := $(notdir $(boards)) |
1240board-dirs := $(dir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*/*_defconfig)) 1241board-dirs := $(sort $(notdir $(board-dirs:/=))) 1242 1243help: 1244 @echo 'Cleaning targets:' 1245 @echo ' clean - Remove most generated files but keep the config and' 1246 @echo ' enough build support to build external modules' 1247 @echo ' mrproper - Remove all generated files + config + various backup files' --- 74 unchanged lines hidden (view full) --- 1322 @echo 'Execute "make" or "make all" to build all targets marked with [*] ' 1323 @echo 'For further info see the ./README file' 1324 1325 1326help-board-dirs := $(addprefix help-,$(board-dirs)) 1327 1328help-boards: $(help-board-dirs) 1329 | 1243board-dirs := $(dir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/*/*_defconfig)) 1244board-dirs := $(sort $(notdir $(board-dirs:/=))) 1245 1246help: 1247 @echo 'Cleaning targets:' 1248 @echo ' clean - Remove most generated files but keep the config and' 1249 @echo ' enough build support to build external modules' 1250 @echo ' mrproper - Remove all generated files + config + various backup files' --- 74 unchanged lines hidden (view full) --- 1325 @echo 'Execute "make" or "make all" to build all targets marked with [*] ' 1326 @echo 'For further info see the ./README file' 1327 1328 1329help-board-dirs := $(addprefix help-,$(board-dirs)) 1330 1331help-boards: $(help-board-dirs) 1332 |
1330boards-per-dir = $(sort $(notdir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/$*/*_defconfig))) | 1333boards-per-dir = $(notdir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/$*/*_defconfig)) |
1331 1332$(help-board-dirs): help-%: 1333 @echo 'Architecture specific targets ($(SRCARCH) $*):' 1334 @$(if $(boards-per-dir), \ 1335 $(foreach b, $(boards-per-dir), \ 1336 printf " %-24s - Build for %s\\n" $*/$(b) $(subst _defconfig,,$(b));) \ 1337 echo '') 1338 --- 238 unchanged lines hidden (view full) --- 1577targets := $(wildcard $(sort $(targets))) 1578cmd_files := $(wildcard .*.cmd $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd)) 1579 1580ifneq ($(cmd_files),) 1581 $(cmd_files): ; # Do not try to update included dependency files 1582 include $(cmd_files) 1583endif 1584 | 1334 1335$(help-board-dirs): help-%: 1336 @echo 'Architecture specific targets ($(SRCARCH) $*):' 1337 @$(if $(boards-per-dir), \ 1338 $(foreach b, $(boards-per-dir), \ 1339 printf " %-24s - Build for %s\\n" $*/$(b) $(subst _defconfig,,$(b));) \ 1340 echo '') 1341 --- 238 unchanged lines hidden (view full) --- 1580targets := $(wildcard $(sort $(targets))) 1581cmd_files := $(wildcard .*.cmd $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd)) 1582 1583ifneq ($(cmd_files),) 1584 $(cmd_files): ; # Do not try to update included dependency files 1585 include $(cmd_files) 1586endif 1587 |
1588# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.clean obj=dir 1589# Usage: 1590# $(Q)$(MAKE) $(clean)=dir 1591clean := -f $(srctree)/scripts/Makefile.clean obj 1592 |
|
1585endif # skip-makefile 1586 1587PHONY += FORCE 1588FORCE: 1589 1590# Declare the contents of the .PHONY variable as phony. We keep that 1591# information in a variable so we can use it in if_changed and friends. 1592.PHONY: $(PHONY) | 1593endif # skip-makefile 1594 1595PHONY += FORCE 1596FORCE: 1597 1598# Declare the contents of the .PHONY variable as phony. We keep that 1599# information in a variable so we can use it in if_changed and friends. 1600.PHONY: $(PHONY) |