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
|
|
|
|
|
|
|
PROG= loader.kboot
|
|
|
|
NEWVERSWHAT= "kboot loader" ${MACHINE_ARCH}
|
|
|
|
INSTALLFLAGS= -b
|
|
|
|
|
|
|
|
# Architecture-specific loader code
|
2018-02-13 03:44:50 +00:00
|
|
|
SRCS= conf.c vers.c main.c ppc64_elf_freebsd.c
|
2015-01-05 04:33:39 +00:00
|
|
|
SRCS+= host_syscall.S hostcons.c hostdisk.c kerneltramp.S kbootfdt.c
|
2021-01-04 16:51:58 +00:00
|
|
|
SRCS+= ucmpdi2.c gfx_fb.c
|
|
|
|
|
|
|
|
CFLAGS.gfx_fb.c += -I${SRCTOP}/contrib/pnglite
|
|
|
|
CFLAGS.gfx_fb.c += -I${SRCTOP}/sys/teken
|
2015-01-05 04:33:39 +00:00
|
|
|
|
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-10-30 03:12:28 +00:00
|
|
|
.include "${BOOTSRC}/loader.mk"
|
|
|
|
.PATH: ${SYSDIR}/libkern
|
2015-01-05 04:33:39 +00:00
|
|
|
|
2017-11-20 22:42:17 +00:00
|
|
|
CFLAGS+= -Wall -DAIM
|
2015-01-05 04:33:39 +00:00
|
|
|
# load address. set in linker script
|
|
|
|
RELOC?= 0x0
|
|
|
|
CFLAGS+= -DRELOC=${RELOC}
|
|
|
|
|
|
|
|
LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
|
|
|
|
|
2018-02-02 15:40:49 +00:00
|
|
|
DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
|
|
|
LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
2015-01-05 04:33:39 +00:00
|
|
|
|
2021-02-23 12:42:26 +00:00
|
|
|
MK_PIE= no
|
|
|
|
|
2015-01-05 04:33:39 +00:00
|
|
|
.include <bsd.prog.mk>
|