[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 31/51] pc-bios/vof: Adopt meson style Make output
From: |
Alex Bennée |
Subject: |
[PATCH v1 31/51] pc-bios/vof: Adopt meson style Make output |
Date: |
Thu, 29 Sep 2022 12:42:11 +0100 |
From: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
pc-bios/vof/Makefile | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/pc-bios/vof/Makefile b/pc-bios/vof/Makefile
index 990f26af31..be8bd96294 100644
--- a/pc-bios/vof/Makefile
+++ b/pc-bios/vof/Makefile
@@ -2,19 +2,26 @@ include config.mak
VPATH=$(SRC_DIR)
all: vof.bin
+NULL :=
+SPACE := $(NULL) #
+TARGET_PREFIX := $(patsubst %/,%:$(SPACE),$(TARGET_DIR))
+
+quiet-@ = $(if $(V),,@$(if $1,,printf "%s\n" "$(TARGET_PREFIX)$1" && ))
+quiet-command = $(call quiet-@,$2 $@)$1
+
EXTRA_CFLAGS += -mcpu=power4
%.o: %.S
- $(CC) $(EXTRA_CFLAGS) -c -o $@ $<
+ $(call quiet-command, $(CC) $(EXTRA_CFLAGS) -c -o $@ $<,Assembling)
%.o: %.c
- $(CC) $(EXTRA_CFLAGS) -c -fno-stack-protector -o $@ $<
+ $(call quiet-command, $(CC) $(EXTRA_CFLAGS) -c -fno-stack-protector -o
$@ $<,Compiling)
vof.elf: entry.o main.o ci.o bootmem.o libc.o
- $(LD) -nostdlib -e_start -T$(SRC_DIR)/vof.lds -EB -o $@ $^
+ $(call quiet-command, $(LD) -nostdlib -e_start -T$(SRC_DIR)/vof.lds -EB
-o $@ $^,Linking)
%.bin: %.elf
- $(OBJCOPY) -O binary -j .text -j .data -j .toc -j .got2 $^ $@
+ $(call quiet-command, $(OBJCOPY) -O binary -j .text -j .data -j .toc -j
.got2 $^ $@,Extracting raw object)
clean:
rm -f *.o vof.bin vof.elf *~
--
2.34.1
- [PATCH v1 39/51] contrib/plugins: reset skip when matching in execlog, (continued)
- [PATCH v1 39/51] contrib/plugins: reset skip when matching in execlog, Alex Bennée, 2022/09/29
- [PATCH v1 35/51] plugins: extend execlog to filter matches, Alex Bennée, 2022/09/29
- [PATCH v1 26/51] configure: unify creation of cross-compilation Makefiles, Alex Bennée, 2022/09/29
- [PATCH v1 22/51] tests/tcg: unify ppc64 and ppc64le Makefiles, Alex Bennée, 2022/09/29
- [PATCH v1 32/51] monitor: expose monitor_puts to rest of code, Alex Bennée, 2022/09/29
- [PATCH v1 41/51] semihosting: update link to spec, Alex Bennée, 2022/09/29
- [PATCH v1 30/51] pc-bios/s390-ccw: Adopt meson style Make output, Alex Bennée, 2022/09/29
- [PATCH v1 51/51] contrib/gitdm: add China Telecom to the domain map, Alex Bennée, 2022/09/29
- [PATCH v1 40/51] docs/devel: document the test plugins, Alex Bennée, 2022/09/29
- [PATCH v1 46/51] accel/kvm: move kvm_update_guest_debug to inline stub, Alex Bennée, 2022/09/29
- [PATCH v1 31/51] pc-bios/vof: Adopt meson style Make output,
Alex Bennée <=
- [PATCH v1 45/51] gdbstub: move guest debug support check to ops, Alex Bennée, 2022/09/29
- [PATCH v1 37/51] docs/devel: clean-up qemu invocations in tcg-plugins, Alex Bennée, 2022/09/29