aboutsummaryrefslogtreecommitdiff
path: root/release/tools/arm/crochet-BEAGLEBONE.conf
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2014-01-24 22:12:59 +0000
committerGlen Barber <gjb@FreeBSD.org>2014-01-24 22:12:59 +0000
commitd725697e064e41f9fb8536267dda62676bf1a7e8 (patch)
tree27377244a667e0bc71dc117ae361555fa76d0f13 /release/tools/arm/crochet-BEAGLEBONE.conf
parentb479fd538c90f0f6b97a81d7931405ce7889f6f4 (diff)
downloadsrc-d725697e064e41f9fb8536267dda62676bf1a7e8.tar.gz
src-d725697e064e41f9fb8536267dda62676bf1a7e8.zip
Add initial support for building arm BEAGLEBONE images.
- In arm/release.sh: - Move crochet work directory creation to occur earlier, since its parent directory is needed to store a fetched u-boot version. - Add a before_build() function as a quick hack to run board-specific (kernel configuration specific, really) commands, if any. - For the BEAGLEBONE kernel, a specific version of u-boot source is needed. Fetch the source in before_build() for this case. Unfortunately, there are no checksums available (that I can find) for these sources. For a quick solution, add the hard-coded sha256 of the tarball, and fetch from my public_html/ directory. A more permanent solution for this needs to be found. Add initial release.sh and crochet configuration files for the BEAGLEBONE build. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/user/gjb/hacking/release-embedded/; revision=261139
Diffstat (limited to 'release/tools/arm/crochet-BEAGLEBONE.conf')
-rw-r--r--release/tools/arm/crochet-BEAGLEBONE.conf27
1 files changed, 27 insertions, 0 deletions
diff --git a/release/tools/arm/crochet-BEAGLEBONE.conf b/release/tools/arm/crochet-BEAGLEBONE.conf
new file mode 100644
index 000000000000..a9c4e0e3a0f2
--- /dev/null
+++ b/release/tools/arm/crochet-BEAGLEBONE.conf
@@ -0,0 +1,27 @@
+#
+# $FreeBSD$
+#
+
+# This is the configuration file for use with crochet to produce
+# FreeBSD BeagleBone images.
+
+board_setup BeagleBone
+option ImageSize 1gb
+option AutoSize
+
+export MAKEOBJDIRPREFIX=/usr/obj
+FREEBSD_SRC=/usr/src
+__MAKE_CONF=/dev/null
+SRCCONF=/dev/null
+WORKDIR=/usr/obj
+_BRANCH=$(make -C ${FREEBSD_SRC}/release -V BRANCH)
+_REVISION=$(make -C ${FREEBSD_SRC}/release -V REVISION)
+KERNCONF=BEAGLEBONE
+FREEBSD_BUILDWORLD_EXTRA_ARGS=""
+FREEBSD_INSTALLWORLD_EXTRA_ARGS=""
+FREEBSD_BUILDKERNEL_EXTRA_ARGS=""
+FREEBSD_INSTALLKERNEL_EXTRA_ARGS=""
+FREEBSD_WORLD_EXTRA_ARGS=""
+FREEBSD_KERNEL_EXTRA_ARGS=""
+FREEBSD_EXTRA_ARGS=""
+IMG=${WORKDIR}/FreeBSD-${_REVISION}-${_BRANCH}-${KERNCONF}.img