virtio-pci: don't crash on illegal length
[qemu/cris-port.git] / pc-bios / s390-ccw / Makefile
blob746603a315c8df154f6204ff88b62b1abc9e36a8
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 sclp-ascii.o virtio.o
13 CFLAGS += -fPIE -fno-stack-protector -ffreestanding -fno-delete-null-pointer-checks
14 LDFLAGS += -Wl,-pie -nostdlib
16 build-all: s390-ccw.img
18 s390-ccw.elf: $(OBJECTS)
19 $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS)," Building $(TARGET_DIR)$@")
21 s390-ccw.img: s390-ccw.elf
22 $(call quiet-command,strip --strip-unneeded $< -o $@," Stripping $(TARGET_DIR)$@")
24 $(OBJECTS): Makefile
26 clean:
27 rm -f *.o *.d *.img *.elf *~