blob: ad55a14a144516871e62f05f5906afb1f7954c33 [file] [log] [blame]
Alexander Grafb462fcd2013-04-22 21:03:39 +02001all: 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=main.o bootmap.o sclp-ascii.o virtio.o start.o
13CFLAGS += -fno-stack-protector
14# XXX find a more clever to locate the bootloader
15LDFLAGS += -Wl,-Ttext,0x7e00000,-Tbss,0x7f00000 -nostdlib
16
17build-all: s390-ccw.img
18
19s390-ccw.elf: $(OBJECTS)
20 $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS)," Building $(TARGET_DIR)$@")
21
22s390-ccw.img: s390-ccw.elf
Christian Borntraeger63288012013-04-23 01:23:05 +000023 $(call quiet-command,strip $< -o $@," Stripping $(TARGET_DIR)$@")
Alexander Grafb462fcd2013-04-22 21:03:39 +020024
25clean:
Christian Borntraeger63288012013-04-23 01:23:05 +000026 rm -f *.o *.d *.img *.elf *~