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
This commit is contained in:
Glen Barber 2015-03-26 03:05:07 +00:00
parent 6c5e58750c
commit 6d81f38c6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/release-arm-redux/; revision=280655
6 changed files with 21 additions and 0 deletions

View File

@ -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)

View File

@ -3,6 +3,7 @@
#
BOARD= BEAGLEBONE
${BOARD}PARTSCHEME= mbr
ARMPORTS= sysutils/u-boot-beaglebone
build-arm-${BOARD:tl}: build-arm-ports${BOARD:tl}

View File

@ -3,6 +3,7 @@
#
BOARD= PANDABOARD
${BOARD}PARTSCHEME= mbr
build-arm-${BOARD:tl}:
touch ${.TARGET}

View File

@ -3,6 +3,7 @@
#
BOARD= RPI-B
${BOARD}PARTSCHEME= mbr
ARMPORTS= sysutils/u-boot-rpi
build-arm-${BOARD:tl}: build-arm-ports${BOARD:tl}

View File

@ -3,6 +3,7 @@
#
BOARD= WANDBOARD-QUAD
${BOARD}PARTSCHEME= mbr
ARMPORTS= sysutils/u-boot-wandboard
build-arm-${BOARD:tl}: build-arm-ports${BOARD:tl}

View File

@ -3,6 +3,7 @@
#
BOARD= ZEDBOARD
${BOARD}PARTSCHEME= mbr
build-arm-${BOARD:tl}:
touch ${.TARGET}