1# $FreeBSD$ 2 3LOADER_CD9660_SUPPORT?= yes 4LOADER_EXT2FS_SUPPORT?= no 5LOADER_MSDOS_SUPPORT?= no 6LOADER_UFS_SUPPORT?= yes 7LOADER_NET_SUPPORT?= yes 8LOADER_NFS_SUPPORT?= yes 9LOADER_TFTP_SUPPORT?= no 10LOADER_GZIP_SUPPORT?= yes 11LOADER_BZIP2_SUPPORT?= no 12 13.include <bsd.init.mk> 14MK_SSP= no 15MAN= 16 17PROG= loader 18NEWVERSWHAT= "Open Firmware loader" ${MACHINE_ARCH} 19INSTALLFLAGS= -b 20 21# Architecture-specific loader code 22SRCS= conf.c metadata.c vers.c start.c 23SRCS+= ucmpdi2.c 24 25.include "${BOOTSRC}/fdt.mk" 26.if ${MK_FDT} == "yes" 27SRCS+= ofwfdt.c 28.endif 29 30HELP_FILES+= ${FDTSRC}/help.fdt 31 32# Always add MI sources 33.include "${BOOTSRC}/loader.mk" 34 35.PATH: ${SYSDIR}/libkern 36 37CFLAGS+= -ffreestanding -msoft-float 38# load address. set in linker script 39RELOC?= 0x1C00000 40CFLAGS+= -DRELOC=${RELOC} 41 42LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc 43 44# Pull in common loader code 45.PATH: ${BOOTSRC}/ofw/common 46.include "${BOOTSRC}/ofw/common/Makefile.inc" 47 48# Open Firmware standalone support library 49LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a 50CFLAGS+= -I${BOOTSRC}/ofw/libofw 51 52DPADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA} 53LDADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA} 54 55.include <bsd.prog.mk> 56