MAINTAINERS: Make section QOM cover hw/core/*bus.c as well
[qemu/armbru.git] / pc-bios / s390-ccw / Makefile
bloba048b6b077a94a41f9fa41e3860bc44795fc3eee
1 all: build-all
2 # Dummy command so that make thinks it has done something
3 @true
5 include ../../config-host.mak
6 include $(SRC_PATH)/rules.mak
8 $(call set-vpath, $(SRC_PATH)/pc-bios/s390-ccw)
10 .PHONY : all clean build-all
12 OBJECTS = start.o main.o bootmap.o jump2ipl.o sclp.o menu.o \
13 virtio.o virtio-scsi.o virtio-blkdev.o libc.o cio.o dasd-ipl.o
15 QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS))
16 QEMU_CFLAGS += -ffreestanding -fno-delete-null-pointer-checks -msoft-float
17 QEMU_CFLAGS += -march=z900 -fPIE -fno-strict-aliasing
18 QEMU_CFLAGS += -fno-asynchronous-unwind-tables
19 QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector)
20 LDFLAGS += -Wl,-pie -nostdlib
22 build-all: s390-ccw.img s390-netboot.img
24 s390-ccw.elf: $(OBJECTS)
25 $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS),"BUILD","$(TARGET_DIR)$@")
27 STRIP ?= strip
29 s390-ccw.img: s390-ccw.elf
30 $(call quiet-command,$(STRIP) --strip-unneeded $< -o $@,"STRIP","$(TARGET_DIR)$@")
32 $(OBJECTS): Makefile
34 ifneq ($(wildcard $(SRC_PATH)/roms/SLOF/lib/libnet),)
35 include $(SRC_PATH)/pc-bios/s390-ccw/netboot.mak
36 else
37 s390-netboot.img:
38 @echo "s390-netboot.img not built since roms/SLOF/ is not available."
39 endif
41 clean:
42 rm -f *.o *.d *.img *.elf *~ *.a