1# $FreeBSD$ 2 3LOADER_DISK_SUPPORT?= yes 4LOADER_CD9660_SUPPORT?= yes 5LOADER_MSDOS_SUPPORT?= no 6LOADER_EXT2FS_SUPPORT?= yes 7LOADER_UFS_SUPPORT?= yes 8LOADER_NET_SUPPORT?= yes 9LOADER_NFS_SUPPORT?= yes 10LOADER_TFTP_SUPPORT?= no 11LOADER_GZIP_SUPPORT?= yes 12LOADER_BZIP2_SUPPORT?= no 13 14.include <bsd.init.mk> 15 16PROG= loader.kboot 17NEWVERSWHAT= "kboot loader" ${MACHINE_ARCH} 18INSTALLFLAGS= -b 19 20# Architecture-specific loader code 21SRCS= \ 22 conf.c \ 23 crt1.c \ 24 gfx_fb_stub.c \ 25 host_syscalls.c \ 26 hostcons.c \ 27 hostdisk.c \ 28 init.c \ 29 kbootfdt.c \ 30 main.c \ 31 termios.c \ 32 vers.c \ 33 34CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken 35 36.include "${BOOTSRC}/fdt.mk" 37 38.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 39.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 40 41# Always add MI sources 42.include "${BOOTSRC}/loader.mk" 43.PATH: ${SYSDIR}/libkern 44CFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH} 45 46CFLAGS+= -Wall 47 48DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 49LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 50 51.include <bsd.prog.mk> 52