aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.arm
diff options
context:
space:
mode:
Diffstat (limited to 'release/Makefile.arm')
-rw-r--r--release/Makefile.arm16
1 files changed, 16 insertions, 0 deletions
diff --git a/release/Makefile.arm b/release/Makefile.arm
index e3c4a0873144..b7092c32bbc1 100644
--- a/release/Makefile.arm
+++ b/release/Makefile.arm
@@ -98,6 +98,22 @@ arm-mkfs${BOARD:tl}:
${.OBJDIR}/arm-${BOARD:tl}-boot
.endif
+arm-mkimage${BOARD:tl}:
+.if exists(/dev/$$(cat ${.OBJDIR}/${${BOARD:tu}BOOTDEV})
+ umount ${.OBJDIR}/arm-${BOARD:tl}-boot
+.endif
+.if exists(/dev/$$(cat ${.OBJDIR}/${${BOARD:tu}MDDEV})
+ umount ${.OBJDIR}/arm-${BOARD:tl}
+.endif
+# FIXME:
+# Do these things need to be MBR?
+# I'm also not entirely sure this is correct, anyway.
+#
+ mkimg -s ${${BOARD}PARTSCHEME} \
+ -b ${${BOARD:tu}BOOTFILE} \
+ -p freebsd/rootfs:=${${BOARD:tu}MDFILE} \
+ -o ${${BOARD:tu}IMAGE}
+
build-arm-ports${BOARD:tl}:
. if defined(ARMPORTS) && !empty(ARMPORTS)
. if !exists(${PORTSDIR}/Makefile)