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?= no 9LOADER_NFS_SUPPORT?= no 10LOADER_TFTP_SUPPORT?= no 11LOADER_GZIP_SUPPORT?= no 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 hostfs.c \ 29 init.c \ 30 kbootfdt.c \ 31 main.c \ 32 termios.c \ 33 util.c \ 34 vers.c 35 36CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken 37 38.include "${BOOTSRC}/fdt.mk" 39 40# Note: Since we're producing a userland binary, we key off of MACHINE_ARCH 41# instead of the more normal MACHINE since the changes between different flavors 42# of MACHINE_ARCH are large enough in Linux that it's easier that way. 43.PATH: ${.CURDIR}/arch/${MACHINE_ARCH} 44.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc" 45 46# Always add MI sources 47.include "${BOOTSRC}/loader.mk" 48.PATH: ${SYSDIR}/libkern 49CFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH} 50 51CFLAGS+= -Wall 52 53DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 54LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 55 56.include <bsd.prog.mk> 57