# ========================================================================== # Generating modules.builtin # ========================================================================== src := $(obj) PHONY := __modbuiltin __modbuiltin: -include include/config/auto.conf # tristate.conf sets tristate variables to uppercase 'Y' or 'M' # That way, we get the list of built-in modules in obj-Y -include include/config/tristate.conf include scripts/Kbuild.include ifneq ($(KBUILD_SRC),) # Create output directory if not already present _dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj)) endif # The filename Kbuild has precedence over Makefile kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile) include $(kbuild-file) include scripts/Makefile.lib __subdir-Y := $(patsubst %/,%,$(filter %/, $(obj-Y))) subdir-Y += $(__subdir-Y) subdir-ym := $(sort $(subdir-y) $(subdir-Y) $(subdir-m)) subdir-ym := $(addprefix $(obj)/,$(subdir-ym)) obj-Y := $(addprefix $(obj)/,$(obj-Y)) modbuiltin-subdirs := $(patsubst %,%/modules.builtin, $(subdir-ym)) modbuiltin-mods := $(filter %.ko, $(obj-Y:.o=.ko)) modbuiltin-target := $(obj)/modules.builtin __modbuiltin: $(modbuiltin-target) $(subdir-ym) @: $(modbuiltin-target): $(subdir-ym) FORCE $(Q)(for m in $(modbuiltin-mods); do echo kernel/$$m; done; \ cat /dev/null $(modbuiltin-subdirs)) > $@ PHONY += FORCE FORCE: # Descending # --------------------------------------------------------------------------- PHONY += $(subdir-ym) $(subdir-ym): $(Q)$(MAKE) $(modbuiltin)=$@ # Declare the contents of the .PHONY variable as phony. We keep that # information in a variable se we can use it in if_changed and friends. .PHONY: $(PHONY) ='/cgit.cgi/linux/net-next.git/tree/tools/perf/pmu-events/arch/x86/westmereep-sp/pipeline.json?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/pmu-events/arch/x86/westmereep-sp/pipeline.json?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/perf/pmu-events/arch/x86/westmereep-sp/pipeline.json?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/perf/pmu-events/arch/x86/westmereep-sp/pipeline.json'> <input type='hidden' name='id' value='9a7382662fc85b29f2b0dc4e7c61896cbd06593d'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>perf</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/pmu-events?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>pmu-events</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/pmu-events/arch?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>arch</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/pmu-events/arch/x86?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>x86</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/pmu-events/arch/x86/westmereep-sp?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>westmereep-sp</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/pmu-events/arch/x86/westmereep-sp/pipeline.json?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d'>pipeline.json</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/pmu-events/arch/x86/westmereep-sp/pipeline.json?id=9a7382662fc85b29f2b0dc4e7c61896cbd06593d&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>