summaryrefslogtreecommitdiffstats
path: root/stand/powerpc/kboot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stand/powerpc/kboot/Makefile')
-rw-r--r--stand/powerpc/kboot/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/stand/powerpc/kboot/Makefile b/stand/powerpc/kboot/Makefile
new file mode 100644
index 0000000..bed586e
--- /dev/null
+++ b/stand/powerpc/kboot/Makefile
@@ -0,0 +1,50 @@
+# $FreeBSD$
+
+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
+
+.include <bsd.init.mk>
+MK_SSP= no
+MAN=
+
+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
+
+.include "${BOOTSRC}/fdt.mk"
+
+CFLAGS+= -mcpu=powerpc64
+
+# Always add MI sources
+HELP_FILES= # Disable
+.include "${BOOTSRC}/loader.mk"
+.PATH: ${SYSDIR}/libkern
+
+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
+
+DPADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
+LDADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
+
+HELP_FILES+= ${FDTSRC}/help.fdt
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud