Makefile (810a4855513b9cb1a191301eb5e4e28b276cc318) | Makefile (ffee0de411fd4f74f3b788892eeb075abbf26c52) |
---|---|
1VERSION = 3 2PATCHLEVEL = 7 3SUBLEVEL = 0 4EXTRAVERSION = 5NAME = Terrified Chipmunk 6 7# *DOCUMENTATION* 8# To see a list of typical targets execute "make help" --- 110 unchanged lines hidden (view full) --- 119saved-output := $(KBUILD_OUTPUT) 120KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd) 121$(if $(KBUILD_OUTPUT),, \ 122 $(error output directory "$(saved-output)" does not exist)) 123 124PHONY += $(MAKECMDGOALS) sub-make 125 126$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make | 1VERSION = 3 2PATCHLEVEL = 7 3SUBLEVEL = 0 4EXTRAVERSION = 5NAME = Terrified Chipmunk 6 7# *DOCUMENTATION* 8# To see a list of typical targets execute "make help" --- 110 unchanged lines hidden (view full) --- 119saved-output := $(KBUILD_OUTPUT) 120KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd) 121$(if $(KBUILD_OUTPUT),, \ 122 $(error output directory "$(saved-output)" does not exist)) 123 124PHONY += $(MAKECMDGOALS) sub-make 125 126$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make |
127 @: | 127 $(Q)@: |
128 129sub-make: FORCE 130 $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ 131 KBUILD_SRC=$(CURDIR) \ 132 KBUILD_EXTMOD="$(KBUILD_EXTMOD)" -f $(CURDIR)/Makefile \ 133 $(filter-out _all sub-make,$(MAKECMDGOALS)) 134 135# Leave processing to above invocation of make --- 24 unchanged lines hidden (view full) --- 160 161 162# SUBARCH tells the usermode build what the underlying arch is. That is set 163# first, and if a usermode build is happening, the "ARCH=um" on the command 164# line overrides the setting of ARCH below. If a native build is happening, 165# then ARCH is assigned, getting whatever value it gets normally, and 166# SUBARCH is subsequently ignored. 167 | 128 129sub-make: FORCE 130 $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \ 131 KBUILD_SRC=$(CURDIR) \ 132 KBUILD_EXTMOD="$(KBUILD_EXTMOD)" -f $(CURDIR)/Makefile \ 133 $(filter-out _all sub-make,$(MAKECMDGOALS)) 134 135# Leave processing to above invocation of make --- 24 unchanged lines hidden (view full) --- 160 161 162# SUBARCH tells the usermode build what the underlying arch is. That is set 163# first, and if a usermode build is happening, the "ARCH=um" on the command 164# line overrides the setting of ARCH below. If a native build is happening, 165# then ARCH is assigned, getting whatever value it gets normally, and 166# SUBARCH is subsequently ignored. 167 |
168SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ | 168SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \ 169 -e s/sun4u/sparc64/ \ |
169 -e s/arm.*/arm/ -e s/sa110/arm/ \ 170 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 171 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 172 -e s/sh[234].*/sh/ ) 173 174# Cross compiling and selecting different set of gcc/bin-utils 175# --------------------------------------------------------------------------- 176# --- 799 unchanged lines hidden (view full) --- 976# This depmod is only for convenience to give the initial 977# boot a modules.dep even before / is mounted read-write. However the 978# boot script depmod is the master version. 979PHONY += _modinst_post 980_modinst_post: _modinst_ 981 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst 982 $(call cmd,depmod) 983 | 170 -e s/arm.*/arm/ -e s/sa110/arm/ \ 171 -e s/s390x/s390/ -e s/parisc64/parisc/ \ 172 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \ 173 -e s/sh[234].*/sh/ ) 174 175# Cross compiling and selecting different set of gcc/bin-utils 176# --------------------------------------------------------------------------- 177# --- 799 unchanged lines hidden (view full) --- 977# This depmod is only for convenience to give the initial 978# boot a modules.dep even before / is mounted read-write. However the 979# boot script depmod is the master version. 980PHONY += _modinst_post 981_modinst_post: _modinst_ 982 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst 983 $(call cmd,depmod) 984 |
984ifeq ($(CONFIG_MODULE_SIG), y) 985PHONY += modules_sign 986modules_sign: 987 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modsign 988endif 989 | |
990else # CONFIG_MODULES 991 992# Modules not configured 993# --------------------------------------------------------------------------- 994 995modules modules_install: FORCE 996 @echo >&2 997 @echo >&2 "The present kernel configuration has modules disabled." --- 24 unchanged lines hidden (view full) --- 1022 signing_key.x509.signer 1023 1024# clean - Delete most, but leave enough to build external modules 1025# 1026clean: rm-dirs := $(CLEAN_DIRS) 1027clean: rm-files := $(CLEAN_FILES) 1028clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) 1029 | 985else # CONFIG_MODULES 986 987# Modules not configured 988# --------------------------------------------------------------------------- 989 990modules modules_install: FORCE 991 @echo >&2 992 @echo >&2 "The present kernel configuration has modules disabled." --- 24 unchanged lines hidden (view full) --- 1017 signing_key.x509.signer 1018 1019# clean - Delete most, but leave enough to build external modules 1020# 1021clean: rm-dirs := $(CLEAN_DIRS) 1022clean: rm-files := $(CLEAN_FILES) 1023clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation samples) 1024 |
1030PHONY += $(clean-dirs) clean archclean vmlinuxclean | 1025PHONY += $(clean-dirs) clean archclean |
1031$(clean-dirs): 1032 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) 1033 | 1026$(clean-dirs): 1027 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) 1028 |
1034vmlinuxclean: 1035 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean | 1029clean: archclean |
1036 | 1030 |
1037clean: archclean vmlinuxclean 1038 | |
1039# mrproper - Delete all generated files, including .config 1040# 1041mrproper: rm-dirs := $(wildcard $(MRPROPER_DIRS)) 1042mrproper: rm-files := $(wildcard $(MRPROPER_FILES)) 1043mrproper-dirs := $(addprefix _mrproper_,Documentation/DocBook scripts) 1044 1045PHONY += $(mrproper-dirs) mrproper archmrproper 1046$(mrproper-dirs): --- 209 unchanged lines hidden (view full) --- 1256 1257# Dummies... 1258PHONY += prepare scripts 1259prepare: ; 1260scripts: ; 1261endif # KBUILD_EXTMOD 1262 1263clean: $(clean-dirs) | 1031# mrproper - Delete all generated files, including .config 1032# 1033mrproper: rm-dirs := $(wildcard $(MRPROPER_DIRS)) 1034mrproper: rm-files := $(wildcard $(MRPROPER_FILES)) 1035mrproper-dirs := $(addprefix _mrproper_,Documentation/DocBook scripts) 1036 1037PHONY += $(mrproper-dirs) mrproper archmrproper 1038$(mrproper-dirs): --- 209 unchanged lines hidden (view full) --- 1248 1249# Dummies... 1250PHONY += prepare scripts 1251prepare: ; 1252scripts: ; 1253endif # KBUILD_EXTMOD 1254 1255clean: $(clean-dirs) |
1256 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean |
|
1264 $(call cmd,rmdirs) 1265 $(call cmd,rmfiles) 1266 @find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \ 1267 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ 1268 -o -name '*.ko.*' \ 1269 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ 1270 -o -name '*.symtypes' -o -name 'modules.order' \ 1271 -o -name modules.builtin -o -name '.tmp_*.o.*' \ --- 158 unchanged lines hidden --- | 1257 $(call cmd,rmdirs) 1258 $(call cmd,rmfiles) 1259 @find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \ 1260 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ 1261 -o -name '*.ko.*' \ 1262 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ 1263 -o -name '*.symtypes' -o -name 'modules.order' \ 1264 -o -name modules.builtin -o -name '.tmp_*.o.*' \ --- 158 unchanged lines hidden --- |