]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/powerpc/kboot/Makefile
MFC r325834,r325997,326502: Move sys/boot to stand/
[FreeBSD/FreeBSD.git] / stand / powerpc / kboot / Makefile
1 # $FreeBSD$
2
3 LOADER_CD9660_SUPPORT?= yes
4 LOADER_MSDOS_SUPPORT?=  no
5 LOADER_EXT2FS_SUPPORT?= yes
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.kboot
18 NEWVERSWHAT=    "kboot loader" ${MACHINE_ARCH}
19 INSTALLFLAGS=   -b
20
21 # Architecture-specific loader code
22 SRCS=           conf.c metadata.c vers.c main.c ppc64_elf_freebsd.c
23 SRCS+=          host_syscall.S hostcons.c hostdisk.c kerneltramp.S kbootfdt.c
24 SRCS+=          ucmpdi2.c
25
26 .include        "${BOOTSRC}/fdt.mk"
27
28 CFLAGS+=        -mcpu=powerpc64
29
30 # Always add MI sources
31 HELP_FILES=     # Disable
32 .include        "${BOOTSRC}/loader.mk"
33 .PATH:          ${SYSDIR}/libkern
34
35 CFLAGS+=        -Wall -ffreestanding -msoft-float -DAIM
36 # load address. set in linker script
37 RELOC?=         0x0
38 CFLAGS+=        -DRELOC=${RELOC}
39
40 LDFLAGS=        -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
41
42 # 64-bit bridge extensions
43 CFLAGS+= -Wa,-mppc64bridge
44
45 DPADD=          ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
46 LDADD=          ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
47
48 HELP_FILES+=    ${FDTSRC}/help.fdt
49
50 .include <bsd.prog.mk>