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