coreinfo: Fix build output (cosmetical)
This patch aligns the output of coreinfo with the output of libpayload, and switches from using $(Q) to .SILENT Change-Id: I6c3cdda7febc02bab9195fc98f46490c0d478a9a Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/10744 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
657deac015
commit
739a6adbfb
|
@ -43,7 +43,7 @@ MAKEFLAGS += -rR --no-print-directory
|
||||||
|
|
||||||
# Make is silent per default, but 'make V=1' will show all compiler calls.
|
# Make is silent per default, but 'make V=1' will show all compiler calls.
|
||||||
ifneq ($(V),1)
|
ifneq ($(V),1)
|
||||||
Q := @
|
.SILENT:
|
||||||
endif
|
endif
|
||||||
|
|
||||||
HOSTCC ?= gcc
|
HOSTCC ?= gcc
|
||||||
|
@ -72,19 +72,19 @@ include $(src)/.config
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(src)/.config $(obj)/config.h $(OBJS) libpayload
|
$(TARGET): $(src)/.config $(obj)/config.h $(OBJS) libpayload
|
||||||
$(Q)printf " LPCC $(subst $(shell pwd)/,,$(@))\n"
|
printf " LPCC $(subst $(shell pwd)/,,$(@)) (LINK)\n"
|
||||||
$(Q)$(LPCC) -o $@ $(OBJS)
|
$(LPCC) -o $@ $(OBJS)
|
||||||
$(Q)$(OBJCOPY) --only-keep-debug $@ $(TARGET).debug
|
$(OBJCOPY) --only-keep-debug $@ $(TARGET).debug
|
||||||
$(Q)$(OBJCOPY) --strip-debug $@
|
$(OBJCOPY) --strip-debug $@
|
||||||
$(Q)$(OBJCOPY) --add-gnu-debuglink=$(TARGET).debug $@
|
$(OBJCOPY) --add-gnu-debuglink=$(TARGET).debug $@
|
||||||
|
|
||||||
$(obj)/%.S.o: $(src)/%.S libpayload
|
$(obj)/%.S.o: $(src)/%.S libpayload
|
||||||
$(Q)printf " LPAS $(subst $(shell pwd)/,,$(@))\n"
|
printf " LPAS $(subst $(shell pwd)/,,$(@))\n"
|
||||||
$(Q)$(LPAS) -o $@ $<
|
$(LPAS) -o $@ $<
|
||||||
|
|
||||||
$(obj)/%.o: $(src)/%.c libpayload
|
$(obj)/%.o: $(src)/%.c libpayload
|
||||||
$(Q)printf " LPCC $(subst $(shell pwd)/,,$(@))\n"
|
printf " LPCC $(subst $(shell pwd)/,,$(@))\n"
|
||||||
$(Q)$(LPCC) $(CFLAGS) -c -o $@ $<
|
$(LPCC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
else
|
else
|
||||||
all: config
|
all: config
|
||||||
|
@ -92,13 +92,13 @@ endif
|
||||||
|
|
||||||
ifneq ($(strip $(HAVE_LIBPAYLOAD)),)
|
ifneq ($(strip $(HAVE_LIBPAYLOAD)),)
|
||||||
libpayload:
|
libpayload:
|
||||||
$(Q)printf "Found Libpayload $(LIBPAYLOAD_DIR).\n"
|
printf "Found Libpayload $(LIBPAYLOAD_DIR).\n"
|
||||||
else
|
else
|
||||||
libpayload:
|
libpayload:
|
||||||
$(Q)printf "Building libpayload @ $(LIBCONFIG_PATH).\n"
|
printf "Building libpayload @ $(LIBCONFIG_PATH).\n"
|
||||||
$(Q)make -C $(LIBCONFIG_PATH) distclean
|
make -C $(LIBCONFIG_PATH) distclean
|
||||||
$(Q)make -C $(LIBCONFIG_PATH) $(LIB_CONFIG)
|
make -C $(LIBCONFIG_PATH) $(LIB_CONFIG)
|
||||||
$(Q)make -C $(LIBCONFIG_PATH) DESTDIR=$(shell pwd)/$(LIBPAYLOAD_DIR) install
|
make -C $(LIBCONFIG_PATH) DESTDIR=$(shell pwd)/$(LIBPAYLOAD_DIR) install
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(obj)/config.h:
|
$(obj)/config.h:
|
||||||
|
@ -107,11 +107,11 @@ $(obj)/config.h:
|
||||||
$(shell mkdir -p $(obj) $(objk)/lxdialog $(KCONFIG_SPLITCONFIG))
|
$(shell mkdir -p $(obj) $(objk)/lxdialog $(KCONFIG_SPLITCONFIG))
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(Q)rm -rf build/*.elf build/*.o
|
rm -rf build/*.elf build/*.o
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
$(Q)rm -rf build
|
rm -rf build
|
||||||
$(Q)rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig*
|
rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig*
|
||||||
|
|
||||||
include $(srck)/Makefile
|
include $(srck)/Makefile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue