From 79f54021d756060a19086bcd36b219a60d4f15ce Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Tue, 13 Jun 2017 17:09:52 +0000 Subject: [PATCH] For KARL, include a linkkit into the base set, as usr/share/compile.tgz. This contains the relevant pieces from all the GENERIC* compile directories (*.o ld.script Makefile gap.S). It also includes the machine/ subdir for now, to support re-randomizing of gap.S, though other methods are being investigated. (Any binutils ld.script hackers out there?) collaboration with rpe --- src/etc/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/etc/Makefile b/src/etc/Makefile index c3892e12..decc352c 100644 --- a/src/etc/Makefile +++ b/src/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.457 2017/06/12 18:49:33 espie Exp $ +# $OpenBSD: Makefile,v 1.458 2017/06/13 17:09:52 deraadt Exp $ .include @@ -29,6 +29,13 @@ kernels: ${ALL_KERNELS} cp ../sys/arch/${MACHINE}/compile/${CONF}/obj/bsd ${RELEASEDIR}/$K chmod a+r ${RELEASEDIR}/$K .endfor + cd ${.CURDIR}/../sys/arch/${MACHINE}/compile/ && \ + tar -chzf ${DESTDIR}/usr/share/compile.tgz -s ',/obj/,/,' \ + GENERIC*/obj/*.o GENERIC*/obj/Makefile \ + GENERIC*/obj/ld.script GENERIC*/obj/gap.S \ + GENERIC*/obj/machine + chown root:wheel ${DESTDIR}/usr/share/compile.tgz + chmod 644 ${DESTDIR}/usr/share/compile.tgz # -rw-r--r-- BINOWN= root