path: root/release/arm/RPI-B.conf
diff options
authorGlen Barber <gjb@FreeBSD.org>2013-12-28 02:27:06 +0000
committerGlen Barber <gjb@FreeBSD.org>2013-12-28 02:27:06 +0000
commit34d63eb56086384594a6c97e5128f9602e0fdaaf (patch)
treee9da829aef87f1df89415d982271614089f85488 /release/arm/RPI-B.conf
parentdf5e2cbe16c763a318e99e672fe06da882df445b (diff)
Implement cross build support for embedded devices into
release.sh: - Modify release/release.sh to recognize an 'EMBEDDEDBUILD' variable. When set, release/release.sh will build the chroot userland as is done for big-iron builds. - Instead of running the 'buildworld', 'buildkernel', and 'release' targets in the chroot, a separate script is run. The script tools/release/${XDEV}/release.sh sets up the rest of the chroot workspace, such as installing ports that will be needed, and building the 'xdev' target. - crochet (by kientzle@) is checked out from the upstream repository (and if needed, u-boot, in the case of Raspberry Pi). - tools/release/${XDEV}/release.sh then runs crochet with a configuration file specific to the ${KERNCONF} being built. Note that this is effectively a first-pass attempt to integrate this into the release process. Tested against: head@r259961 Sponsored by: The FreeBSD Foundation
Notes: svn path=/user/gjb/hacking/release-embedded/; revision=259994
Diffstat (limited to 'release/arm/RPI-B.conf')
1 files changed, 37 insertions, 0 deletions
diff --git a/release/arm/RPI-B.conf b/release/arm/RPI-B.conf
new file mode 100644
index 000000000000..776e86d11eea
--- /dev/null
+++ b/release/arm/RPI-B.conf
@@ -0,0 +1,37 @@
+# $FreeBSD$
+# This is only supported on amd64 right now. It may work on
+# i386, but I do not have the hardware to test, so until I get
+# a VM set up to make sure, be cautious and assume it will not.
+if [ "$(uname -p)" != "amd64" ] || [ "$(uname -m)" != "amd64" ]; then
+ echo "This is only supported on amd64 right now."
+ exit 0
+# Build chroot configuration
+# Build target configuration
+# Since this file is sourced by a script that runs another
+# script, these must be exported.
+set -a
+EMBEDDEDPORTS="lang/python textproc/gsed"
+set +a