]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/powerpc/ps3/Makefile
Re-sync loader.mk and ficl.mk to where they should be
[FreeBSD/FreeBSD.git] / stand / powerpc / ps3 / Makefile
1 # $FreeBSD$
2
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
11
12 .include <bsd.init.mk>
13 MK_SSP=         no
14 MAN=
15
16 PROG=           loader.ps3
17 NEWVERSWHAT=    "Playstation 3 loader" ${MACHINE_ARCH}
18 INSTALLFLAGS=   -b
19
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
24 SRCS+=          ucmpdi2.c
25
26 CFLAGS+=        -mcpu=powerpc64
27
28 # Always add MI sources
29 HELP_FILES=     # Disable
30 .include        "${BOOTSRC}/loader.mk"
31 .PATH:          ${SYSDIR}/libkern
32
33 CFLAGS+=        -Wall -ffreestanding -msoft-float -DAIM
34 # load address. set in linker script
35 RELOC?=         0x0
36 CFLAGS+=        -DRELOC=${RELOC}
37
38 LDFLAGS=        -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
39
40 DPADD=          ${LIBFICL} ${LIBOFW} ${LIBSA}
41 LDADD=          ${LIBFICL} ${LIBOFW} ${LIBSA}
42
43 SC_DFLT_FONT=cp437
44
45 font.h:
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
47
48 .include <bsd.prog.mk>