1# $NetBSD: Makefile,v 1.9 2022/04/02 11:16:08 skrll Exp $ 2 3PROG= bootarm.efi 4OBJFMT= binary 5NEWVERSWHAT= "efiboot (arm)" 6GNUEFIARCH= arm 7LIBGNUEFI_ARCH= arm 8OBJCOPY_FORMAT= -O binary 9 10EFIBOOT_FDT= yes 11 12EXTRA_SOURCES= efibootarm.c 13EXTRA_SOURCES+= cache.S 14 15COPTS+= -mfloat-abi=soft -mno-unaligned-access -mlittle-endian 16COPTS+= -ffreestanding -fno-unwind-tables 17AFLAGS+= -mlittle-endian 18CFLAGS+= -DEFIBOOT_ALIGN=0x1000000 19CFLAGS+= -DEFIBOOT_RUNTIME_ADDRESS=0x00010000U 20CFLAGS+= -DEFIBOOT_RUNTIME_SIZE=0x7ff0000U 21CFLAGS+= -DEFIBOOT_MODULE_MACHINE=\"evbarm\" 22#CPPFLAGS.efifdt.c+= -Wconversion 23LDFLAGS+= -N -EL 24 25.include "${.CURDIR}/../Makefile.efiboot" 26 27release: check_RELEASEDIR 28 ${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \ 29 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc 30