aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/powerpc/ofw/Makefile
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-11-10 23:54:58 +0000
committerWarner Losh <imp@FreeBSD.org>2017-11-10 23:54:58 +0000
commit781c4d47f283dac2dc2000a4211b27529c2e0bf3 (patch)
treec34d122e07fc79e82b67927146b697b1fbe64dea /sys/boot/powerpc/ofw/Makefile
parent4728f534ff6d6644c6f80d2028503670859af576 (diff)
downloadsrc-781c4d47f283dac2dc2000a4211b27529c2e0bf3.tar.gz
src-781c4d47f283dac2dc2000a4211b27529c2e0bf3.zip
Install the 4th files in sys/boot/forth instead of each loader
Also, move generation of loader.help into loader.mk. Set HELP_FILES= to disable this (so we only install one help file, for now). At the same time remove some duplicate -I lines. Fix several FILES= and CLEANFILES= into the += form since we're touching both of those in the .mk files. Make sure we only build one loader.help file per platform in a unified way (we were building many on some, with the last to install winning, though often they were the same text). Also, we're now installing loader.rc and menu.rc everywhere. arm and mips uboot installed these as menu.rc.sample, but there's no need since the loader.rc for those platforms doesn't do menu.rc processing by default. pcibios.4th is now installed everywhere, but will failsafe on non x86 platforms (it isn't loaded by default anywhere). These changes are too intertwined to do separately since aspects of each are required to have a bug-free commit. Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=325694
Diffstat (limited to 'sys/boot/powerpc/ofw/Makefile')
-rw-r--r--sys/boot/powerpc/ofw/Makefile15
1 files changed, 2 insertions, 13 deletions
diff --git a/sys/boot/powerpc/ofw/Makefile b/sys/boot/powerpc/ofw/Makefile
index ae3dfbd54f2d..1853b2596fce 100644
--- a/sys/boot/powerpc/ofw/Makefile
+++ b/sys/boot/powerpc/ofw/Makefile
@@ -27,14 +27,12 @@ SRCS+= ucmpdi2.c
SRCS+= ofwfdt.c
.endif
+HELP_FILES+= ${FDTSRC}/help.fdt
+
# Always add MI sources
.include "${BOOTSRC}/loader.mk"
.PATH: ${SYSDIR}/libkern
-CFLAGS+= -I${SYSDIR}
-CFLAGS+= -I.
-
-CLEANFILES+= loader.help
CFLAGS+= -ffreestanding -msoft-float
# load address. set in linker script
@@ -54,13 +52,4 @@ CFLAGS+= -I${BOOTSRC}/ofw/libofw
DPADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
LDADD= ${LIBFICL} ${LIBOFW} ${LIBFDT} ${LIBSA}
-loader.help: help.common ${FDTSRC}/help.fdt
- cat ${.ALLSRC} | \
- awk -f ${LDRSRC}/merge_help.awk > ${.TARGET}
-
-.PATH: ${BOOTSRC}/forth
-.include "${BOOTSRC}/forth/Makefile.inc"
-
-FILES+= loader.rc menu.rc
-
.include <bsd.prog.mk>