]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/powerpc/ofw/Makefile
libfdt: Update to 1.4.6, switch to using libfdt for overlay support
[FreeBSD/FreeBSD.git] / stand / powerpc / ofw / Makefile
1 # $FreeBSD$
2
3 LOADER_CD9660_SUPPORT?= yes
4 LOADER_EXT2FS_SUPPORT?= no
5 LOADER_MSDOS_SUPPORT?=  no
6 LOADER_UFS_SUPPORT?=    yes
7 LOADER_NET_SUPPORT?=    yes
8 LOADER_NFS_SUPPORT?=    yes
9 LOADER_TFTP_SUPPORT?=   no
10 LOADER_GZIP_SUPPORT?=   yes
11 LOADER_BZIP2_SUPPORT?=  no
12
13 .include <bsd.init.mk>
14 MK_SSP=         no
15 MAN=
16
17 PROG=           loader
18 NEWVERSWHAT=    "Open Firmware loader" ${MACHINE_ARCH}
19 INSTALLFLAGS=   -b
20
21 # Architecture-specific loader code
22 SRCS=           conf.c metadata.c vers.c start.c
23 SRCS+=          ucmpdi2.c
24
25 .include        "${BOOTSRC}/fdt.mk"
26 .if ${MK_FDT} == "yes"
27 SRCS+=          ofwfdt.c
28 .endif
29
30 HELP_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
38 RELOC?=         0x1C00000
39 CFLAGS+=        -DRELOC=${RELOC}
40
41 LDFLAGS=        -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
48 LIBOFW=         ${BOOTOBJ}/ofw/libofw/libofw.a
49 CFLAGS+=        -I${BOOTSRC}/ofw/libofw
50
51 DPADD=          ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
52 LDADD=          ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
53
54 .include <bsd.prog.mk>