mb/google/skyrim/var/crystaldrift: drop commented out line in DT
[coreboot.git] / Makefile
blob9f0b6795efb15b31b36589802012ea5170cf94cc
1 ## SPDX-License-Identifier: BSD-3-Clause
3 ifneq ($(words $(CURDIR)),1)
4 $(error Error: Path to the main directory cannot contain spaces)
5 endif
6 top := $(CURDIR)
7 src := src
8 srck := $(top)/util/kconfig
9 obj ?= build
10 override obj := $(subst $(top)/,,$(abspath $(obj)))
11 xcompile ?= $(obj)/xcompile
12 objutil ?= $(obj)/util
13 objk := $(objutil)/kconfig
14 absobj := $(abspath $(obj))
16 additional-dirs :=
18 VBOOT_HOST_BUILD ?= $(abspath $(objutil)/vboot_lib)
20 COREBOOT_EXPORTS := COREBOOT_EXPORTS
21 COREBOOT_EXPORTS += top src srck obj objutil objk
23 DOTCONFIG ?= $(top)/.config
24 KCONFIG_CONFIG = $(DOTCONFIG)
25 KCONFIG_AUTOADS := $(obj)/cb-config.ads
26 KCONFIG_AUTOHEADER := $(obj)/config.h
27 KCONFIG_AUTOCONFIG := $(obj)/auto.conf
28 KCONFIG_DEPENDENCIES := $(obj)/auto.conf.cmd
29 KCONFIG_SPLITCONFIG := $(obj)/config/
30 KCONFIG_TRISTATE := $(obj)/tristate.conf
31 KCONFIG_NEGATIVES := 1
32 KCONFIG_STRICT := 1
33 KCONFIG_PACKAGE := CB.Config
34 KCONFIG_MAKEFILE_REAL ?= $(objk)/Makefile.real
36 COREBOOT_EXPORTS += KCONFIG_CONFIG KCONFIG_AUTOHEADER KCONFIG_AUTOCONFIG
37 COREBOOT_EXPORTS += KCONFIG_DEPENDENCIES KCONFIG_SPLITCONFIG KCONFIG_TRISTATE
38 COREBOOT_EXPORTS += KCONFIG_NEGATIVES KCONFIG_STRICT
39 COREBOOT_EXPORTS += KCONFIG_AUTOADS KCONFIG_PACKAGE
41 # Make does not offer a recursive wildcard function, so here's one:
42 rwildcard=$(wildcard $1$2) $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2))
43 SYMLINK_LIST = $(call rwildcard,site-local/,symlink.txt)
46 # directory containing the toplevel Makefile.inc
47 TOPLEVEL := .
49 CONFIG_SHELL := sh
50 KBUILD_DEFCONFIG := configs/defconfig
51 UNAME_RELEASE := $(shell uname -r)
52 HAVE_DOTCONFIG := $(wildcard $(DOTCONFIG))
53 HAVE_KCONFIG_MAKEFILE_REAL := $(wildcard $(KCONFIG_MAKEFILE_REAL))
54 MAKEFLAGS += -rR --no-print-directory
56 # Make is silent per default, but 'make V=1' will show all compiler calls.
57 Q:=@
58 ifneq ($(V),1)
59 ifneq ($(Q),)
60 .SILENT:
61 MAKEFLAGS += -s
62 quiet_errors := 2>/dev/null
63 endif
64 endif
66 # Disable implicit/built-in rules to make Makefile errors fail fast.
67 .SUFFIXES:
69 HOSTCFLAGS := -g
70 HOSTCXXFLAGS := -g
72 HOSTPKG_CONFIG ?= pkg-config
73 COREBOOT_EXPORTS += HOSTPKG_CONFIG
75 PREPROCESS_ONLY := -E -P -x assembler-with-cpp -undef -I .
77 export $(COREBOOT_EXPORTS)
79 all: real-all
81 help_coreboot help::
82 @echo '*** coreboot platform targets ***'
83 @echo ' Use "make [target] V=1" for extra build debug information'
84 @echo ' all - Build coreboot'
85 @echo ' clean - Remove coreboot build artifacts'
86 @echo ' distclean - Remove build artifacts and config files'
87 @echo ' sphinx - Build sphinx documentation for coreboot'
88 @echo ' sphinx-lint - Build sphinx documenttion for coreboot with warnings as errors'
89 @echo ' filelist - Show files used in current build'
90 @echo ' printall - print makefile info for debugging'
91 @echo ' gitconfig - set up git to submit patches to coreboot'
92 @echo ' ctags / ctags-project - make ctags file for all of coreboot or current board'
93 @echo ' cscope / cscope-project - make cscope.out file for coreboot or current board'
94 @echo
96 # This include must come _before_ the pattern rules below!
97 # Order _does_ matter for pattern rules.
98 include $(srck)/Makefile.inc
100 # The cases where we don't need fully populated $(obj) lists:
101 # 1. when no .config exists
102 # 2. When no $(obj)/util/kconfig/Makefile.real exists and we're building tools
103 # 3. when make config (in any flavour) is run
104 # 4. when make distclean is run
105 # Don't waste time on reading all Makefile.incs in these cases
106 ifeq ($(strip $(HAVE_DOTCONFIG)),)
107 NOCOMPILE:=1
108 endif
109 ifeq ($(strip $(HAVE_KCONFIG_MAKEFILE_REAL)),)
110 ifneq ($(MAKECMDGOALS),tools)
111 NOCOMPILE:=1
112 endif
113 endif
114 ifneq ($(MAKECMDGOALS),)
115 ifneq ($(filter %config %clean cross% clang iasl lint% help% what-jenkins-does,$(MAKECMDGOALS)),)
116 NOCOMPILE:=1
117 endif
118 ifneq ($(filter %clean lint% help% what-jenkins-does,$(MAKECMDGOALS)),)
119 NOMKDIR:=1
120 UNIT_TEST:=1
121 endif
122 endif
124 ifneq ($(filter help%, $(MAKECMDGOALS)), )
125 NOCOMPILE:=1
126 UNIT_TEST:=1
127 else
128 ifneq ($(filter %-test %-tests %coverage-report, $(MAKECMDGOALS)),)
129 ifneq ($(filter-out %-test %-tests %coverage-report, $(MAKECMDGOALS)),)
130 $(error Cannot mix unit-tests targets with other targets)
131 endif
132 UNIT_TEST:=1
133 NOCOMPILE:=
134 endif
135 endif
137 $(xcompile): util/xcompile/xcompile
138 rm -f $@
139 $< $(XGCCPATH) > $@.tmp
140 \mv -f $@.tmp $@ 2> /dev/null
141 rm -f $@.tmp
143 ifeq ($(NOCOMPILE),1)
144 # We also don't use .xcompile in the no-compile situations, so
145 # provide some reasonable defaults.
146 HOSTCC ?= $(if $(shell type gcc 2>/dev/null),gcc,cc)
147 HOSTCXX ?= g++
149 include $(TOPLEVEL)/Makefile.inc
150 include $(TOPLEVEL)/payloads/Makefile.inc
151 include $(TOPLEVEL)/util/testing/Makefile.inc
152 -include $(TOPLEVEL)/site-local/Makefile.inc
153 include $(TOPLEVEL)/tests/Makefile.inc
154 printall real-all:
155 @echo "Error: Trying to build, but NOCOMPILE is set." >&2
156 @echo " Please file a bug with the following information:"
157 @echo "- MAKECMDGOALS: $(MAKECMDGOALS)" >&2
158 @echo "- HAVE_DOTCONFIG: $(HAVE_DOTCONFIG)" >&2
159 @echo "- HAVE_KCONFIG_MAKEFILE_REAL: $(HAVE_KCONFIG_MAKEFILE_REAL)" >&2
160 @exit 1
162 else
164 ifneq ($(UNIT_TEST),1)
165 include $(DOTCONFIG)
166 endif
168 # The toolchain requires xcompile to determine the ARCH_SUPPORTED, so we can't
169 # wait for make to generate the file.
170 $(if $(wildcard $(xcompile)),, $(shell \
171 mkdir -p $(dir $(xcompile)) && \
172 util/xcompile/xcompile $(XGCCPATH) > $(xcompile) || rm -f $(xcompile)))
174 include $(xcompile)
176 ifneq ($(XCOMPILE_COMPLETE),1)
177 $(shell rm -f $(xcompile))
178 $(error $(xcompile) deleted because it's invalid. \
179 Restarting the build should fix that, or explain the problem)
180 endif
182 # reproducible builds
183 LANG:=C
184 LC_ALL:=C
185 TZ:=UTC0
186 ifneq ($(NOCOMPILE),1)
187 SOURCE_DATE_EPOCH := $(shell $(top)/util/genbuild_h/genbuild_h.sh . | sed -n 's/^.define COREBOOT_BUILD_EPOCH\>.*"\(.*\)".*/\1/p')
188 endif
189 # don't use COREBOOT_EXPORTS to ensure build steps outside the coreboot build system
190 # are reproducible
191 export LANG LC_ALL TZ SOURCE_DATE_EPOCH
193 ifneq ($(UNIT_TEST),1)
194 include toolchain.inc
195 endif
197 strip_quotes = $(strip $(subst ",,$(subst \",,$(1))))
198 # fix makefile syntax highlighting after strip macro \" "))
200 ifneq ($(NOCOMPILE),1)
201 $(shell rm -f $(CCACHE_STATSLOG))
202 endif
204 # The primary target needs to be here before we include the
205 # other files
207 real-all: real-target
209 # must come rather early
210 .SECONDARY:
211 .SECONDEXPANSION:
212 .DELETE_ON_ERROR:
214 $(KCONFIG_AUTOHEADER): $(KCONFIG_CONFIG) $(objutil)/kconfig/conf
215 $(MAKE) olddefconfig
216 $(MAKE) syncconfig
218 $(KCONFIG_AUTOCONFIG): $(KCONFIG_AUTOHEADER)
219 true
221 $(KCONFIG_AUTOADS): $(KCONFIG_CONFIG) $(KCONFIG_AUTOHEADER) $(objutil)/kconfig/toada
222 $(objutil)/kconfig/toada CB.Config <$< >$@
224 $(obj)/%/$(notdir $(KCONFIG_AUTOADS)): $(KCONFIG_AUTOADS)
225 cp $< $@
227 # Add a new class of source/object files to the build system
228 add-class= \
229 $(eval $(1)-srcs:=) \
230 $(eval $(1)-objs:=) \
231 $(eval classes+=$(1))
233 # Special classes are managed types with special behaviour
234 # On parse time, for each entry in variable $(1)-y
235 # a handler $(1)-handler is executed with the arguments:
236 # * $(1): directory the parser is in
237 # * $(2): current entry
238 add-special-class= \
239 $(eval $(1):=) \
240 $(eval special-classes+=$(1))
242 # Converts one or more source file paths to their corresponding build/ paths.
243 # Only .ads, adb, .c and .S get converted to .o, other files (like .ld) keep
244 # their name.
245 # $1 stage name
246 # $2 file path (list)
247 src-to-obj=\
248 $(patsubst $(obj)/%,$(obj)/$(1)/%,\
249 $(patsubst $(obj)/$(1)/%,$(obj)/%,\
250 $(patsubst 3rdparty/%,$(obj)/%,\
251 $(patsubst src/%,$(obj)/%,\
252 $(patsubst %.ads,%.o,\
253 $(patsubst %.adb,%.o,\
254 $(patsubst %.c,%.o,\
255 $(patsubst %.S,%.o,\
256 $(subst .$(1),,$(2))))))))))
258 # Converts one or more source file paths to the corresponding build/ paths
259 # of their Ada library information (.ali) files.
260 # $1 stage name
261 # $2 file path (list)
262 src-to-ali=\
263 $(patsubst $(obj)/%,$(obj)/$(1)/%,\
264 $(patsubst $(obj)/$(1)/%,$(obj)/%,\
265 $(patsubst 3rdparty/%,$(obj)/%,\
266 $(patsubst src/%,$(obj)/%,\
267 $(patsubst %.ads,%.ali,\
268 $(patsubst %.adb,%.ali,\
269 $(subst .$(1),,\
270 $(filter %.ads %.adb,$(2)))))))))
272 # Clean -y variables, include Makefile.inc
273 # Add paths to files in X-y to X-srcs
274 # Add subdirs-y to subdirs
275 includemakefiles= \
276 $(if $(wildcard $(1)), \
277 $(foreach class,classes subdirs $(classes) $(special-classes), $(eval $(class)-y:=)) \
278 $(eval -include $(1)) \
279 $(foreach class,$(classes-y), $(call add-class,$(class))) \
280 $(foreach special,$(special-classes), \
281 $(foreach item,$($(special)-y), $(call $(special)-handler,$(dir $(1)),$(item)))) \
282 $(foreach class,$(classes), \
283 $(eval $(class)-srcs+= \
284 $$(subst $(absobj)/,$(obj)/, \
285 $$(subst $(top)/,, \
286 $$(abspath $$(subst $(dir $(1))/,/,$$(addprefix $(dir $(1)),$$($(class)-y)))))))) \
287 $(eval subdirs+=$$(subst $(CURDIR)/,,$$(wildcard $$(abspath $$(addprefix $(dir $(1)),$$(subdirs-y)))))))
289 # For each path in $(subdirs) call includemakefiles
290 # Repeat until subdirs is empty
291 evaluate_subdirs= \
292 $(eval cursubdirs:=$(subdirs)) \
293 $(eval subdirs:=) \
294 $(foreach dir,$(cursubdirs), \
295 $(eval $(call includemakefiles,$(dir)/Makefile.inc))) \
296 $(if $(subdirs),$(eval $(call evaluate_subdirs)))
298 # collect all object files eligible for building
299 subdirs:=$(TOPLEVEL)
300 postinclude-hooks :=
302 # Don't iterate through Makefile.incs under src/ when building tests
303 ifneq ($(UNIT_TEST),1)
304 $(eval $(call evaluate_subdirs))
305 else
306 include $(TOPLEVEL)/tests/Makefile.inc
307 endif
309 ifeq ($(FAILBUILD),1)
310 $(error cannot continue build)
311 endif
313 # Run hooks registered by subdirectories that need to be evaluated after all files have been parsed
314 $(eval $(postinclude-hooks))
316 # Eliminate duplicate mentions of source files in a class
317 $(foreach class,$(classes),$(eval $(class)-srcs:=$(sort $($(class)-srcs))))
319 # Build Kconfig .ads if necessary
320 ifeq ($(CONFIG_ROMSTAGE_ADA),y)
321 romstage-srcs += $(obj)/romstage/$(notdir $(KCONFIG_AUTOADS))
322 endif
323 ifeq ($(CONFIG_RAMSTAGE_ADA),y)
324 ramstage-srcs += $(obj)/ramstage/$(notdir $(KCONFIG_AUTOADS))
325 endif
327 # To track dependencies, we need all Ada specification (.ads) files in
328 # *-srcs. Extract / filter all specification files that have a matching
329 # body (.adb) file here (specifications without a body are valid sources
330 # in Ada).
331 $(foreach class,$(classes),$(eval $(class)-extra-specs := \
332 $(filter \
333 $(addprefix %/,$(patsubst %.adb,%.ads,$(notdir $(filter %.adb,$($(class)-srcs))))), \
334 $(filter %.ads,$($(class)-srcs)))))
335 $(foreach class,$(classes),$(eval $(class)-srcs := \
336 $(filter-out $($(class)-extra-specs),$($(class)-srcs))))
338 $(foreach class,$(classes),$(eval $(class)-objs:=$(call src-to-obj,$(class),$($(class)-srcs))))
339 $(foreach class,$(classes),$(eval $(class)-alis:=$(call src-to-ali,$(class),$($(class)-srcs))))
341 # For Ada includes
342 $(foreach class,$(classes),$(eval $(class)-ada-dirs:=$(sort $(dir $(filter %.ads %.adb,$($(class)-srcs)) $($(class)-extra-specs)))))
344 # Save all objs before processing them (for dependency inclusion)
345 originalobjs:=$(foreach var, $(addsuffix -objs,$(classes)), $($(var)))
347 # Call post-processors if they're defined
348 $(foreach class,$(classes),\
349 $(if $(value $(class)-postprocess),$(eval $(call $(class)-postprocess,$($(class)-objs)))))
351 allsrcs:=$(foreach var, $(addsuffix -srcs,$(classes)), $($(var)))
352 allobjs:=$(foreach var, $(addsuffix -objs,$(classes)), $($(var)))
353 alldirs:=$(sort $(abspath $(dir $(allobjs))))
355 # Reads dependencies from an Ada library information (.ali) file
356 # Only basenames (with suffix) are preserved so we have to look the
357 # paths up in $($(stage)-srcs).
358 # $1 stage name
359 # $2 ali file
360 create_ada_deps=$$(if $(2),\
361 gnat.adc \
362 $$(filter \
363 $$(addprefix %/,$$(shell sed -ne's/^D \([^\t]\+\).*$$$$/\1/p' $(2) 2>/dev/null)), \
364 $$($(1)-srcs) $$($(1)-extra-specs)))
366 # macro to define template macros that are used by use_template macro
367 define create_cc_template
368 # $1 obj class
369 # $2 source suffix (c, S, ld, ...)
370 # $3 additional compiler flags
371 # $4 additional dependencies
372 ifn$(EMPTY)def $(1)-objs_$(2)_template
373 de$(EMPTY)fine $(1)-objs_$(2)_template
374 ifn$(EMPTY)eq ($(filter ads adb,$(2)),)
375 $$(call src-to-obj,$1,$$(1).$2): $$(1).$2 $$(call create_ada_deps,$1,$$(call src-to-ali,$1,$$(1).$2)) $(4)
376 @printf " GCC $$$$(subst $$$$(obj)/,,$$$$(@))\n"
377 $(GCC_$(1)) \
378 $$$$(ADAFLAGS_$(1)) $$$$(addprefix -I,$$$$($(1)-ada-dirs)) \
379 $(3) -c -o $$$$@ $$$$<
380 el$(EMPTY)se
381 $$(call src-to-obj,$1,$$(1).$2): $$(1).$2 $(KCONFIG_AUTOHEADER) $(4)
382 @printf " CC $$$$(subst $$$$(obj)/,,$$$$(@))\n"
383 $(CC_$(1)) \
384 -MMD $$$$(CPPFLAGS_$(1)) $$$$(CFLAGS_$(1)) -MT $$$$(@) \
385 $(3) -c -o $$$$@ $$$$<
386 end$(EMPTY)if
387 en$(EMPTY)def
388 end$(EMPTY)if
389 endef
391 filetypes-of-class=$(subst .,,$(sort $(suffix $($(1)-srcs))))
392 $(foreach class,$(classes), \
393 $(foreach type,$(call filetypes-of-class,$(class)), \
394 $(eval $(class)-$(type)-ccopts += $(generic-$(type)-ccopts) $($(class)-generic-ccopts)) \
395 $(if $(generic-objs_$(type)_template_gen),$(eval $(call generic-objs_$(type)_template_gen,$(class))),\
396 $(eval $(call create_cc_template,$(class),$(type),$($(class)-$(type)-ccopts),$($(class)-$(type)-deps))))))
398 foreach-src=$(foreach file,$($(1)-srcs),$(eval $(call $(1)-objs_$(subst .,,$(suffix $(file)))_template,$(basename $(file)))))
399 $(eval $(foreach class,$(classes),$(call foreach-src,$(class))))
401 # To supported complex package initializations, we need to call the
402 # emitted code explicitly. gnatbind gathers all the calls for us
403 # and exports them as a procedure $(stage)_adainit(). Every stage that
404 # uses Ada code has to call it!
405 define gnatbind_template
406 # $1 class
407 $$(obj)/$(1)/b__$(1).adb: $$$$(filter-out $$(obj)/$(1)/b__$(1).ali,$$$$($(1)-alis))
408 @printf " BIND $$(subst $$(obj)/,,$$@)\n"
409 # We have to give gnatbind a simple filename (without leading
410 # path components) so just cd there.
411 cd $$(dir $$@) && \
412 $$(GNATBIND_$(1)) -a -n \
413 --RTS=$$(absobj)/libgnat-$$(ARCH-$(1)-y)/ \
414 -L$(1)_ada -o $$(notdir $$@) \
415 $$(subst $$(dir $$@),,$$^)
416 $$(obj)/$(1)/b__$(1).o: $$(obj)/$(1)/b__$(1).adb
417 @printf " GCC $$(subst $$(obj)/,,$$@)\n"
418 $(GCC_$(1)) $$(ADAFLAGS_$(1)) -c -o $$@ $$<
419 $(1)-objs += $$(obj)/$(1)/b__$(1).o
420 $($(1)-alis): %.ali: %.o ;
421 endef
423 $(eval $(foreach class,$(filter-out libgnat-%,$(classes)), \
424 $(if $($(class)-alis),$(call gnatbind_template,$(class)))))
426 DEPENDENCIES += $(addsuffix .d,$(basename $(allobjs)))
427 -include $(DEPENDENCIES)
429 printall:
430 @$(foreach class,$(classes), echo $(class)-objs: $($(class)-objs) | tr ' ' '\n'; echo; )
431 @echo alldirs: $(alldirs) | tr ' ' '\n'; echo
432 @echo allsrcs: $(allsrcs) | tr ' ' '\n'; echo
433 @echo DEPENDENCIES: $(DEPENDENCIES) | tr ' ' '\n'; echo
434 @$(foreach class,$(special-classes),echo $(class):'$($(class))' | tr ' ' '\n'; echo; )
435 endif
437 ifndef NOMKDIR
438 $(shell mkdir -p $(KCONFIG_SPLITCONFIG) $(objk)/lxdialog $(additional-dirs) $(alldirs))
439 endif
441 $(obj)/project_filelist.txt:
442 if [ -z "$(wildcard $(obj)/coreboot.rom)" ]; then \
443 echo "*** Error: Project must be built before generating file list ***"; \
444 exit 1; \
446 find $(obj) -path "$(obj)/util" -prune -o -path "$(obj)/external" -prune -o -name "*.d" -exec cat {} \; | \
447 sed "s|$(top)/||" | sed 's/[:\\]/ /g' | sed 's/ /\n/g' | sort | uniq | \
448 grep -v '\.o$$' > $(obj)/project_filelist.txt
450 filelist: $(obj)/project_filelist.txt
451 printf "\nFiles used in build:\n"
452 cat $(obj)/project_filelist.txt
454 #works with either exuberant ctags or ctags.emacs
455 ctags-project: clean-ctags $(obj)/project_filelist.txt
456 cat $(obj)/project_filelist.txt | \
457 xargs ctags -o tags
459 cscope-project: clean-cscope $(obj)/project_filelist.txt
460 cat $(obj)/project_filelist.txt | xargs cscope -b
462 cscope:
463 cscope -bR
465 sphinx:
466 $(MAKE) -C Documentation -f Makefile.sphinx html
468 sphinx-lint:
469 $(MAKE) SPHINXOPTS=-W -C Documentation -f Makefile.sphinx html
471 symlink:
472 @echo "Creating Symbolic Links.."; \
473 for link in $(SYMLINK_LIST); do \
474 SYMLINK=`cat $$link`; \
475 REALPATH=`realpath $$link`; \
476 if [ -L "$$SYMLINK" ]; then \
477 continue; \
478 elif [ ! -e "$$SYMLINK" ]; then \
479 echo -e "\tLINK $$SYMLINK -> $$(dirname $$REALPATH)"; \
480 ln -s $$(dirname $$REALPATH) $$SYMLINK; \
481 else \
482 echo -e "\tFAILED: $$SYMLINK exists"; \
483 fi \
484 done
486 clean-symlink:
487 @echo "Deleting symbolic link";\
488 EXISTING_SYMLINKS=`find -L ./src -xtype l | grep -v 3rdparty`; \
489 for link in $$EXISTING_SYMLINKS; do \
490 echo -e "\tUNLINK $$link"; \
491 rm "$$link"; \
492 done
494 clean-for-update:
495 rm -rf $(obj) .xcompile
497 clean: clean-for-update clean-utils clean-payloads
498 rm -f .ccwrap
500 clean-cscope:
501 rm -f cscope.out
503 clean-ctags:
504 rm -f tags
506 clean-utils:
507 $(foreach tool, $(TOOLLIST), \
508 $(MAKE) -C util/$(tool) clean MFLAGS= MAKEFLAGS= ;)
510 distclean-utils:
511 $(foreach tool, $(TOOLLIST), \
512 $(MAKE) -C util/$(tool) distclean MFLAGS= MAKEFLAGS= ; \
513 rm -f /util/$(tool)/junit.xml;)
515 distclean: clean clean-ctags clean-cscope distclean-payloads distclean-utils
516 rm -f .config .config.old ..config.tmp* .kconfig.d .tmpconfig* .ccwrap .xcompile
517 rm -rf coreboot-builds coreboot-builds-chromeos
518 rm -f abuild*.xml junit.xml* util/lint/junit.xml
520 .PHONY: $(PHONY) clean clean-for-update clean-cscope cscope distclean sphinx sphinx-lint
521 .PHONY: ctags-project cscope-project clean-ctags symlink clean-symlink