For KARL, include a linkkit into the base set, as usr/share/compile.tgz.
authorderaadt <deraadt@openbsd.org>
Tue, 13 Jun 2017 17:09:52 +0000 (17:09 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 13 Jun 2017 17:09:52 +0000 (17:09 +0000)
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

etc/Makefile

index c3892e1..decc352 100644 (file)
@@ -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 <bsd.own.mk>
 
@@ -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