Makefile revision 329183
1# $FreeBSD: stable/11/stand/powerpc/ofw/Makefile 329183 2018-02-12 20:51:28Z 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>
14
15PROG=		loader
16NEWVERSWHAT=	"Open Firmware loader" ${MACHINE_ARCH}
17INSTALLFLAGS=	-b
18
19# Architecture-specific loader code
20SRCS=		conf.c metadata.c vers.c start.c
21SRCS+=		ucmpdi2.c
22
23.include	"${BOOTSRC}/fdt.mk"
24.if ${MK_FDT} == "yes"
25SRCS+=		ofwfdt.c
26.endif
27
28HELP_FILES=	${FDTSRC}/help.fdt
29
30# Always add MI sources
31.include	"${BOOTSRC}/loader.mk"
32
33.PATH:		${SYSDIR}/libkern
34
35# load address. set in linker script
36RELOC?=		0x1C00000
37CFLAGS+=	-DRELOC=${RELOC}
38
39LDFLAGS=	-nostdlib -static -T ${.CURDIR}/ldscript.powerpc
40
41# Pull in common loader code
42.PATH:		${BOOTSRC}/ofw/common
43.include	"${BOOTSRC}/ofw/common/Makefile.inc"
44
45# Open Firmware standalone support library
46LIBOFW=		${BOOTOBJ}/ofw/libofw/libofw.a
47CFLAGS+=	-I${BOOTSRC}/ofw/libofw
48
49DPADD=		${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
50LDADD=		${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
51
52.include <bsd.prog.mk>
53