1# $FreeBSD$ 2 3LOADER_CD9660_SUPPORT?= yes 4LOADER_MSDOS_SUPPORT?= no 5LOADER_EXT2FS_SUPPORT?= yes 6LOADER_UFS_SUPPORT?= yes 7LOADER_NET_SUPPORT?= yes 8LOADER_NFS_SUPPORT?= yes 9LOADER_TFTP_SUPPORT?= no 10LOADER_GZIP_SUPPORT?= yes 11LOADER_BZIP2_SUPPORT?= no 12 13.include <bsd.init.mk> 14 15PROG= loader.kboot 16NEWVERSWHAT= "kboot loader" ${MACHINE_ARCH} 17INSTALLFLAGS= -b 18 19# Architecture-specific loader code 20SRCS= conf.c vers.c main.c ppc64_elf_freebsd.c 21SRCS+= host_syscall.S hostcons.c hostdisk.c kerneltramp.S kbootfdt.c 22SRCS+= ucmpdi2.c gfx_fb_stub.c 23 24CFLAGS.gfx_fb_stub.c += -I${SRCTOP}/contrib/pnglite -I${SRCTOP}/sys/teken 25 26.include "${BOOTSRC}/fdt.mk" 27 28CFLAGS+= -mcpu=powerpc64 29 30# Always add MI sources 31.include "${BOOTSRC}/loader.mk" 32.PATH: ${SYSDIR}/libkern 33 34CFLAGS+= -Wall -DAIM 35# load address. set in linker script 36RELOC?= 0x0 37CFLAGS+= -DRELOC=${RELOC} 38 39LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc 40 41DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 42LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 43 44MK_PIE= no 45 46.include <bsd.prog.mk> 47