Makefile: remove unnecessary prints
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
606039e3b8
commit
e85ba55593
2 changed files with 28 additions and 6 deletions
|
|
@ -31,9 +31,13 @@ mod-objs := $(foreach m,$(mod-names), \
|
|||
deps := $(real-objs-y:.o=.d) $(mod-objs:.o=.d)
|
||||
|
||||
ifeq ($(obj),.)
|
||||
.PHONY: _all
|
||||
_all: $(subdir-objs-y)
|
||||
@true
|
||||
else
|
||||
.PHONY: _all
|
||||
_all: $(obj)/built-in.o
|
||||
@true
|
||||
endif
|
||||
|
||||
$(obj)/%.o: $(obj)/%.c
|
||||
|
|
@ -52,7 +56,7 @@ $(obj)/built-in.o: $(real-objs-y) $(subdir-objs-y)
|
|||
|
||||
define mod_rule
|
||||
$(obj)/$(1).ko: $(addprefix $(obj)/, $(or $($(1)-objs),$($(1)-y),$(1).o))
|
||||
$$(Q)echo " MODLD $$@"
|
||||
$$(Q)echo " LD [M] $$@"
|
||||
$$(Q)$$(LD) -r -o $$@ $$^
|
||||
endef
|
||||
|
||||
|
|
@ -66,6 +70,7 @@ $(foreach m,$(mod-names),$(eval $(call mod_cflags,$(m))))
|
|||
|
||||
.PHONY: _modules
|
||||
_modules: $(mod-targets) $(subdir-m) $(subdir-y)
|
||||
@true
|
||||
|
||||
.PHONY: _clean
|
||||
_clean: $(subdir-y) $(subdir-m)
|
||||
|
|
|
|||
Loading…
Reference in a new issue