1 # To specify cross compiler prefix, use CROSS_PREFIX=
2 # $ make CROSS_PREFIX=s390x-linux-gnu-
6 fwdir
=..
/..
/..
/pc-bios
/s390-ccw
8 CFLAGS
+=-ffreestanding
-fno-delete-null-pointer-checks
-fPIE
-Os \
9 -msoft-float
-march
=z900
-fno-asynchronous-unwind-tables
-Wl
,-pie \
10 -Wl
,--build-id
=none
-nostdlib
13 echo
"$$__note" > header.tmp
14 xxd
-i
$< | sed
-e
's/.*int.*//' >> header.tmp
17 # We use common-page-size=16 to avoid big padding in the ELF file
19 $(CROSS_PREFIX
)gcc
$(CFLAGS
) -I
$(fwdir
) $(fwdir
)/start.S \
20 $(fwdir
)/sclp.c
-Wl
,-zcommon-page-size
=16 -o
$@
$<
21 $(CROSS_PREFIX
)strip $@