Root/
Source at commit b13e7eb172b6f08e5fc22da162bdde5fcde201b5 created 11 years 11 months ago. By Maarten ter Huurne, fbcon: Add 6x10 font | |
---|---|
1 | # ========================================================================== |
2 | # Generating modules.builtin |
3 | # ========================================================================== |
4 | |
5 | src := $(obj) |
6 | |
7 | PHONY := __modbuiltin |
8 | __modbuiltin: |
9 | |
10 | -include include/config/auto.conf |
11 | # tristate.conf sets tristate variables to uppercase 'Y' or 'M' |
12 | # That way, we get the list of built-in modules in obj-Y |
13 | -include include/config/tristate.conf |
14 | |
15 | include scripts/Kbuild.include |
16 | |
17 | ifneq ($(KBUILD_SRC),) |
18 | # Create output directory if not already present |
19 | _dummy := $(shell [ -d $(obj) ] || mkdir -p $(obj)) |
20 | endif |
21 | |
22 | # The filename Kbuild has precedence over Makefile |
23 | kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) |
24 | kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile) |
25 | include $(kbuild-file) |
26 | |
27 | include scripts/Makefile.lib |
28 | __subdir-Y := $(patsubst %/,%,$(filter %/, $(obj-Y))) |
29 | subdir-Y += $(__subdir-Y) |
30 | subdir-ym := $(sort $(subdir-y) $(subdir-Y) $(subdir-m)) |
31 | subdir-ym := $(addprefix $(obj)/,$(subdir-ym)) |
32 | obj-Y := $(addprefix $(obj)/,$(obj-Y)) |
33 | |
34 | modbuiltin-subdirs := $(patsubst %,%/modules.builtin, $(subdir-ym)) |
35 | modbuiltin-mods := $(filter %.ko, $(obj-Y:.o=.ko)) |
36 | modbuiltin-target := $(obj)/modules.builtin |
37 | |
38 | __modbuiltin: $(modbuiltin-target) $(subdir-ym) |
39 | @: |
40 | |
41 | $(modbuiltin-target): $(subdir-ym) FORCE |
42 | $(Q)(for m in $(modbuiltin-mods); do echo kernel/$$m; done; \ |
43 | cat /dev/null $(modbuiltin-subdirs)) > $@ |
44 | |
45 | PHONY += FORCE |
46 | |
47 | FORCE: |
48 | |
49 | # Descending |
50 | # --------------------------------------------------------------------------- |
51 | |
52 | PHONY += $(subdir-ym) |
53 | $(subdir-ym): |
54 | $(Q)$(MAKE) $(modbuiltin)=$@ |
55 | |
56 | |
57 | # Declare the contents of the .PHONY variable as phony. We keep that |
58 | # information in a variable se we can use it in if_changed and friends. |
59 | |
60 | .PHONY: $(PHONY) |
61 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9