1# $FreeBSD: head/sys/boot/powerpc/ps3/Makefile 217044 2011-01-06 04:12:29Z nwhitehorn $
|
1# $FreeBSD: head/sys/boot/powerpc/ps3/Makefile 222417 2011-05-28 08:50:38Z julian $ |
2 3.include <bsd.own.mk> 4MK_SSP= no 5 6PROG= loader.ps3 7NEWVERSWHAT= "Playstation 3 loader" ${MACHINE_ARCH} 8BINDIR?= /boot 9INSTALLFLAGS= -b 10 11# Architecture-specific loader code 12SRCS= start.S conf.c metadata.c vers.c main.c devicename.c ppc64_elf_freebsd.c 13SRCS+= lv1call.S ps3cons.c font.h ps3mmu.c ps3net.c 14SRCS+= ucmpdi2.c 15 16LOADER_DISK_SUPPORT?= yes 17LOADER_UFS_SUPPORT?= yes 18LOADER_CD9660_SUPPORT?= yes 19LOADER_EXT2FS_SUPPORT?= no 20LOADER_NET_SUPPORT?= yes 21LOADER_NFS_SUPPORT?= yes 22LOADER_TFTP_SUPPORT?= no 23LOADER_GZIP_SUPPORT?= yes 24LOADER_FDT_SUPPORT?= no 25LOADER_BZIP2_SUPPORT?= no 26 27.if ${LOADER_DISK_SUPPORT} == "yes" 28CFLAGS+= -DLOADER_DISK_SUPPORT 29.endif 30.if ${LOADER_UFS_SUPPORT} == "yes" 31CFLAGS+= -DLOADER_UFS_SUPPORT 32.endif 33.if ${LOADER_CD9660_SUPPORT} == "yes" 34CFLAGS+= -DLOADER_CD9660_SUPPORT 35.endif 36.if ${LOADER_EXT2FS_SUPPORT} == "yes" 37CFLAGS+= -DLOADER_EXT2FS_SUPPORT 38.endif 39.if ${LOADER_GZIP_SUPPORT} == "yes" 40CFLAGS+= -DLOADER_GZIP_SUPPORT 41.endif 42.if ${LOADER_BZIP2_SUPPORT} == "yes" 43CFLAGS+= -DLOADER_BZIP2_SUPPORT 44.endif 45.if ${LOADER_NET_SUPPORT} == "yes" 46CFLAGS+= -DLOADER_NET_SUPPORT 47.endif 48.if ${LOADER_NFS_SUPPORT} == "yes" 49CFLAGS+= -DLOADER_NFS_SUPPORT 50.endif 51.if ${LOADER_TFTP_SUPPORT} == "yes" 52CFLAGS+= -DLOADER_TFTP_SUPPORT 53.endif 54.if ${LOADER_FDT_SUPPORT} == "yes" 55CFLAGS+= -I${.CURDIR}/../../fdt 56CFLAGS+= -I${.OBJDIR}/../../fdt 57CFLAGS+= -DLOADER_FDT_SUPPORT 58LIBFDT= ${.OBJDIR}/../../fdt/libfdt.a 59.endif 60 61 62.if ${MK_FORTH} != "no" 63# Enable BootForth 64BOOT_FORTH= yes 65CFLAGS+= -DBOOT_FORTH -I${.CURDIR}/../../ficl -I${.CURDIR}/../../ficl/powerpc 66LIBFICL= ${.OBJDIR}/../../ficl/libficl.a 67.endif 68 69# Avoid the open-close-dance for every file access as some firmwares perform 70# an auto-negotiation on every open of the network interface and thus causes 71# netbooting to take horribly long. 72CFLAGS+= -DNETIF_OPEN_CLOSE_ONCE -mcpu=powerpc64 73 74# Always add MI sources 75.PATH: ${.CURDIR}/../../common ${.CURDIR}/../../../libkern 76.include "${.CURDIR}/../../common/Makefile.inc" 77CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. 78CFLAGS+= -I. 79 80CLEANFILES+= vers.c loader.help 81 82CFLAGS+= -Wall -ffreestanding -msoft-float -DAIM 83# load address. set in linker script 84RELOC?= 0x0 85CFLAGS+= -DRELOC=${RELOC} 86 87LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc 88 89# 64-bit bridge extensions 90CFLAGS+= -Wa,-mppc64bridge 91 92# Pull in common loader code 93#.PATH: ${.CURDIR}/../../ofw/common 94#.include "${.CURDIR}/../../ofw/common/Makefile.inc" 95 96# where to get libstand from 97CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ 98 99DPADD= ${LIBFICL} ${LIBOFW} ${LIBSTAND} 100LDADD= ${LIBFICL} ${LIBOFW} -lstand 101 102SC_DFLT_FONT=cp437 103 104font.h: 105 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 106 107vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version 108 sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} 109 110loader.help: help.common help.ps3 111 cat ${.ALLSRC} | \ 112 awk -f ${.CURDIR}/../../common/merge_help.awk > ${.TARGET} 113 114.PATH: ${.CURDIR}/../../forth 115FILES= loader.help loader.4th support.4th loader.conf
|
116FILES+= beastie.4th brand.4th check-password.4th color.4th delay.4th 117FILES+= menu.4th menu-commands.4th shortcuts.4th version.4th |
118FILESDIR_loader.conf= /boot/defaults 119 120.if !exists(${DESTDIR}/boot/loader.rc) 121FILES+= loader.rc 122.endif 123
|
124.if !exists(${DESTDIR}/boot/menu.rc) 125FILES+= menu.rc 126.endif 127 |
128.include <bsd.prog.mk>
|