summaryrefslogtreecommitdiffstats
path: root/stand/powerpc/ofw/Makefile
blob: b28665db622cc0db6f4d3f5b7173f8154336d069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $FreeBSD$

LOADER_CD9660_SUPPORT?=	yes
LOADER_EXT2FS_SUPPORT?=	no
LOADER_MSDOS_SUPPORT?=	no
LOADER_UFS_SUPPORT?=	yes
LOADER_NET_SUPPORT?=	yes
LOADER_NFS_SUPPORT?=	yes
LOADER_TFTP_SUPPORT?=	no
LOADER_GZIP_SUPPORT?=	yes
LOADER_BZIP2_SUPPORT?=	no

.include <bsd.init.mk>
MK_SSP=		no
MAN=

PROG=		loader
NEWVERSWHAT=	"Open Firmware loader" ${MACHINE_ARCH}
INSTALLFLAGS=	-b

# Architecture-specific loader code
SRCS=		conf.c metadata.c vers.c start.c
SRCS+=		ucmpdi2.c

.include	"${BOOTSRC}/fdt.mk"
.if ${MK_FDT} == "yes"
SRCS+=		ofwfdt.c
.endif

HELP_FILES+=	${FDTSRC}/help.fdt

# Always add MI sources
.include	"${BOOTSRC}/loader.mk"

.PATH:		${SYSDIR}/libkern

# load address. set in linker script
RELOC?=		0x1C00000
CFLAGS+=	-DRELOC=${RELOC}

LDFLAGS=	-nostdlib -static -T ${.CURDIR}/ldscript.powerpc

# Pull in common loader code
.PATH:		${BOOTSRC}/ofw/common
.include	"${BOOTSRC}/ofw/common/Makefile.inc"

# Open Firmware standalone support library
LIBOFW=		${BOOTOBJ}/ofw/libofw/libofw.a
CFLAGS+=	-I${BOOTSRC}/ofw/libofw

DPADD=		${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
LDADD=		${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud