2015-01-05 04:33:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-11-08 14:44:45 +00:00
|
|
|
LOADER_CD9660_SUPPORT?= yes
|
|
|
|
LOADER_MSDOS_SUPPORT?= no
|
|
|
|
LOADER_EXT2FS_SUPPORT?= yes
|
|
|
|
LOADER_UFS_SUPPORT?= yes
|
|
|
|
LOADER_NET_SUPPORT?= yes
|
|
|
|
LOADER_NFS_SUPPORT?= yes
|
|
|
|
LOADER_TFTP_SUPPORT?= no
|
|
|
|
LOADER_GZIP_SUPPORT?= yes
|
|
|
|
LOADER_BZIP2_SUPPORT?= no
|
|
|
|
|
2017-10-30 03:12:28 +00:00
|
|
|
.include <bsd.init.mk>
|
2015-01-05 04:33:39 +00:00
|
|
|
MK_SSP= no
|
2015-06-19 14:20:21 +00:00
|
|
|
MAN=
|
2015-01-05 04:33:39 +00:00
|
|
|
|
|
|
|
PROG= loader.kboot
|
|
|
|
NEWVERSWHAT= "kboot loader" ${MACHINE_ARCH}
|
|
|
|
INSTALLFLAGS= -b
|
|
|
|
|
|
|
|
# Architecture-specific loader code
|
|
|
|
SRCS= conf.c metadata.c vers.c main.c ppc64_elf_freebsd.c
|
|
|
|
SRCS+= host_syscall.S hostcons.c hostdisk.c kerneltramp.S kbootfdt.c
|
|
|
|
SRCS+= ucmpdi2.c
|
|
|
|
|
2017-11-10 23:54:24 +00:00
|
|
|
.include "${BOOTSRC}/fdt.mk"
|
2015-01-05 04:33:39 +00:00
|
|
|
|
2016-10-13 22:43:49 +00:00
|
|
|
CFLAGS+= -mcpu=powerpc64
|
2015-01-05 04:33:39 +00:00
|
|
|
|
|
|
|
# Always add MI sources
|
2017-11-10 23:54:58 +00:00
|
|
|
HELP_FILES= # Disable
|
2017-10-30 03:12:28 +00:00
|
|
|
.include "${BOOTSRC}/loader.mk"
|
|
|
|
.PATH: ${SYSDIR}/libkern
|
2015-01-05 04:33:39 +00:00
|
|
|
|
|
|
|
CFLAGS+= -Wall -ffreestanding -msoft-float -DAIM
|
|
|
|
# load address. set in linker script
|
|
|
|
RELOC?= 0x0
|
|
|
|
CFLAGS+= -DRELOC=${RELOC}
|
|
|
|
|
|
|
|
LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
|
|
|
|
|
|
|
|
# 64-bit bridge extensions
|
|
|
|
CFLAGS+= -Wa,-mppc64bridge
|
|
|
|
|
2017-11-06 15:21:39 +00:00
|
|
|
DPADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
|
|
|
LDADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
2015-01-05 04:33:39 +00:00
|
|
|
|
2017-11-10 23:54:58 +00:00
|
|
|
HELP_FILES+= ${FDTSRC}/help.fdt
|
2015-01-05 04:33:39 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|