aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--release/Makefile.arm16
-rw-r--r--release/arm/Makefile.BEAGLEBONE1
-rw-r--r--release/arm/Makefile.PANDABOARD1
-rw-r--r--release/arm/Makefile.RPI-B1
-rw-r--r--release/arm/Makefile.WANDBOARD-QUAD1
-rw-r--r--release/arm/Makefile.ZEDBOARD1
6 files changed, 21 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)
diff --git a/release/arm/Makefile.BEAGLEBONE b/release/arm/Makefile.BEAGLEBONE
index fdb1c2f5fee9..5f59f0317d88 100644
--- a/release/arm/Makefile.BEAGLEBONE
+++ b/release/arm/Makefile.BEAGLEBONE
@@ -3,6 +3,7 @@
#
BOARD= BEAGLEBONE
+${BOARD}PARTSCHEME= mbr
ARMPORTS= sysutils/u-boot-beaglebone
build-arm-${BOARD:tl}: build-arm-ports${BOARD:tl}
diff --git a/release/arm/Makefile.PANDABOARD b/release/arm/Makefile.PANDABOARD
index ecec392584c4..cd911e9cbb62 100644
--- a/release/arm/Makefile.PANDABOARD
+++ b/release/arm/Makefile.PANDABOARD
@@ -3,6 +3,7 @@
#
BOARD= PANDABOARD
+${BOARD}PARTSCHEME= mbr
build-arm-${BOARD:tl}:
touch ${.TARGET}
diff --git a/release/arm/Makefile.RPI-B b/release/arm/Makefile.RPI-B
index cf33862c0a72..c81e51ed35c6 100644
--- a/release/arm/Makefile.RPI-B
+++ b/release/arm/Makefile.RPI-B
@@ -3,6 +3,7 @@
#
BOARD= RPI-B
+${BOARD}PARTSCHEME= mbr
ARMPORTS= sysutils/u-boot-rpi
build-arm-${BOARD:tl}: build-arm-ports${BOARD:tl}
diff --git a/release/arm/Makefile.WANDBOARD-QUAD b/release/arm/Makefile.WANDBOARD-QUAD
index 9afc9f6f9e20..d7f7ff7e4474 100644
--- a/release/arm/Makefile.WANDBOARD-QUAD
+++ b/release/arm/Makefile.WANDBOARD-QUAD
@@ -3,6 +3,7 @@
#
BOARD= WANDBOARD-QUAD
+${BOARD}PARTSCHEME= mbr
ARMPORTS= sysutils/u-boot-wandboard
build-arm-${BOARD:tl}: build-arm-ports${BOARD:tl}
diff --git a/release/arm/Makefile.ZEDBOARD b/release/arm/Makefile.ZEDBOARD
index a17473fe80d6..5d3a6856cc1d 100644
--- a/release/arm/Makefile.ZEDBOARD
+++ b/release/arm/Makefile.ZEDBOARD
@@ -3,6 +3,7 @@
#
BOARD= ZEDBOARD
+${BOARD}PARTSCHEME= mbr
build-arm-${BOARD:tl}:
touch ${.TARGET}