1all: build-all 2# Dummy command so that make thinks it has done something 3 @true 4 5include ../../config-host.mak 6include $(SRC_PATH)/rules.mak 7 8$(call set-vpath, $(SRC_PATH)/pc-bios/s390-ccw) 9 10.PHONY : all clean build-all 11 12OBJECTS = start.o main.o bootmap.o sclp.o virtio.o virtio-scsi.o virtio-blkdev.o 13QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS)) 14QEMU_CFLAGS += -ffreestanding -fno-delete-null-pointer-checks -msoft-float 15QEMU_CFLAGS += -march=z900 -fPIE -fno-strict-aliasing 16QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector) 17LDFLAGS += -Wl,-pie -nostdlib 18 19build-all: s390-ccw.img s390-netboot.img 20 21s390-ccw.elf: $(OBJECTS) 22 $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS),"BUILD","$(TARGET_DIR)$@") 23 24STRIP ?= strip 25 26s390-ccw.img: s390-ccw.elf 27 $(call quiet-command,$(STRIP) --strip-unneeded $< -o $@,"STRIP","$(TARGET_DIR)$@") 28 29$(OBJECTS): Makefile 30 31ifneq ($(wildcard $(SRC_PATH)/roms/SLOF/lib/libnet),) 32include $(SRC_PATH)/pc-bios/s390-ccw/netboot.mak 33else 34s390-netboot.img: 35 @echo "s390-netboot.img not built since roms/SLOF/ is not available." 36endif 37 38clean: 39 $(RM) *.o *.d *.img *.elf *~ *.a 40