outpu2t

download outpu2t

of 32

Transcript of outpu2t

  • 8/12/2019 outpu2t

    1/32

    cv

    1 VERSION = 32 PATCHLEVEL = 133 SUBLEVEL = 34 EXTRAVERSION = -tresor0.5

    5 NAME = One Giant Leap for Frogkind67 # *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 not11 # expect to learn how to build the kernel reading this file.1213 # Do not:14 # o use make's built-in rules and variables15 # (this increases performance and avoids hard-to-debug behaviour);16 # o print "Entering directory ...";17 MAKEFLAGS += -rR --no-print-directory

    1819 # Avoid funny character set dependencies20 unexport LC_ALL21 LC_COLLATE=C22 LC_NUMERIC=C23 export LC_COLLATE LC_NUMERIC2425 # Avoid interference with shell env settings26 unexport GREP_OPTIONS2728 # We are using a recursive build, so we need to do a little thinking29 # to get the ordering right.30 #

    31 # Most importantly: sub-Makefiles should only ever modify files in32 # their own directory. If in some directory we have a dependency on33 # a file in another dir (which doesn't happen often, but it's often34 # unavoidable when linking the built-in.o targets which finally35 # turn into vmlinux), we will call a sub make in that other dir, and36 # after that we are sure that everything which is in that other dir37 # is now up to date.38 #39 # The only cases where we need to modify files which have global40 # effects are thus separated out and done before the recursive41 # descending is started. They are now explicitly listed as the42 # prepare rule.43

    44 # To put more focus on warnings, be less verbose as default45 # Use 'make V=1' to see the full commands4647 ifeq ("$(origin V)", "command line")48 KBUILD_VERBOSE = $(V)

    Page 1

  • 8/12/2019 outpu2t

    2/32

  • 8/12/2019 outpu2t

    3/32

    cv

    9798 # KBUILD_SRC is set on invocation of make in OBJ directory99 # KBUILD_SRC is not intended to be used by the regular user (for now)

    100 ifeq ($(KBUILD_SRC),)

    101102 # OK, Make called in directory where kernel src resides103 # Do we want to locate output files in a separate directory?104 ifeq ("$(origin O)", "command line")105 KBUILD_OUTPUT := $(O)106 endif107108 ifeq ("$(origin W)", "command line")109 export KBUILD_ENABLE_EXTRA_GCC_CHECKS := $(W)110 endif111112 # That's our default target when none is given on the command line113 PHONY := _all

    114 _all:115116 # Cancel implicit rules on top Makefile117 $(CURDIR)/Makefile Makefile: ;118119 ifneq ($(KBUILD_OUTPUT),)120 # Invoke a second make in the output directory, passing relevant variables121 # check that the output directory actually exists122 saved-output := $(KBUILD_OUTPUT)123 KBUILD_OUTPUT := $(shell cd $(KBUILD_OUTPUT) && /bin/pwd)124 $(if $(KBUILD_OUTPUT),, \125 $(error output directory "$(saved-output)" does not exist))126

    127 PHONY += $(MAKECMDGOALS) sub-make128129 $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-

    make130 @:131132 sub-make: FORCE133 $(if $(KBUILD_VERBOSE:1=),@)$(MAKE) -C $(KBUILD_OUTPUT) \134 KBUILD_SRC=$(CURDIR) \135 KBUILD_EXTMOD="$(KBUILD_EXTMOD)" -f $(CURDIR)/Makefile \136 $(filter-out _all sub-make,$(MAKECMDGOALS))137138 # Leave processing to above invocation of make

    139 skip-makefile := 1140 endif # ifneq ($(KBUILD_OUTPUT),)141 endif # ifeq ($(KBUILD_SRC),)142143 # We process the rest of the Makefile if this is the final invocation of

    Page 3

  • 8/12/2019 outpu2t

    4/32

    cv

    make144 ifeq ($(skip-makefile),)145146 # If building an external module we do not care about the all: rule

    147 # but instead _all depend on modules148 PHONY += all149 ifeq ($(KBUILD_EXTMOD),)150 _all: all151 else152 _all: modules153 endif154155 srctree := $(if $(KBUILD_SRC),$(KBUILD_SRC),$(CURDIR))156 objtree := $(CURDIR)157 src := $(srctree)158 obj := $(objtree)159

    160 VPATH := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))161162 export srctree objtree VPATH163164165 # SUBARCH tells the usermode build what the underlying arch is. That is set166 # first, and if a usermode build is happening, the "ARCH=um" on the command167 # line overrides the setting of ARCH below. If a native build is happening,168 # then ARCH is assigned, getting whatever value it gets normally, and169 # SUBARCH is subsequently ignored.170171 SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \172 -e s/sun4u/sparc64/ \

    173 -e s/arm.*/arm/ -e s/sa110/arm/ \174 -e s/s390x/s390/ -e s/parisc64/parisc/ \175 -e s/ppc.*/powerpc/ -e s/mips.*/mips/ \176 -e s/sh[234].*/sh/ -e s/aarch64.*/arm64/ )177178 # Cross compiling and selecting different set of gcc/bin-utils179 #

    ---------------------------------------------------------------------------180 #181 # When performing cross compilation for other architectures ARCH shall be

    set182 # to the target architecture. (See arch/* for the possibilities).183 # ARCH can be set during invocation of make:

    184 # make ARCH=ia64185 # Another way is to have ARCH set in the environment.186 # The default ARCH is the host where make is executed.187188 # CROSS_COMPILE specify the prefix used for all executables used

    Page 4

  • 8/12/2019 outpu2t

    5/32

    cv

    189 # during compilation. Only gcc and related bin-utils executables190 # are prefixed with $(CROSS_COMPILE).191 # CROSS_COMPILE can be set on the command line192 # make CROSS_COMPILE=ia64-linux-

    193 # Alternatively CROSS_COMPILE can be set in the environment.194 # A third alternative is to store a setting in .config so that plain195 # "make" in the configured kernel build directory always uses that.196 # Default value for CROSS_COMPILE is not to prefix executables197 # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile198 ARCH ?= $(SUBARCH)199 CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)200201 # Architecture as present in compile.h202 UTS_MACHINE := $(ARCH)203 SRCARCH := $(ARCH)204205 # Additional ARCH settings for x86

    206 ifeq ($(ARCH),i386)207 SRCARCH := x86208 endif209 ifeq ($(ARCH),x86_64)210 SRCARCH := x86211 endif212213 # Additional ARCH settings for sparc214 ifeq ($(ARCH),sparc32)215 SRCARCH := sparc216 endif217 ifeq ($(ARCH),sparc64)218 SRCARCH := sparc

    219 endif220221 # Additional ARCH settings for sh222 ifeq ($(ARCH),sh64)223 SRCARCH := sh224 endif225226 # Additional ARCH settings for tile227 ifeq ($(ARCH),tilepro)228 SRCARCH := tile229 endif230 ifeq ($(ARCH),tilegx)231 SRCARCH := tile

    232 endif233234 # Where to locate arch specific headers235 hdr-arch := $(SRCARCH)236

    Page 5

  • 8/12/2019 outpu2t

    6/32

    cv

    237 KCONFIG_CONFIG ?= .config238 export KCONFIG_CONFIG239240 # SHELL used by kbuild

    241 CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \242 else if [ -x /bin/bash ]; then echo /bin/bash; \243 else echo sh; fi ; fi)244245 HOSTCC = gcc246 HOSTCXX = g++247 HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-

    frame-pointer248 HOSTCXXFLAGS = -O2249250 # Decide whether to build built-in, modular, or both.251 # Normally, just do built-in.252

    253 KBUILD_MODULES :=254 KBUILD_BUILTIN := 1255256 # If we have only "make modules", don't compile built-in objects.257 # When we're building modules with modversions, we need to consider258 # the built-in objects during the descend as well, in order to259 # make sure the checksums are up to date before we record them.260261 ifeq ($(MAKECMDGOALS),modules)262 KBUILD_BUILTIN := $(if $(CONFIG_MODVERSIONS),1)263 endif264265 # If we have "make modules", compile modules

    266 # in addition to whatever we do anyway.267 # Just "make" or "make all" shall build modules as well268269 ifneq ($(filter all _all modules,$(MAKECMDGOALS)),)270 KBUILD_MODULES := 1271 endif272273 ifeq ($(MAKECMDGOALS),)274 KBUILD_MODULES := 1275 endif276277 export KBUILD_MODULES KBUILD_BUILTIN278 export KBUILD_CHECKSRC KBUILD_SRC KBUILD_EXTMOD

    279280 # Beautify output281 #

    ---------------------------------------------------------------------------282 #

    Page 6

  • 8/12/2019 outpu2t

    7/32

    cv

    283 # Normally, we echo the whole command before executing it. By making284 # that echo $($(quiet)$(cmd)), we now have the possibility to set285 # $(quiet) to choose other forms of output instead, e.g.286 #

    287 # quiet_cmd_cc_o_c = Compiling $(RELDIR)/$@288 # cmd_cc_o_c = $(CC) $(c_flags) -c -o $@ $

    $(objtree)/modules.order971 @$(kecho) ' Building modules, stage 2.';

    972 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost973 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modbuild

    974975 modules.builtin: $(vmlinux-dirs:%=%/modules.builtin)

    Page 21

  • 8/12/2019 outpu2t

    22/32

    cv

    976 $(Q)$(AWK) '!x[$$0]++' $^ > $(objtree)/modules.builtin977978 %/modules.builtin: include/config/auto.conf979 $(Q)$(MAKE) $(modbuiltin)=$*

    980981982 # Target to prepare building external modules983 PHONY += modules_prepare984 modules_prepare: prepare scripts985986 # Target to install modules987 PHONY += modules_install988 modules_install: _modinst_ _modinst_post989990 PHONY += _modinst_ 991 _modinst_:992 @rm -rf $(MODLIB)/kernel

    993 @rm -f $(MODLIB)/source994 @mkdir -p $(MODLIB)/kernel995 @ln -s $(srctree) $(MODLIB)/source996 @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \997 rm -f $(MODLIB)/build ; \998 ln -s $(objtree) $(MODLIB)/build ; \999 fi

    1000 @cp -f $(objtree)/modules.order $(MODLIB)/1001 @cp -f $(objtree)/modules.builtin $(MODLIB)/1002 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst10031004 # This depmod is only for convenience to give the initial1005 # boot a modules.dep even before / is mounted read-write. However the

    1006 # boot script depmod is the master version.1007 PHONY += _modinst_post1008 _modinst_post: _modinst_ 1009 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware

    __fw_modinst1010 $(call cmd,depmod)10111012 ifeq ($(CONFIG_MODULE_SIG), y)1013 PHONY += modules_sign1014 modules_sign:1015 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modsign1016 endif1017

    1018 else # CONFIG_MODULES10191020 # Modules not configured1021 #

    ---------------------------------------------------------------------------

    Page 22

  • 8/12/2019 outpu2t

    23/32

    cv

    10221023 modules modules_install: FORCE1024 @echo >&21025 @echo >&2 "The present kernel configuration has modules disabled."

    1026 @echo >&2 "Type 'make config' and enable loadable module support."1027 @echo >&2 "Then build a kernel with module support enabled."1028 @echo >&21029 @exit 110301031 endif # CONFIG_MODULES10321033 ###1034 # Cleaning is done on three levels.1035 # make clean Delete most generated files1036 # Leave enough to build external modules1037 # make mrproper Delete the current configuration, and all generated files1038 # make distclean Remove editor backup files, patch leftover files and the

    like10391040 # Directories & files removed with 'make clean'1041 CLEAN_DIRS += $(MODVERDIR)10421043 # Directories & files removed with 'make mrproper'1044 MRPROPER_DIRS += include/config usr/include include/generated \1045 arch/*/include/generated1046 MRPROPER_FILES += .config .config.old .version .old_version $(version_h) \1047 Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \1048 signing_key.priv signing_key.x509 x509.genkey \1049 extra_certificates signing_key.x509.keyid \1050 signing_key.x509.signer

    10511052 # clean - Delete most, but leave enough to build external modules1053 #1054 clean: rm-dirs := $(CLEAN_DIRS)1055 clean: rm-files := $(CLEAN_FILES)1056 clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation

    samples)10571058 PHONY += $(clean-dirs) clean archclean vmlinuxclean1059 $(clean-dirs):1060 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)10611062 vmlinuxclean:

    1063 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/link-vmlinux.sh clean10641065 clean: archclean vmlinuxclean10661067 # mrproper - Delete all generated files, including .config

    Page 23

  • 8/12/2019 outpu2t

    24/32

  • 8/12/2019 outpu2t

    25/32

  • 8/12/2019 outpu2t

    26/32

    cv

    1153 @echo ' headers_check - Sanity check on exported headers'1154 @echo ' headerdep - Detect inclusion cycles in headers'1155 @$(MAKE) -f $(srctree)/scripts/Makefile.help checker-help1156 @echo ''

    1157 @echo 'Kernel packaging:'1158 @$(MAKE) $(build)=$(package-dir) help1159 @echo ''1160 @echo 'Documentation targets:'1161 @$(MAKE) -f $(srctree)/Documentation/DocBook/Makefile dochelp1162 @echo ''1163 @echo 'Architecture specific targets ($(SRCARCH)):'1164 @$(if $(archhelp),$(archhelp),\1165 echo ' No architecture specific help defined for $(SRCARCH)')1166 @echo ''1167 @$(if $(boards), \1168 $(foreach b, $(boards), \1169 printf " %-24s - Build for %s\\n" $(b) $(subst _defconfig,,$(b));)

    \1170 echo '')1171 @$(if $(board-dirs), \1172 $(foreach b, $(board-dirs), \1173 printf " %-16s - Show %s-specific targets\\n" help-$(b) $(b);) \1174 printf " %-16s - Show all of the above\\n" help-boards; \1175 echo '')11761177 @echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose

    build'1178 @echo ' make V=2 [targets] 2 => give reason for rebuild of target'1179 @echo ' make O=dir [targets] Locate all output files in "dir",

    including .config'

    1180 @echo ' make C=1 [targets] Check all c source with $$CHECK (sparseby default)'1181 @echo ' make C=2 [targets] Force check of all c source with $$CHECK'1182 @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount

    sections'1183 @echo ' make W=n [targets] Enable extra gcc checks, n=1,2,3 where'1184 @echo ' 1: warnings which may be relevant and do not occur too

    often'1185 @echo ' 2: warnings which occur quite often but may still be

    relevant'1186 @echo ' 3: more obscure warnings, can most likely be ignored'1187 @echo ' Multiple levels can be combined with W=12 or W=123'1188 @echo ''

    1189 @echo 'Execute "make" or "make all" to build all targets marked with[*] '1190 @echo 'For further info see the ./README file'11911192

    Page 26

  • 8/12/2019 outpu2t

    27/32

    cv

    1193 help-board-dirs := $(addprefix help-,$(board-dirs))11941195 help-boards: $(help-board-dirs)1196

    1197 boards-per-dir = $(notdir $(wildcard $(srctree)/arch/$(SRCARCH)/configs/$*/*_defconfig))11981199 $(help-board-dirs): help-%:1200 @echo 'Architecture specific targets ($(SRCARCH) $*):'1201 @$(if $(boards-per-dir), \1202 $(foreach b, $(boards-per-dir), \1203 printf " %-24s - Build for %s\\n" $*/$(b) $(subst _defconfig,,

    $(b));) \1204 echo '')120512061207 # Documentation targets

    1208 #---------------------------------------------------------------------------1209 %docs: scripts_basic FORCE1210 $(Q)$(MAKE) $(build)=scripts build_docproc1211 $(Q)$(MAKE) $(build)=Documentation/DocBook $@12121213 else # KBUILD_EXTMOD12141215 ###1216 # External module support.1217 # When building external modules the kernel used as basis is considered1218 # read-only, and no consistency checks are made and the make1219 # system is not used on the basis kernel. If updates are required

    1220 # in the basis kernel ordinary make commands (without M=...) must1221 # be used.1222 #1223 # The following are the only valid targets when building external1224 # modules.1225 # make M=dir clean Delete all automatically generated files1226 # make M=dir modules Make all modules in specified dir1227 # make M=dir Same as 'make M=dir modules'1228 # make M=dir modules_install1229 # Install the modules built in the module directory1230 # Assumes install directory is already created12311232 # We are always building modules

    1233 KBUILD_MODULES := 11234 PHONY += crmodverdir1235 crmodverdir:1236 $(cmd_crmodverdir)1237

    Page 27

  • 8/12/2019 outpu2t

    28/32

    cv

    1238 PHONY += $(objtree)/Module.symvers1239 $(objtree)/Module.symvers:1240 @test -e $(objtree)/Module.symvers || ( \1241 echo; \

    1242 echo " WARNING: Symbol version dump $(objtree)/Module.symvers"; \1243 echo " is missing; modules will have no dependencies andmodversions."; \

    1244 echo )12451246 module-dirs := $(addprefix _module_,$(KBUILD_EXTMOD))1247 PHONY += $(module-dirs) modules1248 $(module-dirs): crmodverdir $(objtree)/Module.symvers1249 $(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@)12501251 modules: $(module-dirs)1252 @$(kecho) ' Building modules, stage 2.';1253 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost

    12541255 PHONY += modules_install1256 modules_install: _emodinst_ _emodinst_post12571258 install-dir := $(if $(INSTALL_MOD_DIR),$(INSTALL_MOD_DIR),extra)1259 PHONY += _emodinst_ 1260 _emodinst_:1261 $(Q)mkdir -p $(MODLIB)/$(install-dir)1262 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst12631264 PHONY += _emodinst_post1265 _emodinst_post: _emodinst_ 1266 $(call cmd,depmod)

    12671268 clean-dirs := $(addprefix _clean_,$(KBUILD_EXTMOD))12691270 PHONY += $(clean-dirs) clean1271 $(clean-dirs):1272 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)12731274 clean: rm-dirs := $(MODVERDIR)1275 clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers12761277 help:1278 @echo ' Building external modules.'1279 @echo ' Syntax: make -C path/to/kernel/src M=$$PWD target'

    1280 @echo ''1281 @echo ' modules - default target, build the module(s)'1282 @echo ' modules_install - install the module'1283 @echo ' clean - remove generated files in module directory

    only'

    Page 28

  • 8/12/2019 outpu2t

    29/32

    cv

    1284 @echo ''12851286 # Dummies...1287 PHONY += prepare scripts

    1288 prepare: ;1289 scripts: ;1290 endif # KBUILD_EXTMOD12911292 clean: $(clean-dirs)1293 $(call cmd,rmdirs)1294 $(call cmd,rmfiles)1295 @find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \1296 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \1297 -o -name '*.ko.*' \1298 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \1299 -o -name '*.symtypes' -o -name 'modules.order' \1300 -o -name modules.builtin -o -name '.tmp_*.o.*' \

    1301 -o -name '*.gcno' \) -type f -print | xargs rm -f13021303 # Generate tags for editors1304 #

    ---------------------------------------------------------------------------1305 quiet_cmd_tags = GEN $@1306 cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@13071308 tags TAGS cscope gtags: FORCE1309 $(call cmd,tags)13101311 # Scripts to check various things for consistency1312 #

    ---------------------------------------------------------------------------13131314 PHONY += includecheck versioncheck coccicheck namespacecheck export_report13151316 includecheck:1317 find $(srctree)/* $(RCS_FIND_IGNORE) \1318 -name '*.[hcS]' -type f -print | sort \1319 | xargs $(PERL) -w $(srctree)/scripts/checkincludes.pl13201321 versioncheck:1322 find $(srctree)/* $(RCS_FIND_IGNORE) \1323 -name '*.[hcS]' -type f -print | sort \1324 | xargs $(PERL) -w $(srctree)/scripts/checkversion.pl

    13251326 coccicheck:1327 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/$@13281329 namespacecheck:

    Page 29

  • 8/12/2019 outpu2t

    30/32

    cv

    1330 $(PERL) $(srctree)/scripts/namespace.pl13311332 export_report:1333 $(PERL) $(srctree)/scripts/export_report.pl

    13341335 endif #ifeq ($(config-targets),1)1336 endif #ifeq ($(mixed-targets),1)13371338 PHONY += checkstack kernelrelease kernelversion image_name13391340 # UML needs a little special treatment here. It wants to use the host1341 # toolchain, so needs $(SUBARCH) passed to checkstack.pl. Everyone1342 # else wants $(ARCH), including people doing cross-builds, which means1343 # that $(SUBARCH) doesn't work here.1344 ifeq ($(ARCH), um)1345 CHECKSTACK_ARCH := $(SUBARCH)1346 else

    1347 CHECKSTACK_ARCH := $(ARCH)1348 endif1349 checkstack:1350 $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \1351 $(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)13521353 kernelrelease:1354 @echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/

    setlocalversion $(srctree))"13551356 kernelversion:1357 @echo $(KERNELVERSION)1358

    1359 image_name:1360 @echo $(KBUILD_IMAGE)13611362 # Clear a bunch of variables before executing the submake1363 tools/: FORCE1364 $(Q)mkdir -p $(objtree)/tools1365 $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=

    $(objtree) subdir=tools -C $(src)/tools/13661367 tools/%: FORCE1368 $(Q)mkdir -p $(objtree)/tools1369 $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(filter --j% -j,$(MAKEFLAGS))" O=

    $(objtree) subdir=tools -C $(src)/tools/ $*

    13701371 # Single targets1372 #

    ---------------------------------------------------------------------------1373 # Single targets are compatible with:

    Page 30

  • 8/12/2019 outpu2t

    31/32

    cv

    1374 # - build with mixed source and output1375 # - build with separate output dir 'make O=...'1376 # - external modules1377 #

    1378 # target-dir => where to store outputfile1379 # build-dir => directory in kernel source tree to use13801381 ifeq ($(KBUILD_EXTMOD),)1382 build-dir = $(patsubst %/,%,$(dir $@))1383 target-dir = $(dir $@)1384 else1385 zap-slash=$(filter-out .,$(patsubst %/,%,$(dir $@)))1386 build-dir = $(KBUILD_EXTMOD)$(if $(zap-slash),/$(zap-slash))1387 target-dir = $(if $(KBUILD_EXTMOD),$(dir $

  • 8/12/2019 outpu2t

    32/32

    cv

    ===========================================================================14221423 quiet_cmd_rmdirs = $(if $(wildcard $(rm-dirs)),CLEAN $(wildcard $(rm-

    dirs)))

    1424 cmd_rmdirs = rm -rf $(rm-dirs)14251426 quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-

    files)))1427 cmd_rmfiles = rm -f $(rm-files)14281429 # Run depmod only if we have System.map and depmod is executable1430 quiet_cmd_depmod = DEPMOD $(KERNELRELEASE)1431 cmd_depmod = $(CONFIG_SHELL) $(srctree)/scripts/depmod.sh $(DEPMOD) \1432 $(KERNELRELEASE) "$(patsubst y,_,

    $(CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX))"14331434 # Create temporary dir for module support files

    1435 # clean it up only when building all modules1436 cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR) \1437 $(if $(KBUILD_MODULES),; rm -f $(MODVERDIR)/*)14381439 # read all saved command lines14401441 targets := $(wildcard $(sort $(targets)))1442 cmd_files := $(wildcard .*.cmd $(foreach f,$(targets),$(dir $(f)).$(notdir

    $(f)).cmd))14431444 ifneq ($(cmd_files),)1445 $(cmd_files): ; # Do not try to update included dependency files1446 include $(cmd_files)

    1447 endif14481449 # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.clean obj=dir1450 # Usage:1451 # $(Q)$(MAKE) $(clean)=dir1452 clean := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.clean obj14531454 endif # skip-makefile14551456 PHONY += FORCE1457 FORCE:14581459 # Declare the contents of the .PHONY variable as phony. We keep that

    1460 # information in a variable so we can use it in if_changed and friends.1461 .PHONY: $(PHONY)1462

    Page 32