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# Note: Since we're producing a userland binary, we key off of MACHINE_ARCH 39# instead of the more normal MACHINE since the changes between different flavors 40# of MACHINE_ARCH are large enough in Linux that it's easier that way. 41.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 42.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 43 44# Always add MI sources 45.include "${BOOTSRC}/loader.mk" 46.PATH: ${SYSDIR}/libkern 47CFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH} 48 49CFLAGS+= -Wall 50 51DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 52LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 53 54.include <bsd.prog.mk> 55