aboutsummaryrefslogtreecommitdiffstats
path: root/org.openembedded.bc.ui/scripts/oe_dev_install.sh
blob: 1e0d5f4eea53005f21ab3ceae3b568b88c235e65 (plain)
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
41
42
43
44
45
46
47
#!/bin/bash
# Installation script for OpenEmbedded dev branch.
# Adapted from instructions available at http://wiki.openembedded.net/index.php/Getting_started
# This script should be executable after substituting ${} variables with real values.
# 4/3/2009 Ken Gilmer

# These are the variables that are queried in the UI.  The following lines are parsed by the install wizard.
# {|D|Install Directory|R|${HOME}/oe||}
# {|D|Build Directory|R|${HOME}/oe_build||}
# {|T|Repository URL|R|git://git.openembedded.net/openembedded||}
# {|T|Init Script|R|init.sh||}
# {|T|Distribution|R|angstrom-2010.x||}
# {|T|Machine|R|beagleboard||}
# {|T|Package Cache Directory|R|${HOME}/sources||}

# System Check
which git
which svn
which python

BITBAKE_VERSION=1.10.2

# Directory Setup
[ -d ${Install Directory} ] || mkdir -p ${Install Directory} 
cd ${Install Directory}
mkdir -p build/conf
[ -d ${Build Directory} ] || mkdir -p ${Build Directory}

# Bitbake Setup
wget http://download.berlios.de/bitbake/bitbake-$BITBAKE_VERSION.tar.gz
tar xfzv bitbake-$BITBAKE_VERSION.tar.gz
mv bitbake-$BITBAKE_VERSION bitbake
rm bitbake-$BITBAKE_VERSION.tar.gz


# OpenEmbedded Setup
git clone ${Repository URL}
echo "BBFILES = \"${Install Directory}/openembedded/recipes/*/*.bb\"" > build/conf/local.conf
echo "DISTRO = \"${Distribution}\"" >> build/conf/local.conf
echo "MACHINE = \"${Machine}\"" >> build/conf/local.conf
echo "DL_DIR = \"${Package Cache Directory}\"" >> build/conf/local.conf
echo "TMPDIR = \"${Build Directory}\"" >> build/conf/local.conf

# Environment Setup Script
echo "export BBPATH=${Install Directory}/build:${Install Directory}/openembedded" > ${Init Script}
echo "export PATH=${Install Directory}/bitbake/bin:$PATH" >> ${Init Script}
chmod u+x ${Init Script}