1 2LOADER_CD9660_SUPPORT?= yes 3LOADER_EXT2FS_SUPPORT?= no 4LOADER_MSDOS_SUPPORT?= no 5LOADER_UFS_SUPPORT?= yes 6LOADER_NET_SUPPORT?= yes 7LOADER_NFS_SUPPORT?= yes 8LOADER_TFTP_SUPPORT?= no 9LOADER_GZIP_SUPPORT?= yes 10LOADER_BZIP2_SUPPORT?= no 11 12.include <bsd.init.mk> 13 14PROG= loader 15NEWVERSWHAT= "Open Firmware loader" ${MACHINE_ARCH} 16INSTALLFLAGS= -b 17 18# Architecture-specific loader code 19SRCS= conf.c vers.c main.c elf_freebsd.c ppc64_elf_freebsd.c start.c 20SRCS+= ucmpdi2.c 21 22.include "${BOOTSRC}/fdt.mk" 23.if ${MK_FDT} == "yes" 24SRCS+= ofwfdt.c 25.endif 26 27.if ${MACHINE_ARCH:Mpowerpc64*} != "" 28SRCS+= cas.c 29CFLAGS+= -DCAS 30.endif 31 32.if ${MACHINE_ARCH} == "powerpc64le" 33SRCS+= trampolineLE.S 34.endif 35 36HELP_FILES= ${FDTSRC}/help.fdt 37HELP_FILENAME= loader.help.ofw 38 39# Always add MI sources 40.include "${BOOTSRC}/loader.mk" 41 42.PATH: ${SYSDIR}/libkern 43 44# load address. set in linker script 45RELOC?= 0x1C00000 46CFLAGS+= -DRELOC=${RELOC} -g 47 48LDFLAGS= -nostdlib -static 49 50.if ${MACHINE_ARCH} == "powerpc64le" 51LDFLAGS+= -T ${.CURDIR}/ldscript.powerpcle 52.else 53LDFLAGS+= -T ${.CURDIR}/ldscript.powerpc 54.endif 55 56# Open Firmware standalone support library 57LIBOFW= ${BOOTOBJ}/libofw/libofw.a 58CFLAGS+= -I${BOOTSRC}/libofw 59 60DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA} 61LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA} 62 63MK_PIE= no 64 65.include <bsd.prog.mk> 66