2000-10-16 10:46:22 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-11-08 14:44:45 +00:00
|
|
|
LOADER_CD9660_SUPPORT?= yes
|
|
|
|
LOADER_EXT2FS_SUPPORT?= no
|
|
|
|
LOADER_MSDOS_SUPPORT?= no
|
|
|
|
LOADER_UFS_SUPPORT?= yes
|
|
|
|
LOADER_NET_SUPPORT?= yes
|
|
|
|
LOADER_NFS_SUPPORT?= yes
|
|
|
|
LOADER_TFTP_SUPPORT?= no
|
|
|
|
LOADER_GZIP_SUPPORT?= yes
|
|
|
|
LOADER_BZIP2_SUPPORT?= no
|
|
|
|
|
2017-10-30 03:12:28 +00:00
|
|
|
.include <bsd.init.mk>
|
2009-02-21 15:04:31 +00:00
|
|
|
MK_SSP= no
|
2015-06-19 14:20:21 +00:00
|
|
|
MAN=
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2004-02-09 21:54:54 +00:00
|
|
|
PROG= loader
|
2007-12-26 19:15:58 +00:00
|
|
|
NEWVERSWHAT= "Open Firmware loader" ${MACHINE_ARCH}
|
2001-09-12 10:25:50 +00:00
|
|
|
INSTALLFLAGS= -b
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2004-02-09 21:54:54 +00:00
|
|
|
# Architecture-specific loader code
|
2003-12-10 09:16:22 +00:00
|
|
|
SRCS= conf.c metadata.c vers.c start.c
|
2010-07-12 00:49:22 +00:00
|
|
|
SRCS+= ucmpdi2.c
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2017-11-10 23:54:24 +00:00
|
|
|
.include "${BOOTSRC}/fdt.mk"
|
|
|
|
.if ${MK_FDT} == "yes"
|
2015-03-09 02:57:34 +00:00
|
|
|
SRCS+= ofwfdt.c
|
|
|
|
.endif
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2004-02-09 21:54:54 +00:00
|
|
|
# Always add MI sources
|
2017-10-30 03:12:28 +00:00
|
|
|
.include "${BOOTSRC}/loader.mk"
|
2017-10-16 03:59:44 +00:00
|
|
|
|
2017-10-30 03:12:28 +00:00
|
|
|
.PATH: ${SYSDIR}/libkern
|
|
|
|
CFLAGS+= -I${SYSDIR}
|
2004-02-09 21:54:54 +00:00
|
|
|
CFLAGS+= -I.
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2016-12-19 14:40:59 +00:00
|
|
|
CLEANFILES+= loader.help
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2008-02-23 17:48:23 +00:00
|
|
|
CFLAGS+= -ffreestanding -msoft-float
|
2004-07-08 12:52:35 +00:00
|
|
|
# load address. set in linker script
|
2003-12-10 09:16:22 +00:00
|
|
|
RELOC?= 0x1C00000
|
|
|
|
CFLAGS+= -DRELOC=${RELOC}
|
2004-07-08 12:52:35 +00:00
|
|
|
|
|
|
|
LDFLAGS= -nostdlib -static -T ${.CURDIR}/ldscript.powerpc
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2003-12-10 09:16:22 +00:00
|
|
|
# Pull in common loader code
|
2017-10-30 03:12:28 +00:00
|
|
|
.PATH: ${BOOTSRC}/ofw/common
|
|
|
|
.include "${BOOTSRC}/ofw/common/Makefile.inc"
|
2003-12-10 09:16:22 +00:00
|
|
|
|
2004-08-16 15:45:27 +00:00
|
|
|
# Open Firmware standalone support library
|
2017-10-30 03:12:28 +00:00
|
|
|
LIBOFW= ${BOOTOBJ}/ofw/libofw/libofw.a
|
|
|
|
CFLAGS+= -I${BOOTSRC}/ofw/libofw
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2017-11-06 15:21:39 +00:00
|
|
|
DPADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
|
|
|
LDADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
|
2000-11-10 06:39:58 +00:00
|
|
|
|
2017-11-10 23:54:13 +00:00
|
|
|
loader.help: help.common ${FDTSRC}/help.fdt
|
2003-12-10 09:16:22 +00:00
|
|
|
cat ${.ALLSRC} | \
|
2017-10-22 22:50:08 +00:00
|
|
|
awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
|
2003-12-10 09:16:22 +00:00
|
|
|
|
2017-10-30 03:12:28 +00:00
|
|
|
.PATH: ${BOOTSRC}/forth
|
|
|
|
.include "${BOOTSRC}/forth/Makefile.inc"
|
2000-10-16 10:46:22 +00:00
|
|
|
|
2015-08-06 16:07:27 +00:00
|
|
|
FILES+= loader.rc menu.rc
|
2011-05-28 08:50:38 +00:00
|
|
|
|
2000-10-16 10:46:22 +00:00
|
|
|
.include <bsd.prog.mk>
|