aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.arm
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-03-26 03:05:07 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-03-26 03:05:07 +0000
commit6d81f38c6a32511fb4c483348b1168d501bc76bc (patch)
tree4de262ea9754c5ffddf7b3a95a7c701facb80380 /release/Makefile.arm
parent6c5e58750cde06819d08cf91cba929f3bfcc6874 (diff)
downloadsrc-6d81f38c6a32511fb4c483348b1168d501bc76bc.tar.gz
src-6d81f38c6a32511fb4c483348b1168d501bc76bc.zip
Attempt to create the final image (though not nearly ready
for it yet). This is probably very broken and/or wrong, but that's why we have projects branches. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=280655
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)