Skip to content
This repository
Newer
Older
100755 412 lines (341 sloc) 13.773 kb
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
1 #!/bin/bash
2
3 # Original script done by Don Darling
4 # Later changes by Koen Kooi and Brijesh Singh
5
6 # Revision history:
108c0345 » koenkooi
2011-05-05 oebb: switch to git managed local.conf
7 # 20090902: download from twiki
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
8 # 20090903: Weakly assign MACHINE and DISTRO
9 # 20090904: * Don't recreate local.conf is it already exists
10 # * Pass 'unknown' machines to OE directly
11 # 20090918: Fix /bin/env location
12 # Don't pass MACHINE via env if it's not set
13 # Changed 'build' to 'bitbake' to prepare people for non-scripted usage
14 # Print bitbake command it executes
15 # 20091012: Add argument to accept commit id.
16 # 20091202: Fix proxy setup
7de547ce » koenkooi
2010-03-31 oebb: don't generate mirror tarballs by default
17 #
18 # For further changes consult 'git log' or browse to:
108c0345 » koenkooi
2011-05-05 oebb: switch to git managed local.conf
19 # http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/setup-scripts/
7de547ce » koenkooi
2010-03-31 oebb: don't generate mirror tarballs by default
20 # to see the latest revision history
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
21
1f3cc146 » koenkooi
2011-03-02 oebb: move to release tag
22 # Use this till we get a maintenance branch based of the release tag
23
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
24 ###############################################################################
25 # User specific vars like proxy servers
26 ###############################################################################
27
28 #PROXYHOST=wwwgate.ti.com
29 #PROXYPORT=80
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
30 PROXYHOST=""
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
31
32 ###############################################################################
33 # OE_BASE - The root directory for all OE sources and development.
34 ###############################################################################
35 OE_BASE=${PWD}
52e95303 » koenkooi
2011-05-05 oebb: recreate environment file on BASE_VERSION mismatch
36 # incremement this to force recreation of config files
885609ef » koenkooi
2011-10-06 layerman: start with meta-texasinstruments -> meta-ti rename
37 BASE_VERSION=3
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
38 OE_ENV_FILE=~/.oe/environment-oecore
f6f42a12 » koenkooi
2010-04-13 oebb: add infrastructure for using git submodules, disabled for now
39
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
40 ###############################################################################
41 # SET_ENVIRONMENT() - Setup environment variables for OE development
42 ###############################################################################
43 function set_environment()
44 {
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
45
03810d58 » koenkooi
2011-02-23 oebb: work with bitbake master
46 # Workaround for differences between yocto bitbake and vanilla bitbake
47 export BBFETCH2=True
48
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
49 export TAG
50
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
51 #--------------------------------------------------------------------------
52 # If an env already exists, use it, otherwise generate it
53 #--------------------------------------------------------------------------
52e95303 » koenkooi
2011-05-05 oebb: recreate environment file on BASE_VERSION mismatch
54
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
55 if [ -e ${OE_ENV_FILE} ] ; then
56 . ${OE_ENV_FILE}
63ceb904 » kraj
2011-05-05 oebb.sh, .gitignore, build/conf: Add capability to issue bitbake comm…
57 fi
52e95303 » koenkooi
2011-05-05 oebb: recreate environment file on BASE_VERSION mismatch
58
59 if [ x"${BASE_VERSION}" != x"${SCRIPTS_BASE_VERSION}" ] ; then
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
60 echo "BASE_VERSION mismatch, recreating ${OE_ENV_FILE}"
61 rm ${OE_ENV_FILE}
63ceb904 » kraj
2011-05-05 oebb.sh, .gitignore, build/conf: Add capability to issue bitbake comm…
62 fi
52e95303 » koenkooi
2011-05-05 oebb: recreate environment file on BASE_VERSION mismatch
63
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
64 if [ -e ${OE_ENV_FILE} ] ; then
65 . ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
66 else
67
d9bdbe27 » koenkooi
2010-03-23 oebb: replace all tabs with 4 spaces for consistency
68 mkdir -p ~/.oe/
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
69
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
70 #--------------------------------------------------------------------------
71 # Specify distribution information
72 #--------------------------------------------------------------------------
704f77d4 » koenkooi
2010-11-01 oebb: integrate angstrom into the yoctoproject as a layer
73 DISTRO="angstrom-2010.x"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
74 DISTRO_DIRNAME=`echo $DISTRO | sed s#[.-]#_#g`
75
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
76 echo "export SCRIPTS_BASE_VERSION=${BASE_VERSION}" > ${OE_ENV_FILE}
77 echo "export BBFETCH2=True" >> ${OE_ENV_FILE}
03810d58 » koenkooi
2011-02-23 oebb: work with bitbake master
78
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
79 echo "export DISTRO=\"${DISTRO}\"" >> ${OE_ENV_FILE}
80 echo "export DISTRO_DIRNAME=\"${DISTRO_DIRNAME}\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
81
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
82 #--------------------------------------------------------------------------
83 # Specify the root directory for your OpenEmbedded development
84 #--------------------------------------------------------------------------
63ceb904 » kraj
2011-05-05 oebb.sh, .gitignore, build/conf: Add capability to issue bitbake comm…
85 OE_BUILD_DIR=${OE_BASE}
86 OE_BUILD_TMPDIR="${OE_BUILD_DIR}/build/tmp-${DISTRO_DIRNAME}"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
87 OE_SOURCE_DIR=${OE_BASE}/sources
448286d5 » koenkooi
2010-03-23 oebb: add some missing vars to environment script, reported by Gregg …
88
559117dc » koenkooi
2010-12-24 oebb: catch up with yocto bitbake wrapper usage for pseude
89 export BUILDDIR=${OE_BUILD_DIR}
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
90 mkdir -p ${OE_BUILD_DIR}
91 mkdir -p ${OE_SOURCE_DIR}
92 export OE_BASE
93
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
94 echo "export OE_BUILD_DIR=\"${OE_BUILD_DIR}\"" >> ${OE_ENV_FILE}
95 echo "export BUILDDIR=\"${OE_BUILD_DIR}\"" >> ${OE_ENV_FILE}
96 echo "export OE_BUILD_TMPDIR=\"${OE_BUILD_TMPDIR}\"" >> ${OE_ENV_FILE}
97 echo "export OE_SOURCE_DIR=\"${OE_SOURCE_DIR}\"" >> ${OE_ENV_FILE}
448286d5 » koenkooi
2010-03-23 oebb: add some missing vars to environment script, reported by Gregg …
98
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
99 echo "export OE_BASE=\"${OE_BASE}\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
100
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
101 #--------------------------------------------------------------------------
102 # Include up-to-date bitbake in our PATH.
103 #--------------------------------------------------------------------------
c36e086a » koenkooi
2011-02-21 oebb: convert from yocto to oe-core
104 export PATH=${OE_SOURCE_DIR}/openembedded-core/scripts:${OE_SOURCE_DIR}/bitbake/bin:${PATH}
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
105
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
106 echo "export PATH=\"${PATH}\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
107
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
108 #--------------------------------------------------------------------------
109 # Make sure Bitbake doesn't filter out the following variables from our
110 # environment.
111 #--------------------------------------------------------------------------
be691f60 » kraj
2011-04-21 oebb.sh: Export TCLIBC,TCMODE and delete ANGSTROMLIBC
112 export BB_ENV_EXTRAWHITE="MACHINE DISTRO TCLIBC TCMODE GIT_PROXY_COMMAND http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
113
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
114 echo "export BB_ENV_EXTRAWHITE=\"${BB_ENV_EXTRAWHITE}\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
115
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
116 #--------------------------------------------------------------------------
117 # Specify proxy information
118 #--------------------------------------------------------------------------
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
119 if [ "x$PROXYHOST" != "x" ] ; then
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
120 export http_proxy=http://${PROXYHOST}:${PROXYPORT}/
121 export ftp_proxy=http://${PROXYHOST}:${PROXYPORT}/
122
123 export SVN_CONFIG_DIR=${OE_BUILD_DIR}/subversion_config
124 export GIT_CONFIG_DIR=${OE_BUILD_DIR}/git_config
125
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
126 echo "export http_proxy=\"${http_proxy}\"" >> ${OE_ENV_FILE}
127 echo "export ftp_proxy=\"${ftp_proxy}\"" >> ${OE_ENV_FILE}
128 echo "export SVN_CONFIG_DIR=\"${SVN_CONFIG_DIR}\"" >> ${OE_ENV_FILE}
129 echo "export GIT_CONFIG_DIR=\"${GIT_CONFIG_DIR}\"" >> ${OE_ENV_FILE}
66f12b9a » koenkooi
2011-05-05 oebb: only write to env file from a single place
130 echo "export GIT_PROXY_COMMAND=\"\${GIT_CONFIG_DIR}/git-proxy.sh\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
131
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
132 config_svn_proxy
133 config_git_proxy
d9bdbe27 » koenkooi
2010-03-23 oebb: replace all tabs with 4 spaces for consistency
134 fi
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
135
136 #--------------------------------------------------------------------------
137 # Set up the bitbake path to find the OpenEmbedded recipes.
138 #--------------------------------------------------------------------------
c36e086a » koenkooi
2011-02-21 oebb: convert from yocto to oe-core
139 export BBPATH=${OE_BUILD_DIR}:${OE_SOURCE_DIR}/openembedded-core/meta${BBPATH_EXTRA}
00a0c9ec » jadonk
2010-08-03 Utilize commit ID in updates
140
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
141 echo "export BBPATH=\"${BBPATH}\"" >> ${OE_ENV_FILE}
00a0c9ec » jadonk
2010-08-03 Utilize commit ID in updates
142
d9bdbe27 » koenkooi
2010-03-23 oebb: replace all tabs with 4 spaces for consistency
143 #--------------------------------------------------------------------------
00a0c9ec » jadonk
2010-08-03 Utilize commit ID in updates
144 # Reconfigure dash
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
145 #--------------------------------------------------------------------------
0ed3d157 » koenkooi
2010-10-20 oebb.sh: fix autorun logic
146 if [ "$(readlink /bin/sh)" = "dash" ] ; then
08a30b26 » jadonk
2010-08-03 Eliminate dash deconfiguration prompt using expect
147 sudo aptitude install expect -y
148 expect -c 'spawn sudo dpkg-reconfigure -freadline dash; send "n\n"; interact;'
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
149 fi
8f98636b » koenkooi
2010-03-19 oebb: add usage note for ~/.oe/environment
150
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
151 echo "There now is a sourceable script in ~/.oe/enviroment. You can do '. ${OE_ENV_FILE}' and run 'bitbake something' without using $0 as wrapper"
152 fi # if -e ${OE_ENV_FILE}
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
153 }
154
155
156 ###############################################################################
157 # UPDATE_ALL() - Make sure everything is up to date
158 ###############################################################################
159 function update_all()
160 {
161 set_environment
162 update_oe
163 }
164
be088960 » koenkooi
2010-04-26 oebb: add clean command
165 ###############################################################################
166 # CLEAN_OE() - Delete TMPDIR
167 ###############################################################################
168 function clean_oe()
169 {
170 set_environment
00a0c9ec » jadonk
2010-08-03 Utilize commit ID in updates
171 echo "Cleaning ${OE_BUILD_TMPDIR}"
172 rm -rf ${OE_BUILD_TMPDIR}
be088960 » koenkooi
2010-04-26 oebb: add clean command
173 }
174
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
175
176 ###############################################################################
177 # OE_BUILD() - Build an OE package or image
178 ###############################################################################
179 function oe_build()
180 {
088be906 » koenkooi
2011-05-05 oebb: put machine in auto.conf
181 if [ ! -e ${OE_BUILD_DIR}/conf/auto.conf ] ; then
1631d041 » koenkooi
2010-10-20 oebb.sh: if MACHINE is set in env on first invocation autorun the con…
182 if [ -z $MACHINE ] ; then
183 echo "No config found, please run $0 config <machine> first"
184 else
185 CL_MACHINE=$MACHINE
0ed3d157 » koenkooi
2010-10-20 oebb.sh: fix autorun logic
186 set_environment
1631d041 » koenkooi
2010-10-20 oebb.sh: if MACHINE is set in env on first invocation autorun the con…
187 config_oe && update_all
188 fi
189 fi
190
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
191 set_environment
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
192 if [ -e ${OE_ENV_FILE} ] ; then
193 echo "Using ${OE_ENV_FILE} to setup needed variables. It is recommended to do '. ${OE_ENV_FILE}' and run 'bitbake something' without using $0 as wrapper"
81612384 » koenkooi
2010-06-18 oebb: improve messaging to user
194 fi
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
195 cd ${OE_BUILD_DIR}
196 if [ -z $MACHINE ] ; then
197 echo "Executing: bitbake" $*
198 bitbake $*
199 else
200 echo "Executing: MACHINE=${MACHINE} bitbake" $*
201 MACHINE=${MACHINE} bitbake $*
202 fi
203 }
204
205
206 ###############################################################################
00a0c9ec » jadonk
2010-08-03 Utilize commit ID in updates
207 # OE_CONFIG() - Configure OE for a target
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
208 ###############################################################################
209 function oe_config()
210 {
211 set_environment
212 config_oe
1631d041 » koenkooi
2010-10-20 oebb.sh: if MACHINE is set in env on first invocation autorun the con…
213 update_all
c7b71f4c » koenkooi
2010-03-23 oebb: be more verbose about ~/oe/.environment and report when config …
214
215 echo ""
d9bdbe27 » koenkooi
2010-03-23 oebb: replace all tabs with 4 spaces for consistency
216 echo "Setup for ${CL_MACHINE} completed"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
217 }
218
219 ###############################################################################
220 # UPDATE_OE() - Update OpenEmbedded distribution.
221 ###############################################################################
222 function update_oe()
223 {
e4d6fb80 » Gregg Lebovitz
2010-03-23 oebb: protect call to git_proxy setup as well
224 if [ "x$PROXYHOST" != "x" ] ; then
225 config_git_proxy
226 fi
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
227
20193e28 » koenkooi
2011-01-27 oebb: hide stash output, simplify oebb update handling
228 #manage meta-openembedded and meta-angstrom with layerman
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
229 env gawk -v command=update -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
230 }
231
232
233 ###############################################################################
234 # CONFIG_OE() - Configure OpenEmbedded
235 ###############################################################################
236 function config_oe()
237 {
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
238
239 MACHINE="${CL_MACHINE}"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
240
241 #--------------------------------------------------------------------------
242 # Write out the OE bitbake configuration file.
243 #--------------------------------------------------------------------------
244 mkdir -p ${OE_BUILD_DIR}/conf
245
108c0345 » koenkooi
2011-05-05 oebb: switch to git managed local.conf
246 # There's no need to rewrite site.conf when changing MACHINE
247 if [ ! -e ${OE_BUILD_DIR}/conf/site.conf ]; then
248 cat > ${OE_BUILD_DIR}/conf/site.conf <<_EOF
f8ca6dd3 » ceyusa
2010-08-06 oebb: add bblayers.conf
249
8526319f » koenkooi
2011-09-01 oebb: add SCONF_VERSION = "1" to site.conf
250 SCONF_VERSION = "1"
3cb4cabf » koenkooi
2010-10-19 oebb.sh: remote marmita reference for the time being and add some mor…
251
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
252 # Where to store sources
82cd3ba1 » koenkooi
2010-06-17 oebb: put downloaded sources in sources/ instead of build/
253 DL_DIR = "${OE_SOURCE_DIR}/downloads"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
254
63ceb904 » kraj
2011-05-05 oebb.sh, .gitignore, build/conf: Add capability to issue bitbake comm…
255 # Where to save shared state
256 SSTATE_DIR = "${OE_BUILD_DIR}/build/sstate-cache"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
257
258 # Which files do we want to parse:
33d1c014 » kraj
2011-04-28 oebb.sh: Add missing one directory to BBFILES regexp
259 BBFILES ?= "${OE_SOURCE_DIR}/openembedded-core/meta/recipes-*/*/*.bb"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
260
261 TMPDIR = "${OE_BUILD_TMPDIR}"
262
263 # Go through the Firewall
264 #HTTP_PROXY = "http://${PROXYHOST}:${PROXYPORT}/"
265
266 _EOF
267 fi
088be906 » koenkooi
2011-05-05 oebb: put machine in auto.conf
268 if [ ! -e ${OE_BUILD_DIR}/conf/auto.conf ]; then
269 cat > ${OE_BUILD_DIR}/conf/auto.conf <<_EOF
270 MACHINE ?= "${MACHINE}"
271 _EOF
52577c8a » kraj
2011-10-20 oebb.sh: Update MACHINE entry in auto.conf
272 else
4ac1e500 » koenkooi
2012-02-29 oebb: preserve quoting while updating auto.conf
273 eval "sed -i -e 's/^MACHINE.*$/MACHINE ?= \"${MACHINE}\"/g' ${OE_BUILD_DIR}/conf/auto.conf"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
274 fi
275 }
276
277 ###############################################################################
278 # CONFIG_SVN_PROXY() - Configure subversion proxy information
279 ###############################################################################
280 function config_svn_proxy()
281 {
282 if [ ! -f ${SVN_CONFIG_DIR}/servers ]
283 then
284 mkdir -p ${SVN_CONFIG_DIR}
285 cat >> ${SVN_CONFIG_DIR}/servers <<_EOF
286 [global]
287 http-proxy-host = ${PROXYHOST}
288 http-proxy-port = ${PROXYPORT}
289 _EOF
290 fi
291 }
292
293
294 ###############################################################################
295 # CONFIG_GIT_PROXY() - Configure GIT proxy information
296 ###############################################################################
297 function config_git_proxy()
298 {
299 if [ ! -f ${GIT_CONFIG_DIR}/git-proxy.sh ]
300 then
301 mkdir -p ${GIT_CONFIG_DIR}
302 cat > ${GIT_CONFIG_DIR}/git-proxy.sh <<_EOF
303 if [ -x /bin/env ] ; then
304 exec /bin/env corkscrew ${PROXYHOST} ${PROXYPORT} \$*
305 else
306 exec /usr/bin/env corkscrew ${PROXYHOST} ${PROXYPORT} \$*
307 fi
308 _EOF
309 chmod +x ${GIT_CONFIG_DIR}/git-proxy.sh
89b0519e » koenkooi
2010-04-28 oebb: fix git_config logic to not always append to ~/.oe/environement
310 export GIT_PROXY_COMMAND=${GIT_CONFIG_DIR}/git-proxy.sh
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
311 fi
312 }
313
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
314 ###############################################################################
315 # tag_layers - Tag all layers with a given tag
316 ###############################################################################
317 function tag_layers()
318 {
319 set_environment
320 env gawk -v command=tag -v commandarg=$TAG -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
fe00dedf » koenkooi
2012-01-16 oebb: store tagnames in 'tags' file for future reference
321 echo $TAG >> ${OE_BASE}/tags
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
322 }
323
324 ###############################################################################
325 # tag_layers - Tag all layers with a given tag
326 ###############################################################################
327 function changelog()
328 {
329 set_environment
330 env gawk -v command=changelog -v commandarg=$TAG -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
331 }
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
332
333 ###############################################################################
334 # Build the specified OE packages or images.
335 ###############################################################################
be088960 » koenkooi
2010-04-26 oebb: add clean command
336
337 # FIXME: convert to case/esac
338
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
339 if [ $# -gt 0 ]
340 then
341 if [ $1 = "update" ]
342 then
343 update_all
344 exit 0
345 fi
346
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
347 if [ $1 = "tag" ]
348 then
349 if [ -n "$2" ] ; then
350 TAG="$2"
351 else
352 TAG="$(date -u +'%Y%m%d-%H%M')"
353 fi
354 tag_layers $TAG
355 exit 0
356 fi
357
358 if [ $1 = "changelog" ]
359 then
360 if [ -z $2 ] ; then
361 echo "Changelog needs an argument"
362 exit 1
363 else
364 TAG="$2"
365 fi
366 changelog
367 exit 0
368 fi
369
370
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
371 if [ $1 = "bitbake" ]
372 then
373 shift
374 oe_build $*
375 exit 0
376 fi
377
378 if [ $1 = "config" ]
379 then
380 shift
381 CL_MACHINE=$1
382 shift
383 oe_config $*
384 exit 0
385 fi
be088960 » koenkooi
2010-04-26 oebb: add clean command
386
387 if [ $1 = "clean" ]
388 then
389 clean_oe
390 exit 0
391 fi
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
392 fi
393
394 # Help Screen
395 echo ""
396 echo "Usage: $0 config <machine>"
397 echo " $0 update"
3d83b2dd » koenkooi
2010-06-21 oebb: update usage output
398 echo ""
399 echo " Not recommended, but also possible:"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
400 echo " $0 bitbake <bitbake target>"
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
401 echo " It is recommended to do '. ${OE_ENV_FILE}' and run 'bitbake something' inside ${BUILDDIR} without using oebb.sh as wrapper"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
402 echo ""
403 echo "You must invoke \"$0 config <machine>\" and then \"$0 update\" prior"
404 echo "to your first bitbake command"
405 echo ""
406 echo "The <machine> argument can be one of the following"
ab79e042 » jadonk
2010-03-08 Added aliases for the proper board names.
407 echo " beagleboard: BeagleBoard"
408 echo " davinci-evm: DM6446 EVM"
409 echo " omap3evm: OMAP35x EVM"
dea6d19e » koenkooi
2010-03-19 oebb: clean up variables and local.conf
410 echo " am3517-evm: AM3517 (Shiva) EVM"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
411 echo ""
412 echo "Other machines are valid as well, but listing those would make this message way too long"
Something went wrong with that request. Please try again.