Makefile revision 329146
1# $FreeBSD: stable/11/stand/powerpc/ofw/Makefile 329146 2018-02-12 01:17:06Z kevans $
2
3LOADER_CD9660_SUPPORT?=	yes
4LOADER_EXT2FS_SUPPORT?=	no
5LOADER_MSDOS_SUPPORT?=	no
6LOADER_UFS_SUPPORT?=	yes
7LOADER_NET_SUPPORT?=	yes
8LOADER_NFS_SUPPORT?=	yes
9LOADER_TFTP_SUPPORT?=	no
10LOADER_GZIP_SUPPORT?=	yes
11LOADER_BZIP2_SUPPORT?=	no
12
13.include <bsd.init.mk>
14MK_SSP=		no
15MAN=
16
17PROG=		loader
18NEWVERSWHAT=	"Open Firmware loader" ${MACHINE_ARCH}
19INSTALLFLAGS=	-b
20
21# Architecture-specific loader code
22SRCS=		conf.c metadata.c vers.c start.c
23SRCS+=		ucmpdi2.c
24
25.include	"${BOOTSRC}/fdt.mk"
26.if ${MK_FDT} == "yes"
27SRCS+=		ofwfdt.c
28.endif
29
30HELP_FILES+=	${FDTSRC}/help.fdt
31
32# Always add MI sources
33.include	"${BOOTSRC}/loader.mk"
34
35.PATH:		${SYSDIR}/libkern
36
37# load address. set in linker script
38RELOC?=		0x1C00000
39CFLAGS+=	-DRELOC=${RELOC}
40
41LDFLAGS=	-nostdlib -static -T ${.CURDIR}/ldscript.powerpc
42
43# Pull in common loader code
44.PATH:		${BOOTSRC}/ofw/common
45.include	"${BOOTSRC}/ofw/common/Makefile.inc"
46
47# Open Firmware standalone support library
48LIBOFW=		${BOOTOBJ}/ofw/libofw/libofw.a
49CFLAGS+=	-I${BOOTSRC}/ofw/libofw
50
51DPADD=		${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
52LDADD=		${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
53
54.include <bsd.prog.mk>
55