1# $NetBSD: Makefile,v 1.3 2021/10/06 11:26:21 jmcneill Exp $ 2 3PROG= bootriscv64.efi 4OBJFMT= binary 5NEWVERSWHAT= "efiboot (riscv64)" 6GNUEFIARCH= riscv64 7LIBGNUEFI_ARCH= riscv64 8OBJCOPY_FORMAT= -O binary 9 10EFIBOOT_FDT= yes 11 12EXTRA_SOURCES= efibootriscv64.c 13 14COPTS+= -mcmodel=medany 15AFLAGS+= -x assembler-with-cpp 16CFLAGS+= -DEFIBOOT_ALIGN=0x200000 17CFLAGS+= -DEFIBOOT_MODULE_MACHINE=\"riscv\" 18 19.include "${.CURDIR}/../Makefile.efiboot" 20 21release: check_RELEASEDIR 22 ${HOST_INSTALL_FILE} -m ${BINMODE} ${PROG} \ 23 ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/misc 24