From 94b4c04ebc6dcf9a532dc00a0abf1c08cc91b0ce Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Mon, 17 Oct 2011 02:59:49 +0000 Subject: Rules to build bsd.rd and bsd.umg, Should not be here, but until we get bootloader working and rather than have several people maintain this in their own trees... As soon as a bootloader is written this can be removed. --- sys/arch/beagle/conf/Makefile.beagle | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'sys/arch/beagle/conf') diff --git a/sys/arch/beagle/conf/Makefile.beagle b/sys/arch/beagle/conf/Makefile.beagle index e6f7bd7a851..89a96da0f91 100644 --- a/sys/arch/beagle/conf/Makefile.beagle +++ b/sys/arch/beagle/conf/Makefile.beagle @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.beagle,v 1.35 2011/07/07 22:28:18 guenther Exp $ +# $OpenBSD: Makefile.beagle,v 1.36 2011/10/17 02:59:48 drahn Exp $ # For instructions on building kernels consult the config(8) and options(4) # manual pages. @@ -174,4 +174,22 @@ install-kernel-${MACHINE_NAME}: . endfor .endif + +# until we get native booting working, put this in the tree. +bsdrd.img: bsd.rd + ${OBJCOPY} -O binary bsd.rd bsdrd.img + +bsd.img: bsd + ${OBJCOPY} -O binary bsd bsd.img + +bsdrd.umg: bsdrd.img + mkuboot -a arm -o linux -e ${KERNEL_BASE_PHYS} -l ${KERNEL_BASE_PHYS} bsdrd.img bsdrd.umg + +bsd.umg: bsd.img + mkuboot -a arm -o linux -e ${KERNEL_BASE_PHYS} -l ${KERNEL_BASE_PHYS} bsd.img bsd.umg + +bsd.rd: bsd + cp bsd bsd.rd + $S/../distrib/${_mach}/ramdisk/rdsetroot < $S/../distrib/${_mach}/ramdisk/mr.fs bsd.rd + %RULES -- cgit v1.2.3