Makefile (646b1db4956ba8bf748b835b5eba211133d91c2e) | Makefile (09155120cf0ffe6f0c8aba3aa625831405b65996) |
---|---|
1VERSION = 2 2PATCHLEVEL = 6 | 1VERSION = 2 2PATCHLEVEL = 6 |
3SUBLEVEL = 35 4EXTRAVERSION = -rc3 5NAME = Sheep on Meth | 3SUBLEVEL = 33 4EXTRAVERSION = -rc6 5NAME = Man-Eating Seals of Antiquity |
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 13# Do not: --- 395 unchanged lines hidden (view full) --- 409# mixing *config targets and build targets. 410# For example 'make oldconfig all'. 411# Detect when mixed targets is specified, and make a second invocation 412# of make so .config is not included in this case either (for *config). 413 414no-dot-config-targets := clean mrproper distclean \ 415 cscope TAGS tags help %docs check% \ 416 include/linux/version.h headers_% \ | 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 13# Do not: --- 395 unchanged lines hidden (view full) --- 409# mixing *config targets and build targets. 410# For example 'make oldconfig all'. 411# Detect when mixed targets is specified, and make a second invocation 412# of make so .config is not included in this case either (for *config). 413 414no-dot-config-targets := clean mrproper distclean \ 415 cscope TAGS tags help %docs check% \ 416 include/linux/version.h headers_% \ |
417 kernelrelease kernelversion %src-pkg | 417 kernelrelease kernelversion |
418 419config-targets := 0 420mixed-targets := 0 421dot-config := 1 422 423ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) 424 ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),) 425 dot-config := 0 --- 452 unchanged lines hidden (view full) --- 878# tweaks to this spot to avoid wrong language settings when running 879# make menuconfig etc. 880# Error messages still appears in the original language 881 882PHONY += $(vmlinux-dirs) 883$(vmlinux-dirs): prepare scripts 884 $(Q)$(MAKE) $(build)=$@ 885 | 418 419config-targets := 0 420mixed-targets := 0 421dot-config := 1 422 423ifneq ($(filter $(no-dot-config-targets), $(MAKECMDGOALS)),) 424 ifeq ($(filter-out $(no-dot-config-targets), $(MAKECMDGOALS)),) 425 dot-config := 0 --- 452 unchanged lines hidden (view full) --- 878# tweaks to this spot to avoid wrong language settings when running 879# make menuconfig etc. 880# Error messages still appears in the original language 881 882PHONY += $(vmlinux-dirs) 883$(vmlinux-dirs): prepare scripts 884 $(Q)$(MAKE) $(build)=$@ 885 |
886# Build the kernel release string 887# 888# The KERNELRELEASE value built here is stored in the file 889# include/config/kernel.release, and is used when executing several 890# make targets, such as "make install" or "make modules_install." 891# 892# The eventual kernel release string consists of the following fields, 893# shown in a hierarchical format to show how smaller parts are concatenated 894# to form the larger and final value, with values coming from places like 895# the Makefile, kernel config options, make command line options and/or 896# SCM tag information. 897# 898# $(KERNELVERSION) 899# $(VERSION) eg, 2 900# $(PATCHLEVEL) eg, 6 901# $(SUBLEVEL) eg, 18 902# $(EXTRAVERSION) eg, -rc6 903# $(localver-full) 904# $(localver) 905# localversion* (files without backups, containing '~') 906# $(CONFIG_LOCALVERSION) (from kernel config setting) 907# $(LOCALVERSION) (from make command line, if provided) 908# $(localver-extra) 909# $(scm-identifier) (unique SCM tag, if one exists) 910# ./scripts/setlocalversion (only with CONFIG_LOCALVERSION_AUTO) 911# .scmversion (only with CONFIG_LOCALVERSION_AUTO) 912# + (only without CONFIG_LOCALVERSION_AUTO 913# and without LOCALVERSION= and 914# repository is at non-tagged commit) 915# 916# For kernels without CONFIG_LOCALVERSION_AUTO compiled from an SCM that has 917# been revised beyond a tagged commit, `+' is appended to the version string 918# when not overridden by using "make LOCALVERSION=". This indicates that the 919# kernel is not a vanilla release version and has been modified. 920 921pattern = ".*/localversion[^~]*" 922string = $(shell cat /dev/null \ 923 `find $(objtree) $(srctree) -maxdepth 1 -regex $(pattern) | sort -u`) 924 925localver = $(subst $(space),, $(string) \ 926 $(patsubst "%",%,$(CONFIG_LOCALVERSION))) 927 928# scripts/setlocalversion is called to create a unique identifier if the source 929# is managed by a known SCM and the repository has been revised since the last 930# tagged (release) commit. The format of the identifier is determined by the 931# SCM's implementation. 932# 933# .scmversion is used when generating rpm packages so we do not loose 934# the version information from the SCM when we do the build of the kernel 935# from the copied source 936ifeq ($(wildcard .scmversion),) 937 scm-identifier = $(shell $(CONFIG_SHELL) \ 938 $(srctree)/scripts/setlocalversion $(srctree)) 939else 940 scm-identifier = $(shell cat .scmversion 2> /dev/null) 941endif 942 943ifdef CONFIG_LOCALVERSION_AUTO 944 localver-extra = $(scm-identifier) 945else 946 ifneq ($(scm-identifier),) 947 ifeq ($(LOCALVERSION),) 948 localver-extra = + 949 endif 950 endif 951endif 952 953localver-full = $(localver)$(LOCALVERSION)$(localver-extra) 954 | |
955# Store (new) KERNELRELASE string in include/config/kernel.release | 886# Store (new) KERNELRELASE string in include/config/kernel.release |
956kernelrelease = $(KERNELVERSION)$(localver-full) | 887localversion = $(shell $(CONFIG_SHELL) \ 888 $(srctree)/scripts/setlocalversion $(srctree)) |
957include/config/kernel.release: include/config/auto.conf FORCE 958 $(Q)rm -f $@ | 889include/config/kernel.release: include/config/auto.conf FORCE 890 $(Q)rm -f $@ |
959 $(Q)echo $(kernelrelease) > $@ | 891 $(Q)echo $(KERNELVERSION)$(localversion) > $@ |
960 961 962# Things we need to do before we recursively start building the kernel 963# or the modules are listed in "prepare". 964# A multi level approach is used. prepareN is processed before prepareN-1. 965# archprepare is used in arch Makefiles and when processed asm symlink, 966# version.h and scripts_basic is processed / created. 967 --- 122 unchanged lines hidden (view full) --- 1090 1091# Build modules 1092# 1093# A module can be listed more than once in obj-m resulting in 1094# duplicate lines in modules.order files. Those are removed 1095# using awk while concatenating to the final file. 1096 1097PHONY += modules | 892 893 894# Things we need to do before we recursively start building the kernel 895# or the modules are listed in "prepare". 896# A multi level approach is used. prepareN is processed before prepareN-1. 897# archprepare is used in arch Makefiles and when processed asm symlink, 898# version.h and scripts_basic is processed / created. 899 --- 122 unchanged lines hidden (view full) --- 1022 1023# Build modules 1024# 1025# A module can be listed more than once in obj-m resulting in 1026# duplicate lines in modules.order files. Those are removed 1027# using awk while concatenating to the final file. 1028 1029PHONY += modules |
1098modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin | 1030modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) |
1099 $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order 1100 @$(kecho) ' Building modules, stage 2.'; 1101 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost 1102 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modbuild 1103 1104modules.builtin: $(vmlinux-dirs:%=%/modules.builtin) 1105 $(Q)$(AWK) '!x[$$0]++' $^ > $(objtree)/modules.builtin 1106 --- 5 unchanged lines hidden (view full) --- 1112PHONY += modules_prepare 1113modules_prepare: prepare scripts 1114 1115# Target to install modules 1116PHONY += modules_install 1117modules_install: _modinst_ _modinst_post 1118 1119PHONY += _modinst_ | 1031 $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order 1032 @$(kecho) ' Building modules, stage 2.'; 1033 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost 1034 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modbuild 1035 1036modules.builtin: $(vmlinux-dirs:%=%/modules.builtin) 1037 $(Q)$(AWK) '!x[$$0]++' $^ > $(objtree)/modules.builtin 1038 --- 5 unchanged lines hidden (view full) --- 1044PHONY += modules_prepare 1045modules_prepare: prepare scripts 1046 1047# Target to install modules 1048PHONY += modules_install 1049modules_install: _modinst_ _modinst_post 1050 1051PHONY += _modinst_ |
1120_modinst_: | 1052_modinst_: modules.builtin |
1121 @if [ -z "`$(DEPMOD) -V 2>/dev/null | grep module-init-tools`" ]; then \ 1122 echo "Warning: you may need to install module-init-tools"; \ 1123 echo "See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt";\ 1124 sleep 1; \ 1125 fi 1126 @rm -rf $(MODLIB)/kernel 1127 @rm -f $(MODLIB)/source 1128 @mkdir -p $(MODLIB)/kernel --- 94 unchanged lines hidden (view full) --- 1223 -type f -print | xargs rm -f 1224 1225 1226# Packaging of the kernel to various formats 1227# --------------------------------------------------------------------------- 1228# rpm target kept for backward compatibility 1229package-dir := $(srctree)/scripts/package 1230 | 1053 @if [ -z "`$(DEPMOD) -V 2>/dev/null | grep module-init-tools`" ]; then \ 1054 echo "Warning: you may need to install module-init-tools"; \ 1055 echo "See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt";\ 1056 sleep 1; \ 1057 fi 1058 @rm -rf $(MODLIB)/kernel 1059 @rm -f $(MODLIB)/source 1060 @mkdir -p $(MODLIB)/kernel --- 94 unchanged lines hidden (view full) --- 1155 -type f -print | xargs rm -f 1156 1157 1158# Packaging of the kernel to various formats 1159# --------------------------------------------------------------------------- 1160# rpm target kept for backward compatibility 1161package-dir := $(srctree)/scripts/package 1162 |
1231%src-pkg: FORCE 1232 $(Q)$(MAKE) $(build)=$(package-dir) $@ | |
1233%pkg: include/config/kernel.release FORCE 1234 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1235rpm: include/config/kernel.release FORCE 1236 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1237 1238 1239# Brief documentation of the typical targets used 1240# --------------------------------------------------------------------------- --- 335 unchanged lines hidden --- | 1163%pkg: include/config/kernel.release FORCE 1164 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1165rpm: include/config/kernel.release FORCE 1166 $(Q)$(MAKE) $(build)=$(package-dir) $@ 1167 1168 1169# Brief documentation of the typical targets used 1170# --------------------------------------------------------------------------- --- 335 unchanged lines hidden --- |