aboutsummaryrefslogtreecommitdiff
path: root/release/tools/arm
diff options
context:
space:
mode:
Diffstat (limited to 'release/tools/arm')
-rw-r--r--release/tools/arm/crochet-BEAGLEBONE.conf11
-rw-r--r--release/tools/arm/crochet-RPI2.conf29
2 files changed, 40 insertions, 0 deletions
diff --git a/release/tools/arm/crochet-BEAGLEBONE.conf b/release/tools/arm/crochet-BEAGLEBONE.conf
index e72814fbdca7..7a32542ed0f9 100644
--- a/release/tools/arm/crochet-BEAGLEBONE.conf
+++ b/release/tools/arm/crochet-BEAGLEBONE.conf
@@ -27,3 +27,14 @@ FREEBSD_WORLD_EXTRA_ARGS=""
FREEBSD_KERNEL_EXTRA_ARGS=""
FREEBSD_EXTRA_ARGS=""
IMG=${WORKDIR}/FreeBSD-${_REVISION}-${_BRANCH}-${TARGET}-${TARGET_ARCH}-${KERNCONF}.img
+BEAGLEBONE_UBOOT=/tmp/external/u-boot-beaglebone
+
+beaglebone_check_uboot() {
+ mkdir -p "${BEAGLEBONE_UBOOT}"
+ ln -fs /usr/local/share/u-boot/u-boot-beaglebone/MLO \
+ ${BEAGLEBONE_UBOOT}/MLO
+ ln -fs /usr/local/share/u-boot/u-boot-beaglebone/u-boot.img \
+ ${BEAGLEBONE_UBOOT}/bb-uboot.img
+ ln -fs ${BOARDDIR}/files/uEnv.txt \
+ ${BEAGLEBONE_UBOOT}/bb-uenv.txt
+}
diff --git a/release/tools/arm/crochet-RPI2.conf b/release/tools/arm/crochet-RPI2.conf
new file mode 100644
index 000000000000..7ecab4ca5b44
--- /dev/null
+++ b/release/tools/arm/crochet-RPI2.conf
@@ -0,0 +1,29 @@
+#
+# $FreeBSD$
+#
+
+# This is the configuration file for use with crochet to produce
+# FreeBSD Raspberry Pi 2 images.
+
+board_setup RaspberryPi2
+option ImageSize 1gb
+option Growfs
+
+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=RPI2
+TARGET=arm
+TARGET_ARCH=armv6
+FREEBSD_BUILDWORLD_EXTRA_ARGS="${WORLD_FLAGS}"
+FREEBSD_BUILDKERNEL_EXTRA_ARGS="${KERNEL_FLAGS}"
+FREEBSD_INSTALLWORLD_EXTRA_ARGS=""
+FREEBSD_INSTALLKERNEL_EXTRA_ARGS=""
+FREEBSD_WORLD_EXTRA_ARGS=""
+FREEBSD_KERNEL_EXTRA_ARGS=""
+FREEBSD_EXTRA_ARGS=""
+IMG=${WORKDIR}/FreeBSD-${_REVISION}-${_BRANCH}-${TARGET}-${TARGET_ARCH}-${KERNCONF}.img