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