1*ca987d46SWarner Losh# $FreeBSD$ 2*ca987d46SWarner Losh 3*ca987d46SWarner Losh.include <bsd.init.mk> 4*ca987d46SWarner Losh 5*ca987d46SWarner Losh.PATH: ${LDRSRC} 6*ca987d46SWarner Losh 7*ca987d46SWarner LoshLIB= efi_fdt 8*ca987d46SWarner LoshINTERNALLIB= 9*ca987d46SWarner LoshWARNS?= 6 10*ca987d46SWarner Losh 11*ca987d46SWarner LoshSRCS= efi_fdt.c 12*ca987d46SWarner Losh 13*ca987d46SWarner LoshCFLAGS+= -ffreestanding 14*ca987d46SWarner Losh.if ${MACHINE_CPUARCH} == "aarch64" 15*ca987d46SWarner LoshCFLAGS+= -mgeneral-regs-only 16*ca987d46SWarner Losh.else 17*ca987d46SWarner LoshCFLAGS+= -msoft-float 18*ca987d46SWarner Losh.endif 19*ca987d46SWarner Losh 20*ca987d46SWarner Losh# EFI library headers 21*ca987d46SWarner LoshCFLAGS+= -I${EFISRC}/include 22*ca987d46SWarner LoshCFLAGS+= -I${EFISRC}/include/${MACHINE} 23*ca987d46SWarner Losh 24*ca987d46SWarner Losh# libfdt headers 25*ca987d46SWarner LoshCFLAGS+= -I${FDTSRC} 26*ca987d46SWarner Losh 27*ca987d46SWarner Losh# Pick up the bootstrap header for some interface items 28*ca987d46SWarner LoshCFLAGS+= -I${LDRSRC} 29*ca987d46SWarner Losh 30*ca987d46SWarner Losh.include <bsd.lib.mk> 31