summaryrefslogtreecommitdiff
path: root/sys/arch/beagle/conf
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/beagle/conf')
-rw-r--r--sys/arch/beagle/conf/Makefile.beagle20
1 files changed, 19 insertions, 1 deletions
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