diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2011-10-17 02:59:49 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2011-10-17 02:59:49 +0000 |
commit | 94b4c04ebc6dcf9a532dc00a0abf1c08cc91b0ce (patch) | |
tree | 1cd565a4be34558677e10dfd27497f9645e9837a /sys/arch/beagle | |
parent | 7134aba0ef997beae0023b69d5bb90ac114a0829 (diff) |
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.
Diffstat (limited to 'sys/arch/beagle')
-rw-r--r-- | sys/arch/beagle/conf/Makefile.beagle | 20 |
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 |