1# $FreeBSD$ 2 3LOADER_CD9660_SUPPORT?= yes 4LOADER_EXT2FS_SUPPORT?= no 5LOADER_MSDOS_SUPPORT?= no 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 16NEWVERSWHAT= "Open Firmware loader" ${MACHINE_ARCH} 17INSTALLFLAGS= -b 18 19# Architecture-specific loader code 20SRCS= conf.c vers.c main.c elf_freebsd.c ppc64_elf_freebsd.c start.c 21SRCS+= ucmpdi2.c 22 23.include "${BOOTSRC}/fdt.mk" 24.if ${MK_FDT} == "yes" 25SRCS+= ofwfdt.c 26.endif 27 28.if ${MACHINE_ARCH} == "powerpc64" 29SRCS+= cas.c 30CFLAGS+= -DCAS 31.endif 32 33HELP_FILES= ${FDTSRC}/help.fdt 34 35# Always add MI sources 36.include "${BOOTSRC}/loader.mk" 37 38.PATH: ${SYSDIR}/libkern 39 40# load address. set in linker script 41RELOC?= 0x1C00000 42CFLAGS+= -DRELOC=${RELOC} -g 43 44LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc 45 46# Open Firmware standalone support library 47LIBOFW= ${BOOTOBJ}/libofw/libofw.a 48CFLAGS+= -I${BOOTSRC}/libofw 49 50DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 51LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 52 53.include <bsd.prog.mk> 54