3 LOADER_CD9660_SUPPORT?= yes
4 LOADER_EXT2FS_SUPPORT?= no
5 LOADER_MSDOS_SUPPORT?= no
6 LOADER_UFS_SUPPORT?= yes
7 LOADER_NET_SUPPORT?= yes
8 LOADER_NFS_SUPPORT?= yes
9 LOADER_TFTP_SUPPORT?= no
10 LOADER_GZIP_SUPPORT?= yes
11 LOADER_BZIP2_SUPPORT?= no
13 .include <bsd.init.mk>
18 NEWVERSWHAT= "Open Firmware loader" ${MACHINE_ARCH}
21 # Architecture-specific loader code
22 SRCS= conf.c metadata.c vers.c start.c
25 .include "${BOOTSRC}/fdt.mk"
26 .if ${MK_FDT} == "yes"
30 HELP_FILES+= ${FDTSRC}/help.fdt
32 # Always add MI sources
33 .include "${BOOTSRC}/loader.mk"
35 .PATH: ${SYSDIR}/libkern
37 CFLAGS+= -ffreestanding -msoft-float
38 # load address. set in linker script
40 CFLAGS+= -DRELOC=${RELOC}
42 LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
44 # Pull in common loader code
45 .PATH: ${BOOTSRC}/ofw/common
46 .include "${BOOTSRC}/ofw/common/Makefile.inc"
48 # Open Firmware standalone support library
49 LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a
50 CFLAGS+= -I${BOOTSRC}/ofw/libofw
52 DPADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
53 LDADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
55 .include <bsd.prog.mk>