diff options
| -rw-r--r-- | scripts/Makefile.build | 24 | ||||
| -rw-r--r-- | scripts/Makefile.lib | 8 |
2 files changed, 16 insertions, 16 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 93d05e30bdb1..8c1287f04bed 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
| @@ -119,17 +119,17 @@ modkern_cflags = \ | |||
| 119 | $(KBUILD_CFLAGS_KERNEL) $(CFLAGS_KERNEL)) | 119 | $(KBUILD_CFLAGS_KERNEL) $(CFLAGS_KERNEL)) |
| 120 | quiet_modtag := $(empty) $(empty) | 120 | quiet_modtag := $(empty) $(empty) |
| 121 | 121 | ||
| 122 | $(real-objs-m) : part-of-module := y | 122 | $(real-obj-m) : part-of-module := y |
| 123 | $(real-objs-m:.o=.i) : part-of-module := y | 123 | $(real-obj-m:.o=.i) : part-of-module := y |
| 124 | $(real-objs-m:.o=.s) : part-of-module := y | 124 | $(real-obj-m:.o=.s) : part-of-module := y |
| 125 | $(real-objs-m:.o=.lst): part-of-module := y | 125 | $(real-obj-m:.o=.lst): part-of-module := y |
| 126 | 126 | ||
| 127 | $(real-objs-m) : quiet_modtag := [M] | 127 | $(real-obj-m) : quiet_modtag := [M] |
| 128 | $(real-objs-m:.o=.i) : quiet_modtag := [M] | 128 | $(real-obj-m:.o=.i) : quiet_modtag := [M] |
| 129 | $(real-objs-m:.o=.s) : quiet_modtag := [M] | 129 | $(real-obj-m:.o=.s) : quiet_modtag := [M] |
| 130 | $(real-objs-m:.o=.lst): quiet_modtag := [M] | 130 | $(real-obj-m:.o=.lst): quiet_modtag := [M] |
| 131 | 131 | ||
| 132 | $(obj-m) : quiet_modtag := [M] | 132 | $(obj-m) : quiet_modtag := [M] |
| 133 | 133 | ||
| 134 | quiet_cmd_cc_s_c = CC $(quiet_modtag) $@ | 134 | quiet_cmd_cc_s_c = CC $(quiet_modtag) $@ |
| 135 | cmd_cc_s_c = $(CC) $(c_flags) $(DISABLE_LTO) -fverbose-asm -S -o $@ $< | 135 | cmd_cc_s_c = $(CC) $(c_flags) $(DISABLE_LTO) -fverbose-asm -S -o $@ $< |
| @@ -333,8 +333,8 @@ $(obj)/%.lst: $(src)/%.c FORCE | |||
| 333 | 333 | ||
| 334 | modkern_aflags := $(KBUILD_AFLAGS_KERNEL) $(AFLAGS_KERNEL) | 334 | modkern_aflags := $(KBUILD_AFLAGS_KERNEL) $(AFLAGS_KERNEL) |
| 335 | 335 | ||
| 336 | $(real-objs-m) : modkern_aflags := $(KBUILD_AFLAGS_MODULE) $(AFLAGS_MODULE) | 336 | $(real-obj-m) : modkern_aflags := $(KBUILD_AFLAGS_MODULE) $(AFLAGS_MODULE) |
| 337 | $(real-objs-m:.o=.s): modkern_aflags := $(KBUILD_AFLAGS_MODULE) $(AFLAGS_MODULE) | 337 | $(real-obj-m:.o=.s): modkern_aflags := $(KBUILD_AFLAGS_MODULE) $(AFLAGS_MODULE) |
| 338 | 338 | ||
| 339 | # .S file exports must have their C prototypes defined in asm/asm-prototypes.h | 339 | # .S file exports must have their C prototypes defined in asm/asm-prototypes.h |
| 340 | # or a file that it includes, in order to get versioned symbols. We build a | 340 | # or a file that it includes, in order to get versioned symbols. We build a |
| @@ -412,7 +412,7 @@ endif | |||
| 412 | $(obj)/%.o: $(src)/%.S $(objtool_dep) FORCE | 412 | $(obj)/%.o: $(src)/%.S $(objtool_dep) FORCE |
| 413 | $(call if_changed_rule,as_o_S) | 413 | $(call if_changed_rule,as_o_S) |
| 414 | 414 | ||
| 415 | targets += $(real-objs-y) $(real-objs-m) $(lib-y) | 415 | targets += $(real-obj-y) $(real-obj-m) $(lib-y) |
| 416 | targets += $(extra-y) $(MAKECMDGOALS) $(always) | 416 | targets += $(extra-y) $(MAKECMDGOALS) $(always) |
| 417 | 417 | ||
| 418 | # Linker scripts preprocessor (.lds.S -> .lds) | 418 | # Linker scripts preprocessor (.lds.S -> .lds) |
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 1e35c8bb11e0..975d436046bb 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
| @@ -52,8 +52,8 @@ single-used-m := $(sort $(filter-out $(multi-used-m),$(obj-m))) | |||
| 52 | subdir-obj-y := $(filter %/built-in.a, $(obj-y)) | 52 | subdir-obj-y := $(filter %/built-in.a, $(obj-y)) |
| 53 | 53 | ||
| 54 | # Replace multi-part objects by their individual parts, look at local dir only | 54 | # Replace multi-part objects by their individual parts, look at local dir only |
| 55 | 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))) | 55 | real-obj-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))) |
| 56 | 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))) | 56 | real-obj-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))) |
| 57 | 57 | ||
| 58 | # DTB | 58 | # DTB |
| 59 | # If CONFIG_OF_ALL_DTBS is enabled, all DT blobs are built | 59 | # If CONFIG_OF_ALL_DTBS is enabled, all DT blobs are built |
| @@ -70,8 +70,8 @@ obj-y := $(addprefix $(obj)/,$(obj-y)) | |||
| 70 | obj-m := $(addprefix $(obj)/,$(obj-m)) | 70 | obj-m := $(addprefix $(obj)/,$(obj-m)) |
| 71 | lib-y := $(addprefix $(obj)/,$(lib-y)) | 71 | lib-y := $(addprefix $(obj)/,$(lib-y)) |
| 72 | subdir-obj-y := $(addprefix $(obj)/,$(subdir-obj-y)) | 72 | subdir-obj-y := $(addprefix $(obj)/,$(subdir-obj-y)) |
| 73 | real-objs-y := $(addprefix $(obj)/,$(real-objs-y)) | 73 | real-obj-y := $(addprefix $(obj)/,$(real-obj-y)) |
| 74 | real-objs-m := $(addprefix $(obj)/,$(real-objs-m)) | 74 | real-obj-m := $(addprefix $(obj)/,$(real-obj-m)) |
| 75 | single-used-m := $(addprefix $(obj)/,$(single-used-m)) | 75 | single-used-m := $(addprefix $(obj)/,$(single-used-m)) |
| 76 | multi-used-y := $(addprefix $(obj)/,$(multi-used-y)) | 76 | multi-used-y := $(addprefix $(obj)/,$(multi-used-y)) |
| 77 | multi-used-m := $(addprefix $(obj)/,$(multi-used-m)) | 77 | multi-used-m := $(addprefix $(obj)/,$(multi-used-m)) |
