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 50LDFLAGS+= -L ${.CURDIR} -T ${.CURDIR}/${MACHINE_ARCH}.ldscript 51 52# Open Firmware standalone support library 53LIBOFW= ${BOOTOBJ}/libofw/libofw.a 54CFLAGS+= -I${BOOTSRC}/libofw 55 56DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA} 57LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA} 58 59MK_PIE= no 60 61.include <bsd.prog.mk> 62