aboutsummaryrefslogtreecommitdiff
path: root/release/tools/arm/crochet-BEAGLEBONE.conf
blob: 7a32542ed0f95ad39550f25dfd285d942bef5251 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# $FreeBSD$
#

# This is the configuration file for use with crochet to produce
# FreeBSD BeagleBone images.

board_setup BeagleBone
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=BEAGLEBONE
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
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
}