3 LOADER_UFS_SUPPORT?= yes
4 LOADER_CD9660_SUPPORT?= yes
5 LOADER_EXT2FS_SUPPORT?= yes
6 LOADER_NET_SUPPORT?= yes
7 LOADER_NFS_SUPPORT?= yes
8 LOADER_TFTP_SUPPORT?= no
9 LOADER_GZIP_SUPPORT?= yes
10 LOADER_BZIP2_SUPPORT?= no
12 .include <bsd.init.mk>
17 NEWVERSWHAT= "Playstation 3 loader" ${MACHINE_ARCH}
20 # Architecture-specific loader code
21 SRCS= start.S conf.c metadata.c vers.c main.c devicename.c ppc64_elf_freebsd.c
22 SRCS+= lv1call.S ps3cons.c font.h ps3mmu.c ps3net.c ps3repo.c \
23 ps3stor.c ps3disk.c ps3cdrom.c
26 CFLAGS+= -mcpu=powerpc64
28 # Always add MI sources
30 .include "${BOOTSRC}/loader.mk"
31 .PATH: ${SYSDIR}/libkern
33 CFLAGS+= -Wall -ffreestanding -msoft-float -DAIM
34 # load address. set in linker script
36 CFLAGS+= -DRELOC=${RELOC}
38 LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
40 DPADD= ${LIBFICL} ${LIBOFW} ${LIBSA}
41 LDADD= ${LIBFICL} ${LIBOFW} ${LIBSA}
46 uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'u_char dflt_font_16[16*256] = {' '};' < ${SC_DFLT_FONT}-8x16 > font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && file2c 'u_char dflt_font_14[14*256] = {' '};' < ${SC_DFLT_FONT}-8x14 >> font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && file2c 'u_char dflt_font_8[8*256] = {' '};' < ${SC_DFLT_FONT}-8x8 >> font.h
48 .include <bsd.prog.mk>