summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/boot/alpha/common/Makefile.common17
-rw-r--r--sys/boot/alpha/loader/Makefile1
2 files changed, 18 insertions, 0 deletions
diff --git a/sys/boot/alpha/common/Makefile.common b/sys/boot/alpha/common/Makefile.common
index edde206..c809c08 100644
--- a/sys/boot/alpha/common/Makefile.common
+++ b/sys/boot/alpha/common/Makefile.common
@@ -39,6 +39,10 @@ CFLAGS+= -I${.CURDIR}/..
CRT= start.o
STRIP=
BINDIR?= /boot
+.ifdef INSTALL_FORTH
+MAN5= ../../forth/loader.conf.5
+MAN8= ../../i386/loader/loader.8 ../../forth/loader.4th.8
+.endif
all: ${BASE}
@@ -71,6 +75,19 @@ beforeinstall:
${.CURDIR}/${BASE}.help ${DESTDIR}/boot
.endif
.endif
+.ifdef INSTALL_FORTH
+.if !exists(${DESTDIR}/boot/loader.rc)
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${.CURDIR}/../../forth/loader.rc ${DESTDIR}/boot
+.endif
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${.CURDIR}/../../forth/loader.4th ${DESTDIR}/boot
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${.CURDIR}/../../forth/support.4th ${DESTDIR}/boot
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${.CURDIR}/../../forth/loader.conf ${DESTDIR}/boot/defaults
+.endif
+
start.o: ${.CURDIR}/../libalpha/start.S
${CC} -c ${CFLAGS} $<
diff --git a/sys/boot/alpha/loader/Makefile b/sys/boot/alpha/loader/Makefile
index 470562d..757ab90 100644
--- a/sys/boot/alpha/loader/Makefile
+++ b/sys/boot/alpha/loader/Makefile
@@ -5,6 +5,7 @@ PROG= ${BASE}
NOMAN=
NEWVERSWHAT= "SRM disk boot" alpha
INSTALL_HELP= yes
+INSTALL_FORTH= yes
LOAD_ADDRESS= ${SECONDARY_LOAD_ADDRESS}
# Only disk support
OpenPOWER on IntegriCloud