diff options
author | Glen Barber <gjb@FreeBSD.org> | 2013-12-28 02:27:06 +0000 |
---|---|---|
committer | Glen Barber <gjb@FreeBSD.org> | 2013-12-28 02:27:06 +0000 |
commit | 34d63eb56086384594a6c97e5128f9602e0fdaaf (patch) | |
tree | e9da829aef87f1df89415d982271614089f85488 /release/arm/RPI-B.conf | |
parent | df5e2cbe16c763a318e99e672fe06da882df445b (diff) | |
download | src-34d63eb56086384594a6c97e5128f9602e0fdaaf.tar.gz src-34d63eb56086384594a6c97e5128f9602e0fdaaf.zip |
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
Notes:
svn path=/user/gjb/hacking/release-embedded/; revision=259994
Diffstat (limited to 'release/arm/RPI-B.conf')
-rw-r--r-- | release/arm/RPI-B.conf | 37 |
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 +fi + +# Build chroot configuration +TARGET="amd64" +TARGET_ARCH="amd64" +SVNROOT="svn://svn.FreeBSD.org" +SRCBRANCH="base/head@rHEAD" +DOCBRANCH="doc/head@rHEAD" +PORTBRANCH="ports/head@rHEAD" +NODOC=yes + +# Build target configuration +# Since this file is sourced by a script that runs another +# script, these must be exported. +set -a +CHROOTDIR="/scratch" +EMBEDDEDBUILD=1 +EMBEDDEDPORTS="lang/python textproc/gsed" +XDEV="arm" +XDEV_ARCH="arm" +KERNEL="RPI-B" +CROCHETSRC="https://github.com/kientzle/crochet-freebsd" +CROCHETBRANCH="trunk" +UBOOTSRC="https://github.com/gonzoua/u-boot-pi" +UBOOTBRANCH="trunk" +UBOOTDIR="/tmp/crochet/u-boot-rpi" +set +a |