Makefile.lib 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. # SPDX-License-Identifier: GPL-2.0
  2. # Backward compatibility
  3. asflags-y += $(EXTRA_AFLAGS)
  4. ccflags-y += $(EXTRA_CFLAGS)
  5. cppflags-y += $(EXTRA_CPPFLAGS)
  6. ldflags-y += $(EXTRA_LDFLAGS)
  7. #
  8. # flags that take effect in sub directories
  9. export KBUILD_SUBDIR_ASFLAGS := $(KBUILD_SUBDIR_ASFLAGS) $(subdir-asflags-y)
  10. export KBUILD_SUBDIR_CCFLAGS := $(KBUILD_SUBDIR_CCFLAGS) $(subdir-ccflags-y)
  11. # Figure out what we need to build from the various variables
  12. # ===========================================================================
  13. # When an object is listed to be built compiled-in and modular,
  14. # only build the compiled-in version
  15. obj-m := $(filter-out $(obj-y),$(obj-m))
  16. # Libraries are always collected in one lib file.
  17. # Filter out objects already built-in
  18. lib-y := $(filter-out $(obj-y), $(sort $(lib-y) $(lib-m)))
  19. # Handle objects in subdirs
  20. # ---------------------------------------------------------------------------
  21. # o if we encounter foo/ in $(obj-y), replace it by foo/built-in.o
  22. # and add the directory to the list of dirs to descend into: $(subdir-y)
  23. # o if we encounter foo/ in $(obj-m), remove it from $(obj-m)
  24. # and add the directory to the list of dirs to descend into: $(subdir-m)
  25. # Determine modorder.
  26. # Unfortunately, we don't have information about ordering between -y
  27. # and -m subdirs. Just put -y's first.
  28. modorder := $(patsubst %/,%/modules.order, $(filter %/, $(obj-y)) $(obj-m:.o=.ko))
  29. __subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y)))
  30. subdir-y += $(__subdir-y)
  31. __subdir-m := $(patsubst %/,%,$(filter %/, $(obj-m)))
  32. subdir-m += $(__subdir-m)
  33. obj-y := $(patsubst %/, %/built-in.o, $(obj-y))
  34. obj-m := $(filter-out %/, $(obj-m))
  35. # Subdirectories we need to descend into
  36. subdir-ym := $(sort $(subdir-y) $(subdir-m))
  37. # if $(foo-objs) exists, foo.o is a composite object
  38. multi-used-y := $(sort $(foreach m,$(obj-y), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m))))
  39. multi-used-m := $(sort $(foreach m,$(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m))), $(m))))
  40. multi-used := $(multi-used-y) $(multi-used-m)
  41. single-used-m := $(sort $(filter-out $(multi-used-m),$(obj-m)))
  42. # Build list of the parts of our composite objects, our composite
  43. # objects depend on those (obviously)
  44. multi-objs-y := $(foreach m, $(multi-used-y), $($(m:.o=-objs)) $($(m:.o=-y)))
  45. multi-objs-m := $(foreach m, $(multi-used-m), $($(m:.o=-objs)) $($(m:.o=-y)))
  46. multi-objs := $(multi-objs-y) $(multi-objs-m)
  47. # $(subdir-obj-y) is the list of objects in $(obj-y) which uses dir/ to
  48. # tell kbuild to descend
  49. subdir-obj-y := $(filter %/built-in.o, $(obj-y))
  50. # $(obj-dirs) is a list of directories that contain object files
  51. obj-dirs := $(dir $(multi-objs) $(obj-y))
  52. # Replace multi-part objects by their individual parts, look at local dir only
  53. real-objs-y := $(foreach m, $(filter-out $(subdir-obj-y), $(obj-y)), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))),$($(m:.o=-objs)) $($(m:.o=-y)),$(m))) $(extra-y)
  54. real-objs-m := $(foreach m, $(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m))),$($(m:.o=-objs)) $($(m:.o=-y)) $($(m:.o=-m)),$(m)))
  55. # Add subdir path
  56. extra-y := $(addprefix $(obj)/,$(extra-y))
  57. always := $(addprefix $(obj)/,$(always))
  58. targets := $(addprefix $(obj)/,$(targets))
  59. modorder := $(addprefix $(obj)/,$(modorder))
  60. obj-y := $(addprefix $(obj)/,$(obj-y))
  61. obj-m := $(addprefix $(obj)/,$(obj-m))
  62. lib-y := $(addprefix $(obj)/,$(lib-y))
  63. subdir-obj-y := $(addprefix $(obj)/,$(subdir-obj-y))
  64. real-objs-y := $(addprefix $(obj)/,$(real-objs-y))
  65. real-objs-m := $(addprefix $(obj)/,$(real-objs-m))
  66. single-used-m := $(addprefix $(obj)/,$(single-used-m))
  67. multi-used-y := $(addprefix $(obj)/,$(multi-used-y))
  68. multi-used-m := $(addprefix $(obj)/,$(multi-used-m))
  69. multi-objs-y := $(addprefix $(obj)/,$(multi-objs-y))
  70. multi-objs-m := $(addprefix $(obj)/,$(multi-objs-m))
  71. subdir-ym := $(addprefix $(obj)/,$(subdir-ym))
  72. obj-dirs := $(addprefix $(obj)/,$(obj-dirs))
  73. # These flags are needed for modversions and compiling, so we define them here
  74. # already
  75. # $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will
  76. # end up in (or would, if it gets compiled in)
  77. # Note: Files that end up in two or more modules are compiled without the
  78. # KBUILD_MODNAME definition. The reason is that any made-up name would
  79. # differ in different configs.
  80. name-fix = $(squote)$(quote)$(subst $(comma),_,$(subst -,_,$1))$(quote)$(squote)
  81. basename_flags = -DKBUILD_BASENAME=$(call name-fix,$(basetarget))
  82. modname_flags = $(if $(filter 1,$(words $(modname))),\
  83. -DKBUILD_MODNAME=$(call name-fix,$(modname)))
  84. orig_c_flags = $(KBUILD_CPPFLAGS) $(KBUILD_CFLAGS) $(KBUILD_SUBDIR_CCFLAGS) \
  85. $(ccflags-y) $(CFLAGS_$(basetarget).o)
  86. _c_flags = $(filter-out $(CFLAGS_REMOVE_$(basetarget).o), $(orig_c_flags))
  87. orig_a_flags = $(KBUILD_CPPFLAGS) $(KBUILD_AFLAGS) $(KBUILD_SUBDIR_ASFLAGS) \
  88. $(asflags-y) $(AFLAGS_$(basetarget).o)
  89. _a_flags = $(filter-out $(AFLAGS_REMOVE_$(basetarget).o), $(orig_a_flags))
  90. _cpp_flags = $(KBUILD_CPPFLAGS) $(cppflags-y) $(CPPFLAGS_$(@F))
  91. #
  92. # Enable gcov profiling flags for a file, directory or for all files depending
  93. # on variables GCOV_PROFILE_obj.o, GCOV_PROFILE and CONFIG_GCOV_PROFILE_ALL
  94. # (in this order)
  95. #
  96. ifeq ($(CONFIG_GCOV_KERNEL),y)
  97. _c_flags += $(if $(patsubst n%,, \
  98. $(GCOV_PROFILE_$(basetarget).o)$(GCOV_PROFILE)$(CONFIG_GCOV_PROFILE_ALL)), \
  99. $(CFLAGS_GCOV))
  100. endif
  101. #
  102. # Enable address sanitizer flags for kernel except some files or directories
  103. # we don't want to check (depends on variables KASAN_SANITIZE_obj.o, KASAN_SANITIZE)
  104. #
  105. ifeq ($(CONFIG_KASAN),y)
  106. _c_flags += $(if $(patsubst n%,, \
  107. $(KASAN_SANITIZE_$(basetarget).o)$(KASAN_SANITIZE)y), \
  108. $(CFLAGS_KASAN), $(CFLAGS_KASAN_NOSANITIZE))
  109. endif
  110. ifeq ($(CONFIG_UBSAN),y)
  111. _c_flags += $(if $(patsubst n%,, \
  112. $(UBSAN_SANITIZE_$(basetarget).o)$(UBSAN_SANITIZE)$(CONFIG_UBSAN_SANITIZE_ALL)), \
  113. $(CFLAGS_UBSAN))
  114. endif
  115. ifeq ($(CONFIG_KCOV),y)
  116. _c_flags += $(if $(patsubst n%,, \
  117. $(KCOV_INSTRUMENT_$(basetarget).o)$(KCOV_INSTRUMENT)$(CONFIG_KCOV_INSTRUMENT_ALL)), \
  118. $(CFLAGS_KCOV))
  119. endif
  120. # If building the kernel in a separate objtree expand all occurrences
  121. # of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/').
  122. ifeq ($(KBUILD_SRC),)
  123. __c_flags = $(_c_flags)
  124. __a_flags = $(_a_flags)
  125. __cpp_flags = $(_cpp_flags)
  126. else
  127. # -I$(obj) locates generated .h files
  128. # $(call addtree,-I$(obj)) locates .h files in srctree, from generated .c files
  129. # and locates generated .h files
  130. # FIXME: Replace both with specific CFLAGS* statements in the makefiles
  131. __c_flags = $(if $(obj),$(call addtree,-I$(src)) -I$(obj)) \
  132. $(call flags,_c_flags)
  133. __a_flags = $(call flags,_a_flags)
  134. __cpp_flags = $(call flags,_cpp_flags)
  135. endif
  136. c_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
  137. $(__c_flags) $(modkern_cflags) \
  138. $(basename_flags) $(modname_flags)
  139. a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
  140. $(__a_flags) $(modkern_aflags)
  141. cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
  142. $(__cpp_flags)
  143. ld_flags = $(LDFLAGS) $(ldflags-y)
  144. DTC_INCLUDE := $(srctree)/scripts/dtc/include-prefixes
  145. dtc_cpp_flags = -Wp,-MD,$(depfile).pre.tmp -nostdinc \
  146. $(addprefix -I,$(DTC_INCLUDE)) \
  147. -I$(srctree)/arch/$(SRCARCH)/boot/dts \
  148. -I$(srctree)/arch/$(SRCARCH)/boot/dts/include \
  149. -I$(objtree)/include/ \
  150. -Iarch/$(SRCARCH)/boot/dts \
  151. -undef -D__DTS__
  152. # Finds the multi-part object the current object will be linked into
  153. modname-multi = $(sort $(foreach m,$(multi-used),\
  154. $(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=))))
  155. # Useful for describing the dependency of composite objects
  156. # Usage:
  157. # $(call multi_depend, multi_used_targets, suffix_to_remove, suffix_to_add)
  158. define multi_depend
  159. $(foreach m, $(notdir $1), \
  160. $(eval $(obj)/$m: \
  161. $(addprefix $(obj)/, $(foreach s, $3, $($(m:%$(strip $2)=%$(s)))))))
  162. endef
  163. ifdef REGENERATE_PARSERS
  164. # LEX
  165. # ---------------------------------------------------------------------------
  166. LEX_PREFIX = $(if $(LEX_PREFIX_${baseprereq}),$(LEX_PREFIX_${baseprereq}),yy)
  167. quiet_cmd_flex = LEX $@
  168. cmd_flex = flex -o$@ -L -P $(LEX_PREFIX) $<
  169. .PRECIOUS: $(src)/%.lex.c_shipped
  170. $(src)/%.lex.c_shipped: $(src)/%.l
  171. $(call cmd,flex)
  172. # YACC
  173. # ---------------------------------------------------------------------------
  174. YACC_PREFIX = $(if $(YACC_PREFIX_${baseprereq}),$(YACC_PREFIX_${baseprereq}),yy)
  175. quiet_cmd_bison = YACC $@
  176. cmd_bison = bison -o$@ -t -l -p $(YACC_PREFIX) $<
  177. .PRECIOUS: $(src)/%.tab.c_shipped
  178. $(src)/%.tab.c_shipped: $(src)/%.y
  179. $(call cmd,bison)
  180. quiet_cmd_bison_h = YACC $@
  181. cmd_bison_h = bison -o/dev/null --defines=$@ -t -l -p $(YACC_PREFIX) $<
  182. .PRECIOUS: $(src)/%.tab.h_shipped
  183. $(src)/%.tab.h_shipped: $(src)/%.y
  184. $(call cmd,bison_h)
  185. endif
  186. # Shipped files
  187. # ===========================================================================
  188. quiet_cmd_shipped = SHIPPED $@
  189. cmd_shipped = cat $< > $@
  190. $(obj)/%: $(src)/%_shipped
  191. $(call cmd,shipped)
  192. # Commands useful for building a boot image
  193. # ===========================================================================
  194. #
  195. # Use as following:
  196. #
  197. # target: source(s) FORCE
  198. # $(if_changed,ld/objcopy/gzip)
  199. #
  200. # and add target to extra-y so that we know we have to
  201. # read in the saved command line
  202. # Linking
  203. # ---------------------------------------------------------------------------
  204. quiet_cmd_ld = LD $@
  205. cmd_ld = $(LDFINAL) $(LDFLAGS) $(ldflags-y) $(LDFLAGS_$(@F)) \
  206. $(filter-out FORCE,$^) -o $@
  207. # Objcopy
  208. # ---------------------------------------------------------------------------
  209. quiet_cmd_objcopy = OBJCOPY $@
  210. cmd_objcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
  211. # Gzip
  212. # ---------------------------------------------------------------------------
  213. quiet_cmd_gzip = GZIP $@
  214. cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \
  215. (rm -f $@ ; false)
  216. # DTC
  217. # ---------------------------------------------------------------------------
  218. DTC ?= $(objtree)/scripts/dtc/dtc
  219. # Silence warnings
  220. DTC_FLAGS += -q
  221. # Disable noisy checks by default
  222. ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),)
  223. DTC_FLAGS += -Wno-unit_address_vs_reg \
  224. -Wno-simple_bus_reg \
  225. -Wno-unit_address_format \
  226. -Wno-pci_bridge \
  227. -Wno-pci_device_bus_num \
  228. -Wno-pci_device_reg
  229. endif
  230. ifeq ($(KBUILD_ENABLE_EXTRA_GCC_CHECKS),2)
  231. DTC_FLAGS += -Wnode_name_chars_strict \
  232. -Wproperty_name_chars_strict
  233. endif
  234. DTC_FLAGS += $(DTC_FLAGS_$(basetarget))
  235. # Generate an assembly file to wrap the output of the device tree compiler
  236. quiet_cmd_dt_S_dtb= DTB $@
  237. cmd_dt_S_dtb= \
  238. ( \
  239. echo '\#include <asm-generic/vmlinux.lds.h>'; \
  240. echo '.section .dtb.init.rodata,"a"'; \
  241. echo '.balign STRUCT_ALIGNMENT'; \
  242. echo '.global __dtb_$(subst -,_,$(*F))_begin'; \
  243. echo '__dtb_$(subst -,_,$(*F))_begin:'; \
  244. echo '.incbin "$<" '; \
  245. echo '__dtb_$(subst -,_,$(*F))_end:'; \
  246. echo '.global __dtb_$(subst -,_,$(*F))_end'; \
  247. echo '.balign STRUCT_ALIGNMENT'; \
  248. ) > $@
  249. $(obj)/%.dtb.S: $(obj)/%.dtb
  250. $(call cmd,dt_S_dtb)
  251. quiet_cmd_dtc = DTC $@
  252. cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \
  253. $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
  254. $(srctree)/scripts/dtc/dtc_overlay -@ -O dtb -o $@ -b 0 \
  255. $(addprefix -i,$(dir $<) $(DTC_INCLUDE)) $(DTC_FLAGS) \
  256. -d $(depfile).dtc.tmp $(dtc-tmp) ; \
  257. cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)
  258. $(obj)/%.dtb: $(src)/%.dts FORCE
  259. $(call if_changed_dep,dtc)
  260. dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
  261. # cat
  262. # ---------------------------------------------------------------------------
  263. # Concatentate multiple files together
  264. quiet_cmd_cat = CAT $@
  265. cmd_cat = (cat $(filter-out FORCE,$^) > $@) || (rm -f $@; false)
  266. # Bzip2
  267. # ---------------------------------------------------------------------------
  268. # Bzip2 and LZMA do not include size in file... so we have to fake that;
  269. # append the size as a 32-bit littleendian number as gzip does.
  270. size_append = printf $(shell \
  271. dec_size=0; \
  272. for F in $1; do \
  273. fsize=$$(stat -c "%s" $$F); \
  274. dec_size=$$(expr $$dec_size + $$fsize); \
  275. done; \
  276. printf "%08x\n" $$dec_size | \
  277. sed 's/\(..\)/\1 /g' | { \
  278. read ch0 ch1 ch2 ch3; \
  279. for ch in $$ch3 $$ch2 $$ch1 $$ch0; do \
  280. printf '%s%03o' '\\' $$((0x$$ch)); \
  281. done; \
  282. } \
  283. )
  284. quiet_cmd_bzip2 = BZIP2 $@
  285. cmd_bzip2 = (cat $(filter-out FORCE,$^) | \
  286. bzip2 -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
  287. (rm -f $@ ; false)
  288. # Lzma
  289. # ---------------------------------------------------------------------------
  290. quiet_cmd_lzma = LZMA $@
  291. cmd_lzma = (cat $(filter-out FORCE,$^) | \
  292. lzma -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
  293. (rm -f $@ ; false)
  294. quiet_cmd_lzo = LZO $@
  295. cmd_lzo = (cat $(filter-out FORCE,$^) | \
  296. lzop -9 && $(call size_append, $(filter-out FORCE,$^))) > $@ || \
  297. (rm -f $@ ; false)
  298. quiet_cmd_lz4 = LZ4 $@
  299. cmd_lz4 = (cat $(filter-out FORCE,$^) | \
  300. lz4 -l -12 --favor-decSpeed stdin stdout && \
  301. $(call size_append, $(filter-out FORCE,$^))) > $@ || \
  302. (rm -f $@ ; false)
  303. # U-Boot mkimage
  304. # ---------------------------------------------------------------------------
  305. MKIMAGE := $(srctree)/scripts/mkuboot.sh
  306. # SRCARCH just happens to match slightly more than ARCH (on sparc), so reduces
  307. # the number of overrides in arch makefiles
  308. UIMAGE_ARCH ?= $(SRCARCH)
  309. UIMAGE_COMPRESSION ?= $(if $(2),$(2),none)
  310. UIMAGE_OPTS-y ?=
  311. UIMAGE_TYPE ?= kernel
  312. UIMAGE_LOADADDR ?= arch_must_set_this
  313. UIMAGE_ENTRYADDR ?= $(UIMAGE_LOADADDR)
  314. UIMAGE_NAME ?= 'Linux-$(KERNELRELEASE)'
  315. UIMAGE_IN ?= $<
  316. UIMAGE_OUT ?= $@
  317. quiet_cmd_uimage = UIMAGE $(UIMAGE_OUT)
  318. cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \
  319. -C $(UIMAGE_COMPRESSION) $(UIMAGE_OPTS-y) \
  320. -T $(UIMAGE_TYPE) \
  321. -a $(UIMAGE_LOADADDR) -e $(UIMAGE_ENTRYADDR) \
  322. -n $(UIMAGE_NAME) -d $(UIMAGE_IN) $(UIMAGE_OUT)
  323. # XZ
  324. # ---------------------------------------------------------------------------
  325. # Use xzkern to compress the kernel image and xzmisc to compress other things.
  326. #
  327. # xzkern uses a big LZMA2 dictionary since it doesn't increase memory usage
  328. # of the kernel decompressor. A BCJ filter is used if it is available for
  329. # the target architecture. xzkern also appends uncompressed size of the data
  330. # using size_append. The .xz format has the size information available at
  331. # the end of the file too, but it's in more complex format and it's good to
  332. # avoid changing the part of the boot code that reads the uncompressed size.
  333. # Note that the bytes added by size_append will make the xz tool think that
  334. # the file is corrupt. This is expected.
  335. #
  336. # xzmisc doesn't use size_append, so it can be used to create normal .xz
  337. # files. xzmisc uses smaller LZMA2 dictionary than xzkern, because a very
  338. # big dictionary would increase the memory usage too much in the multi-call
  339. # decompression mode. A BCJ filter isn't used either.
  340. quiet_cmd_xzkern = XZKERN $@
  341. cmd_xzkern = (cat $(filter-out FORCE,$^) | \
  342. sh $(srctree)/scripts/xz_wrap.sh && \
  343. $(call size_append, $(filter-out FORCE,$^))) > $@ || \
  344. (rm -f $@ ; false)
  345. quiet_cmd_xzmisc = XZMISC $@
  346. cmd_xzmisc = (cat $(filter-out FORCE,$^) | \
  347. xz --check=crc32 --lzma2=dict=1MiB) > $@ || \
  348. (rm -f $@ ; false)
  349. # ASM offsets
  350. # ---------------------------------------------------------------------------
  351. # Default sed regexp - multiline due to syntax constraints
  352. #
  353. # Use [:space:] because LLVM's integrated assembler inserts <tab> around
  354. # the .ascii directive whereas GCC keeps the <space> as-is.
  355. define sed-offsets
  356. 's:^[[:space:]]*\.ascii[[:space:]]*"\(.*\)".*:\1:; \
  357. /^->/{s:->#\(.*\):/* \1 */:; \
  358. s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
  359. s:->::; p;}'
  360. endef
  361. # Use filechk to avoid rebuilds when a header changes, but the resulting file
  362. # does not
  363. define filechk_offsets
  364. (set -e; \
  365. echo "#ifndef $2"; \
  366. echo "#define $2"; \
  367. echo "/*"; \
  368. echo " * DO NOT MODIFY."; \
  369. echo " *"; \
  370. echo " * This file was generated by Kbuild"; \
  371. echo " */"; \
  372. echo ""; \
  373. sed -ne $(sed-offsets); \
  374. echo ""; \
  375. echo "#endif" )
  376. endef