From 9bd8584be003206951fc40592b806b6e8403eb6f Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Fri, 8 Jul 2011 21:39:33 +0000 Subject: Allow the elf rdsetroot operation to function on 32 bit and 64 bit binaries. Enables developers to build arm ramdisk kernels on amd64 archs OK deraadt@ 'looked fine' miod@ --- distrib/sparc64/bsd.rd/Makefile | 6 ++++-- distrib/sparc64/ramdisk/Makefile | 6 ++++-- distrib/sparc64/ramdiskB/Makefile | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) (limited to 'distrib/sparc64') diff --git a/distrib/sparc64/bsd.rd/Makefile b/distrib/sparc64/bsd.rd/Makefile index 3a584c22fc5..b3f13ad3210 100644 --- a/distrib/sparc64/bsd.rd/Makefile +++ b/distrib/sparc64/bsd.rd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.22 2011/04/18 16:52:10 thib Exp $ +# $OpenBSD: Makefile,v 1.23 2011/07/08 21:39:32 drahn Exp $ TOP= ${.CURDIR}/.. @@ -62,7 +62,9 @@ ${IMAGE}: do_prep do_mount do_files do_umount mv -f ${REALIMAGE} ${IMAGE} elfrdsetroot: ${TOP}/../common/elfrdsetroot.c - ${HOSTCC} ${HOSTCFLAGS} -o elfrdsetroot ${TOP}/../common/elfrdsetroot.c + ${HOSTCC} ${HOSTCFLAGS} -o elfrdsetroot \ + ${TOP}/../common/elfrdsetroot.c ${TOP}/../common/elf32.c \ + ${TOP}/../common/elf64.c do_prep: dd if=/dev/zero of=${REALIMAGE} count=${NBLKS} diff --git a/distrib/sparc64/ramdisk/Makefile b/distrib/sparc64/ramdisk/Makefile index 01c6ff1efea..ecf405fc2a6 100644 --- a/distrib/sparc64/ramdisk/Makefile +++ b/distrib/sparc64/ramdisk/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.25 2011/04/18 16:52:10 thib Exp $ +# $OpenBSD: Makefile,v 1.26 2011/07/08 21:39:32 drahn Exp $ TOP= ${.CURDIR}/.. @@ -102,7 +102,9 @@ rd_teardown: -vnconfig -u ${VND} elfrdsetroot: ${TOP}/../common/elfrdsetroot.c - ${HOSTCC} -o elfrdsetroot ${TOP}/../common/elfrdsetroot.c + ${HOSTCC} ${HOSTCFLAGS} -o elfrdsetroot \ + ${TOP}/../common/elfrdsetroot.c ${TOP}/../common/elf32.c \ + ${TOP}/../common/elf64.c unconfig: -umount -f ${MOUNT_POINT} diff --git a/distrib/sparc64/ramdiskB/Makefile b/distrib/sparc64/ramdiskB/Makefile index ee6b90ea5fc..fe8acfb8669 100644 --- a/distrib/sparc64/ramdiskB/Makefile +++ b/distrib/sparc64/ramdiskB/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.18 2011/04/18 16:52:10 thib Exp $ +# $OpenBSD: Makefile,v 1.19 2011/07/08 21:39:32 drahn Exp $ TOP= ${.CURDIR}/.. @@ -102,7 +102,9 @@ rd_teardown: -vnconfig -u ${VND} elfrdsetroot: ${TOP}/../common/elfrdsetroot.c - ${HOSTCC} -o elfrdsetroot ${TOP}/../common/elfrdsetroot.c + ${HOSTCC} ${HOSTCFLAGS} -o elfrdsetroot \ + ${TOP}/../common/elfrdsetroot.c ${TOP}/../common/elf32.c \ + ${TOP}/../common/elf64.c unconfig: -umount -f ${MOUNT_POINT} -- cgit v1.2.3