]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/powerpc/ofw/Makefile
Re-sync loader.mk and ficl.mk to where they should be
[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 CFLAGS+=        -ffreestanding -msoft-float
38 # load address. set in linker script
39 RELOC?=         0x1C00000
40 CFLAGS+=        -DRELOC=${RELOC}
41
42 LDFLAGS=        -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
43
44 # Pull in common loader code
45 .PATH:          ${BOOTSRC}/ofw/common
46 .include        "${BOOTSRC}/ofw/common/Makefile.inc"
47
48 # Open Firmware standalone support library
49 LIBOFW=         ${BOOTOBJ}/ofw/libofw/libofw.a
50 CFLAGS+=        -I${BOOTSRC}/ofw/libofw
51
52 DPADD=          ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
53 LDADD=          ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
54
55 .include <bsd.prog.mk>