xref: /freebsd-12.1/stand/powerpc/ofw/Makefile (revision e05bc4f9)
1# $FreeBSD$
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 vers.c main.c elf_freebsd.c ppc64_elf_freebsd.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# Open Firmware standalone support library
42LIBOFW=		${BOOTOBJ}/ofw/libofw/libofw.a
43CFLAGS+=	-I${BOOTSRC}/ofw/libofw
44
45DPADD=		${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
46LDADD=		${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
47
48.include <bsd.prog.mk>
49