From 80cc16f025842d7b43c859eb99316624d1685ab8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 5 Apr 2019 21:08:02 +0000 Subject: Use new rdsetroot. --- distrib/loongson/ramdisk/Makefile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'distrib/loongson') diff --git a/distrib/loongson/ramdisk/Makefile b/distrib/loongson/ramdisk/Makefile index c2a2b553cfe..b5942266a35 100644 --- a/distrib/loongson/ramdisk/Makefile +++ b/distrib/loongson/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.12 2016/12/11 10:01:01 natano Exp $ +# $OpenBSD: Makefile,v 1.13 2019/04/05 21:08:00 deraadt Exp $ REV= ${OSrev} @@ -26,9 +26,9 @@ all ${IMAGE}: # mix config is not needed. all: ${BSD_RD} -${BSD_RD}: ${IMAGE} bsd rdsetroot +${BSD_RD}: ${IMAGE} bsd cp bsd ${BSD_RD} - ${.OBJDIR}/rdsetroot ${BSD_RD} ${IMAGE} + rdsetroot ${BSD_RD} ${IMAGE} ${IMAGE}: ${CBIN} rm -rf $@.d @@ -47,11 +47,6 @@ bsd: su ${BUILDUSER} -c '${MAKE} config && ${MAKE} clean && exec ${MAKE}' cp -p ${TOP}/../../sys/arch/loongson/compile/RAMDISK/obj/bsd bsd -rdsetroot: ${TOP}/../common/elfrdsetroot.c - ${HOSTCC} ${HOSTCFLAGS} -o rdsetroot \ - ${TOP}/../common/elfrdsetroot.c ${TOP}/../common/elf32.c \ - ${TOP}/../common/elf64.c - ${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF} crunchgen -EM -D ${.CURDIR}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC} @@ -63,8 +58,7 @@ ${CRUNCHCONF}: ${LISTS} clean cleandir: /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \ - lib*.a lib*.olist ${CBIN}.map \ - *.o *.lo *.c bsd ${BSD_RD} cd${REV}.iso rdsetroot + lib*.a lib*.olist ${CBIN}.map *.o *.lo *.c bsd ${BSD_RD} cd${REV}.iso rm -rf cd-dir ${IMAGE}.d .ifdef RELEASEDIR -- cgit v1.2.3