diff options
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r-- | scripts/Makefile.lib | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 2cb4935e8..e1e0ba481 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -18,7 +18,7 @@ lib-y := $(filter-out $(obj-y), $(sort $(lib-y) $(lib-m))) | |||
18 | # --------------------------------------------------------------------------- | 18 | # --------------------------------------------------------------------------- |
19 | # o if we encounter foo/ in $(obj-y), replace it by foo/built-in.o | 19 | # o if we encounter foo/ in $(obj-y), replace it by foo/built-in.o |
20 | # and add the directory to the list of dirs to descend into: $(subdir-y) | 20 | # and add the directory to the list of dirs to descend into: $(subdir-y) |
21 | # o if we encounter foo/ in $(obj-m), remove it from $(obj-m) | 21 | # o if we encounter foo/ in $(obj-m), remove it from $(obj-m) |
22 | # and add the directory to the list of dirs to descend into: $(subdir-m) | 22 | # and add the directory to the list of dirs to descend into: $(subdir-m) |
23 | 23 | ||
24 | __subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y))) | 24 | __subdir-y := $(patsubst %/,%,$(filter %/, $(obj-y))) |
@@ -32,7 +32,7 @@ obj-m := $(filter-out %/, $(obj-m)) | |||
32 | 32 | ||
33 | subdir-ym := $(sort $(subdir-y) $(subdir-m)) | 33 | subdir-ym := $(sort $(subdir-y) $(subdir-m)) |
34 | 34 | ||
35 | # if $(foo-objs) exists, foo.o is a composite object | 35 | # if $(foo-objs) exists, foo.o is a composite object |
36 | multi-used-y := $(sort $(foreach m,$(obj-y), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m)))) | 36 | multi-used-y := $(sort $(foreach m,$(obj-y), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m)))) |
37 | multi-used-m := $(sort $(foreach m,$(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m)))) | 37 | multi-used-m := $(sort $(foreach m,$(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))), $(m)))) |
38 | multi-used := $(multi-used-y) $(multi-used-m) | 38 | multi-used := $(multi-used-y) $(multi-used-m) |
@@ -76,7 +76,7 @@ obj-dirs := $(addprefix $(obj)/,$(obj-dirs)) | |||
76 | 76 | ||
77 | # These flags are needed for modversions and compiling, so we define them here | 77 | # These flags are needed for modversions and compiling, so we define them here |
78 | # already | 78 | # already |
79 | # $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will | 79 | # $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will |
80 | # end up in (or would, if it gets compiled in) | 80 | # end up in (or would, if it gets compiled in) |
81 | # Note: It's possible that one object gets potentially linked into more | 81 | # Note: It's possible that one object gets potentially linked into more |
82 | # than one module. In that case KBUILD_MODNAME will be set to foo_bar, | 82 | # than one module. In that case KBUILD_MODNAME will be set to foo_bar, |
@@ -134,7 +134,7 @@ $(obj)/%:: $(src)/%_shipped | |||
134 | 134 | ||
135 | # Commands useful for building a boot image | 135 | # Commands useful for building a boot image |
136 | # =========================================================================== | 136 | # =========================================================================== |
137 | # | 137 | # |
138 | # Use as following: | 138 | # Use as following: |
139 | # | 139 | # |
140 | # target: source(s) FORCE | 140 | # target: source(s) FORCE |
@@ -148,7 +148,7 @@ $(obj)/%:: $(src)/%_shipped | |||
148 | 148 | ||
149 | quiet_cmd_ld = LD $@ | 149 | quiet_cmd_ld = LD $@ |
150 | cmd_ld = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) \ | 150 | cmd_ld = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) \ |
151 | $(filter-out FORCE,$^) -o $@ | 151 | $(filter-out FORCE,$^) -o $@ |
152 | 152 | ||
153 | # Objcopy | 153 | # Objcopy |
154 | # --------------------------------------------------------------------------- | 154 | # --------------------------------------------------------------------------- |