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= crt1.c conf.c vers.c main.c host_syscalls.c hostcons.c hostdisk.c kbootfdt.c gfx_fb_stub.c 22SRCS+= termios.c 23 24CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken 25 26.include "${BOOTSRC}/fdt.mk" 27 28.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 29.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 30 31# Always add MI sources 32.include "${BOOTSRC}/loader.mk" 33.PATH: ${SYSDIR}/libkern 34CFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH} 35 36CFLAGS+= -Wall 37 38DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 39LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 40 41.include <bsd.prog.mk> 42