aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-06 19:58:12 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-06 19:58:12 +0000
commit4ad8b75d537c206da46429897a5ff4ddc3b94ec3 (patch)
tree8e599e27a31653a80feea79822f6e77ce1c456be /release/release.sh
parent9056dae945680bce10b3cf844caf83cb51254a0a (diff)
downloadsrc-4ad8b75d537c206da46429897a5ff4ddc3b94ec3.tar.gz
src-4ad8b75d537c206da46429897a5ff4ddc3b94ec3.zip
Add tools/arm.subr to contain common subroutines used for
building arm images. This is similar to tools/vmimage.subr used for building virtual machine disk images. By default, only arm_create_disk() and arm_install_base() contain real functionality here, and arm_install_uboot() must be overridden in the arm/KERNEL.conf file. In release.sh, make create_arm_armv6_build_release() do something now. In arm/BEAGLEBONE.conf, set IMAGE_SIZE, PART_SCHEME, FAT_SIZE, FAT_TYPE, and MD_ARGS, as well as make arm_install_uboot() functional. Parts of this were taken from disecting a previous BEAGLEBONE image, and other parts obtained from Crochet sources. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=282566
Diffstat (limited to 'release/release.sh')
-rwxr-xr-xrelease/release.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/release/release.sh b/release/release.sh
index b51ebece7fd6..367eae4db9bf 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -327,6 +327,17 @@ chroot_arm_armv6_build_release() {
if [ -e "${RELENGDIR}/tools/${TARGET}.subr" ]; then
. "${RELENGDIR}/tools/${TARGET}.subr"
fi
+ . "${RELENGDIR}/arm/${KERNEL}.conf"
+ WORLDDIR="$(eval chroot ${CHROOTDIR} make -C /usr/src/release -V WORLDDIR)"
+ OBJDIR="$(eval chroot ${CHROOTDIR} make -C /usr/src/release -V .OBJDIR)"
+ DESTDIR="${OBJDIR}/${KERNEL}"
+ IMGBASE="${OBJDIR}/${KERNEL}.img"
+ mkdir -p ${DESTDIR}
+ truncate -s ${IMAGE_SIZE} ${IMGBASE}
+ mddev=$(mdconfig -f ${IMGBASE} ${MD_ARGS})
+ arm_create_disk
+ arm_install_base
+ arm_install_uboot
return 0
} # chroot_arm_armv6_build_release()