5 LOADER_MSDOS_SUPPORT?= yes
6 LOADER_UFS_SUPPORT?= yes
7 LOADER_CD9660_SUPPORT?= no
8 LOADER_EXT2FS_SUPPORT?= no
10 .include <bsd.init.mk>
14 SHLIB_NAME= userboot.so
29 SRCS+= elf32_freebsd.c
30 SRCS+= elf64_freebsd.c
33 SRCS+= userboot_cons.c
34 SRCS+= userboot_disk.c
38 CFLAGS+= -I${BOOTSRC}/userboot
40 CWARNFLAGS.main.c += -Wno-implicit-function-declaration
42 LDFLAGS+= -nostdlib -Wl,-Bsymbolic
44 NEWVERSWHAT= "User boot" ${MACHINE_CPUARCH}
47 CFLAGS+= -DUSERBOOT_ZFS_SUPPORT
48 LIBZFSBOOT= ${BOOTOBJ}/zfs/libzfsboot.a
51 # Always add MI sources
52 .include "${BOOTSRC}/loader.mk"
54 DPADD+= ${LIBFICL} ${LIBZFSBOOT} ${LIBSA}
55 LDADD+= ${LIBFICL} ${LIBZFSBOOT} ${LIBSA}