Skip to content
This repository
Newer
Older
100755 435 lines (363 sloc) 14.396 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
4fa09f5a » koenkooi
2012-04-19 oebb: bump BASE_VERSION again and derive DISTRO from local.conf
37 BASE_VERSION=5
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 ###############################################################################
67b17925 » koenkooi
2012-04-20 oebb: recreate site.conf if needed
41 # CONFIG_OE() - Configure OpenEmbedded
42 ###############################################################################
43 function config_oe()
44 {
45
46 MACHINE="${CL_MACHINE}"
47
48 #--------------------------------------------------------------------------
49 # Write out the OE bitbake configuration file.
50 #--------------------------------------------------------------------------
51 mkdir -p ${OE_BUILD_DIR}/conf
52
53 # There's no need to rewrite site.conf when changing MACHINE
54 if [ ! -e ${OE_BUILD_DIR}/conf/site.conf ]; then
55 cat > ${OE_BUILD_DIR}/conf/site.conf <<_EOF
56
57 SCONF_VERSION = "1"
58
59 # Where to store sources
60 DL_DIR = "${OE_SOURCE_DIR}/downloads"
61
62 # Where to save shared state
63 SSTATE_DIR = "${OE_BUILD_DIR}/build/sstate-cache"
64
65 # Which files do we want to parse:
66 BBFILES ?= "${OE_SOURCE_DIR}/openembedded-core/meta/recipes-*/*/*.bb"
67
68 TMPDIR = "${OE_BUILD_TMPDIR}"
69
70 # Go through the Firewall
71 #HTTP_PROXY = "http://${PROXYHOST}:${PROXYPORT}/"
72
73 _EOF
74 fi
75 if [ ! -e ${OE_BUILD_DIR}/conf/auto.conf ]; then
76 cat > ${OE_BUILD_DIR}/conf/auto.conf <<_EOF
77 MACHINE ?= "${MACHINE}"
78 _EOF
79 else
80 eval "sed -i -e 's/^MACHINE.*$/MACHINE ?= \"${MACHINE}\"/g' ${OE_BUILD_DIR}/conf/auto.conf"
81 fi
82 }
83
84 ###############################################################################
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
85 # SET_ENVIRONMENT() - Setup environment variables for OE development
86 ###############################################################################
87 function set_environment()
88 {
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
89
03810d58 » koenkooi
2011-02-23 oebb: work with bitbake master
90 # Workaround for differences between yocto bitbake and vanilla bitbake
91 export BBFETCH2=True
92
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
93 export TAG
94
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
95 #--------------------------------------------------------------------------
96 # If an env already exists, use it, otherwise generate it
97 #--------------------------------------------------------------------------
52e95303 » koenkooi
2011-05-05 oebb: recreate environment file on BASE_VERSION mismatch
98
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
99 if [ -e ${OE_ENV_FILE} ] ; then
100 . ${OE_ENV_FILE}
63ceb904 » kraj
2011-05-05 oebb.sh, .gitignore, build/conf: Add capability to issue bitbake comm…
101 fi
52e95303 » koenkooi
2011-05-05 oebb: recreate environment file on BASE_VERSION mismatch
102
103 if [ x"${BASE_VERSION}" != x"${SCRIPTS_BASE_VERSION}" ] ; then
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
104 echo "BASE_VERSION mismatch, recreating ${OE_ENV_FILE}"
e2c610b8 » koenkooi
2012-04-19 oebb: also remove site.conf when BASE_VERSION doesn't match
105 rm -f ${OE_ENV_FILE} ${OE_BUILD_DIR}/conf/site.conf
63ceb904 » kraj
2011-05-05 oebb.sh, .gitignore, build/conf: Add capability to issue bitbake comm…
106 fi
52e95303 » koenkooi
2011-05-05 oebb: recreate environment file on BASE_VERSION mismatch
107
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
108 if [ -e ${OE_ENV_FILE} ] ; then
109 . ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
110 else
111
d9bdbe27 » koenkooi
2010-03-23 oebb: replace all tabs with 4 spaces for consistency
112 mkdir -p ~/.oe/
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
113
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
114 #--------------------------------------------------------------------------
115 # Specify distribution information
116 #--------------------------------------------------------------------------
4fa09f5a » koenkooi
2012-04-19 oebb: bump BASE_VERSION again and derive DISTRO from local.conf
117 DISTRO=$(grep DISTRO conf/local.conf | awk -F\" '{print $2}')
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
118 DISTRO_DIRNAME=`echo $DISTRO | sed s#[.-]#_#g`
119
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
120 echo "export SCRIPTS_BASE_VERSION=${BASE_VERSION}" > ${OE_ENV_FILE}
121 echo "export BBFETCH2=True" >> ${OE_ENV_FILE}
03810d58 » koenkooi
2011-02-23 oebb: work with bitbake master
122
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
123 echo "export DISTRO=\"${DISTRO}\"" >> ${OE_ENV_FILE}
124 echo "export DISTRO_DIRNAME=\"${DISTRO_DIRNAME}\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
125
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
126 #--------------------------------------------------------------------------
127 # Specify the root directory for your OpenEmbedded development
128 #--------------------------------------------------------------------------
63ceb904 » kraj
2011-05-05 oebb.sh, .gitignore, build/conf: Add capability to issue bitbake comm…
129 OE_BUILD_DIR=${OE_BASE}
130 OE_BUILD_TMPDIR="${OE_BUILD_DIR}/build/tmp-${DISTRO_DIRNAME}"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
131 OE_SOURCE_DIR=${OE_BASE}/sources
448286d5 » koenkooi
2010-03-23 oebb: add some missing vars to environment script, reported by Gregg …
132
559117dc » koenkooi
2010-12-24 oebb: catch up with yocto bitbake wrapper usage for pseude
133 export BUILDDIR=${OE_BUILD_DIR}
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
134 mkdir -p ${OE_BUILD_DIR}
135 mkdir -p ${OE_SOURCE_DIR}
136 export OE_BASE
137
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
138 echo "export OE_BUILD_DIR=\"${OE_BUILD_DIR}\"" >> ${OE_ENV_FILE}
139 echo "export BUILDDIR=\"${OE_BUILD_DIR}\"" >> ${OE_ENV_FILE}
140 echo "export OE_BUILD_TMPDIR=\"${OE_BUILD_TMPDIR}\"" >> ${OE_ENV_FILE}
141 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 …
142
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
143 echo "export OE_BASE=\"${OE_BASE}\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
144
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
145 #--------------------------------------------------------------------------
146 # Include up-to-date bitbake in our PATH.
147 #--------------------------------------------------------------------------
c36e086a » koenkooi
2011-02-21 oebb: convert from yocto to oe-core
148 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
149
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
150 echo "export PATH=\"${PATH}\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
151
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
152 #--------------------------------------------------------------------------
153 # Make sure Bitbake doesn't filter out the following variables from our
154 # environment.
155 #--------------------------------------------------------------------------
be691f60 » kraj
2011-04-21 oebb.sh: Export TCLIBC,TCMODE and delete ANGSTROMLIBC
156 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
157
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
158 echo "export BB_ENV_EXTRAWHITE=\"${BB_ENV_EXTRAWHITE}\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
159
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
160 #--------------------------------------------------------------------------
161 # Specify proxy information
162 #--------------------------------------------------------------------------
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
163 if [ "x$PROXYHOST" != "x" ] ; then
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
164 export http_proxy=http://${PROXYHOST}:${PROXYPORT}/
165 export ftp_proxy=http://${PROXYHOST}:${PROXYPORT}/
166
167 export SVN_CONFIG_DIR=${OE_BUILD_DIR}/subversion_config
168 export GIT_CONFIG_DIR=${OE_BUILD_DIR}/git_config
169
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
170 echo "export http_proxy=\"${http_proxy}\"" >> ${OE_ENV_FILE}
171 echo "export ftp_proxy=\"${ftp_proxy}\"" >> ${OE_ENV_FILE}
172 echo "export SVN_CONFIG_DIR=\"${SVN_CONFIG_DIR}\"" >> ${OE_ENV_FILE}
173 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
174 echo "export GIT_PROXY_COMMAND=\"\${GIT_CONFIG_DIR}/git-proxy.sh\"" >> ${OE_ENV_FILE}
6a439748 » koenkooi
2010-03-19 oebb: generate sourceable env file
175
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
176 config_svn_proxy
177 config_git_proxy
d9bdbe27 » koenkooi
2010-03-23 oebb: replace all tabs with 4 spaces for consistency
178 fi
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
179
180 #--------------------------------------------------------------------------
181 # Set up the bitbake path to find the OpenEmbedded recipes.
182 #--------------------------------------------------------------------------
c36e086a » koenkooi
2011-02-21 oebb: convert from yocto to oe-core
183 export BBPATH=${OE_BUILD_DIR}:${OE_SOURCE_DIR}/openembedded-core/meta${BBPATH_EXTRA}
00a0c9ec » jadonk
2010-08-03 Utilize commit ID in updates
184
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
185 echo "export BBPATH=\"${BBPATH}\"" >> ${OE_ENV_FILE}
00a0c9ec » jadonk
2010-08-03 Utilize commit ID in updates
186
d9bdbe27 » koenkooi
2010-03-23 oebb: replace all tabs with 4 spaces for consistency
187 #--------------------------------------------------------------------------
bb16b330 » koenkooi
2012-04-19 oebb: remove hidden sudo
188 # Look for dash
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
189 #--------------------------------------------------------------------------
0ed3d157 » koenkooi
2010-10-20 oebb.sh: fix autorun logic
190 if [ "$(readlink /bin/sh)" = "dash" ] ; then
bb16b330 » koenkooi
2012-04-19 oebb: remove hidden sudo
191 echo "/bin/sh is a symlink to dash, please point it to bash instead"
192 exit 1
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
193 fi
8f98636b » koenkooi
2010-03-19 oebb: add usage note for ~/.oe/environment
194
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
195 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"
196 fi # if -e ${OE_ENV_FILE}
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
197
67b17925 » koenkooi
2012-04-20 oebb: recreate site.conf if needed
198 if ! [ -e ${OE_BUILD_DIR}/conf/site.conf ] ; then
199 config_oe
200 fi
201
202 }
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
203
204 ###############################################################################
205 # UPDATE_ALL() - Make sure everything is up to date
206 ###############################################################################
207 function update_all()
208 {
209 set_environment
210 update_oe
211 }
212
be088960 » koenkooi
2010-04-26 oebb: add clean command
213 ###############################################################################
214 # CLEAN_OE() - Delete TMPDIR
215 ###############################################################################
216 function clean_oe()
217 {
218 set_environment
00a0c9ec » jadonk
2010-08-03 Utilize commit ID in updates
219 echo "Cleaning ${OE_BUILD_TMPDIR}"
220 rm -rf ${OE_BUILD_TMPDIR}
be088960 » koenkooi
2010-04-26 oebb: add clean command
221 }
222
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
223
224 ###############################################################################
225 # OE_BUILD() - Build an OE package or image
226 ###############################################################################
227 function oe_build()
228 {
088be906 » koenkooi
2011-05-05 oebb: put machine in auto.conf
229 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…
230 if [ -z $MACHINE ] ; then
231 echo "No config found, please run $0 config <machine> first"
232 else
233 CL_MACHINE=$MACHINE
0ed3d157 » koenkooi
2010-10-20 oebb.sh: fix autorun logic
234 set_environment
1631d041 » koenkooi
2010-10-20 oebb.sh: if MACHINE is set in env on first invocation autorun the con…
235 config_oe && update_all
236 fi
237 fi
238
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
239 set_environment
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
240 if [ -e ${OE_ENV_FILE} ] ; then
241 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
242 fi
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
243 cd ${OE_BUILD_DIR}
244 if [ -z $MACHINE ] ; then
245 echo "Executing: bitbake" $*
246 bitbake $*
247 else
248 echo "Executing: MACHINE=${MACHINE} bitbake" $*
249 MACHINE=${MACHINE} bitbake $*
250 fi
251 }
252
253
254 ###############################################################################
00a0c9ec » jadonk
2010-08-03 Utilize commit ID in updates
255 # OE_CONFIG() - Configure OE for a target
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
256 ###############################################################################
257 function oe_config()
258 {
259 set_environment
260 config_oe
1631d041 » koenkooi
2010-10-20 oebb.sh: if MACHINE is set in env on first invocation autorun the con…
261 update_all
c7b71f4c » koenkooi
2010-03-23 oebb: be more verbose about ~/oe/.environment and report when config …
262
263 echo ""
d9bdbe27 » koenkooi
2010-03-23 oebb: replace all tabs with 4 spaces for consistency
264 echo "Setup for ${CL_MACHINE} completed"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
265 }
266
267 ###############################################################################
268 # UPDATE_OE() - Update OpenEmbedded distribution.
269 ###############################################################################
270 function update_oe()
271 {
e4d6fb80 » Gregg Lebovitz
2010-03-23 oebb: protect call to git_proxy setup as well
272 if [ "x$PROXYHOST" != "x" ] ; then
273 config_git_proxy
274 fi
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
275
20193e28 » koenkooi
2011-01-27 oebb: hide stash output, simplify oebb update handling
276 #manage meta-openembedded and meta-angstrom with layerman
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
277 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
278 }
279
280 ###############################################################################
281 # CONFIG_SVN_PROXY() - Configure subversion proxy information
282 ###############################################################################
283 function config_svn_proxy()
284 {
285 if [ ! -f ${SVN_CONFIG_DIR}/servers ]
286 then
287 mkdir -p ${SVN_CONFIG_DIR}
288 cat >> ${SVN_CONFIG_DIR}/servers <<_EOF
289 [global]
290 http-proxy-host = ${PROXYHOST}
291 http-proxy-port = ${PROXYPORT}
292 _EOF
293 fi
294 }
295
296
297 ###############################################################################
298 # CONFIG_GIT_PROXY() - Configure GIT proxy information
299 ###############################################################################
300 function config_git_proxy()
301 {
302 if [ ! -f ${GIT_CONFIG_DIR}/git-proxy.sh ]
303 then
304 mkdir -p ${GIT_CONFIG_DIR}
305 cat > ${GIT_CONFIG_DIR}/git-proxy.sh <<_EOF
306 if [ -x /bin/env ] ; then
307 exec /bin/env corkscrew ${PROXYHOST} ${PROXYPORT} \$*
308 else
309 exec /usr/bin/env corkscrew ${PROXYHOST} ${PROXYPORT} \$*
310 fi
311 _EOF
312 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
313 export GIT_PROXY_COMMAND=${GIT_CONFIG_DIR}/git-proxy.sh
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
314 fi
315 }
316
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
317 ###############################################################################
318 # tag_layers - Tag all layers with a given tag
319 ###############################################################################
320 function tag_layers()
321 {
322 set_environment
323 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
324 echo $TAG >> ${OE_BASE}/tags
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
325 }
326
327 ###############################################################################
328 # tag_layers - Tag all layers with a given tag
329 ###############################################################################
330 function changelog()
331 {
edf3110b » koenkooi
2012-04-18 layerman: add 'info' command to generate a list of the current branch…
332 set_environment
333 env gawk -v command=changelog -v commandarg=$TAG -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
334 }
335
336 ###############################################################################
337 # layer_info - Get layer info
338 ###############################################################################
339 function layer_info()
340 {
341 set_environment
342 rm -f ${OE_SOURCE_DIR}/info.txt
343 env gawk -v command=info -f ${OE_BASE}/scripts/layers.awk ${OE_SOURCE_DIR}/layers.txt
344 echo
345 echo "Showing contents of ${OE_SOURCE_DIR}/info.txt:"
346 echo
347 cat ${OE_SOURCE_DIR}/info.txt
348 echo
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
349 }
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
350
351 ###############################################################################
352 # Build the specified OE packages or images.
353 ###############################################################################
be088960 » koenkooi
2010-04-26 oebb: add clean command
354
355 # FIXME: convert to case/esac
356
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
357 if [ $# -gt 0 ]
358 then
359 if [ $1 = "update" ]
360 then
361 update_all
362 exit 0
363 fi
364
edf3110b » koenkooi
2012-04-18 layerman: add 'info' command to generate a list of the current branch…
365 if [ $1 = "info" ]
366 then
367 layer_info
368 exit 0
369 fi
370
87920f55 » koenkooi
2012-01-11 oebb: hook up tag and changelog functionality from layerman
371 if [ $1 = "tag" ]
372 then
373 if [ -n "$2" ] ; then
374 TAG="$2"
375 else
376 TAG="$(date -u +'%Y%m%d-%H%M')"
377 fi
378 tag_layers $TAG
379 exit 0
380 fi
381
382 if [ $1 = "changelog" ]
383 then
384 if [ -z $2 ] ; then
385 echo "Changelog needs an argument"
386 exit 1
387 else
388 TAG="$2"
389 fi
390 changelog
391 exit 0
392 fi
393
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
394 if [ $1 = "bitbake" ]
395 then
396 shift
397 oe_build $*
398 exit 0
399 fi
400
401 if [ $1 = "config" ]
402 then
403 shift
404 CL_MACHINE=$1
405 shift
406 oe_config $*
407 exit 0
408 fi
be088960 » koenkooi
2010-04-26 oebb: add clean command
409
410 if [ $1 = "clean" ]
411 then
412 clean_oe
413 exit 0
414 fi
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
415 fi
416
417 # Help Screen
418 echo ""
419 echo "Usage: $0 config <machine>"
420 echo " $0 update"
3d83b2dd » koenkooi
2010-06-21 oebb: update usage output
421 echo ""
422 echo " Not recommended, but also possible:"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
423 echo " $0 bitbake <bitbake target>"
8f81ffd9 » koenkooi
2011-05-05 oebb: make environment file configurable
424 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
425 echo ""
426 echo "You must invoke \"$0 config <machine>\" and then \"$0 update\" prior"
427 echo "to your first bitbake command"
428 echo ""
429 echo "The <machine> argument can be one of the following"
ab79e042 » jadonk
2010-03-08 Added aliases for the proper board names.
430 echo " beagleboard: BeagleBoard"
431 echo " davinci-evm: DM6446 EVM"
432 echo " omap3evm: OMAP35x EVM"
dea6d19e » koenkooi
2010-03-19 oebb: clean up variables and local.conf
433 echo " am3517-evm: AM3517 (Shiva) EVM"
f984361a » koenkooi
2010-03-08 Add first setup script, imported from TI wiki
434 echo ""
435 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.