summaryrefslogtreecommitdiffstats
path: root/pc-bios
diff options
context:
space:
mode:
authorPaolo Bonzini2022-09-29 13:42:11 +0200
committerAlex Bennée2022-10-06 12:53:40 +0200
commit3cc70a9994bf0967c7a2bda539ed43926fb4c2cb (patch)
tree988081bb9b732856e7b9207ea8fc153cc235ec46 /pc-bios
parentpc-bios/s390-ccw: Adopt meson style Make output (diff)
downloadqemu-3cc70a9994bf0967c7a2bda539ed43926fb4c2cb.tar.gz
qemu-3cc70a9994bf0967c7a2bda539ed43926fb4c2cb.tar.xz
qemu-3cc70a9994bf0967c7a2bda539ed43926fb4c2cb.zip
pc-bios/vof: Adopt meson style Make output
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220929114231.583801-32-alex.bennee@linaro.org>
Diffstat (limited to 'pc-bios')
-rw-r--r--pc-bios/vof/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/pc-bios/vof/Makefile b/pc-bios/vof/Makefile
index 4e59009e67..d1eb6ced7e 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 *~