]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/powerpc/ofw/Makefile
Import DTS files from Linux 4.18
[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 HELP_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
36 RELOC?=         0x1C00000
37 CFLAGS+=        -DRELOC=${RELOC}
38
39 LDFLAGS=        -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
40
41 # Open Firmware standalone support library
42 LIBOFW=         ${BOOTOBJ}/ofw/libofw/libofw.a
43 CFLAGS+=        -I${BOOTSRC}/ofw/libofw
44
45 DPADD=          ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
46 LDADD=          ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
47
48 .include <bsd.prog.mk>