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 gfx_fb.c 22 23CFLAGS.gfx_fb.c += -I${SRCTOP}/contrib/pnglite 24CFLAGS.gfx_fb.c += -I${SRCTOP}/sys/teken 25 26.include "${BOOTSRC}/fdt.mk" 27.if ${MK_FDT} == "yes" 28SRCS+= ofwfdt.c 29.endif 30 31.if ${MACHINE_ARCH} == "powerpc64" 32SRCS+= cas.c 33CFLAGS+= -DCAS 34.endif 35 36HELP_FILES= ${FDTSRC}/help.fdt 37 38# Always add MI sources 39.include "${BOOTSRC}/loader.mk" 40 41.PATH: ${SYSDIR}/libkern 42 43# load address. set in linker script 44RELOC?= 0x1C00000 45CFLAGS+= -DRELOC=${RELOC} -g 46 47LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc 48 49# Open Firmware standalone support library 50LIBOFW= ${BOOTOBJ}/libofw/libofw.a 51CFLAGS+= -I${BOOTSRC}/libofw 52 53DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 54LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBFDT} ${LIBSA} 55 56MK_PIE= no 57 58.include <bsd.prog.mk> 59