-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile
66 lines (51 loc) · 1.19 KB
/
profile
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Environment setup for oe
#
export BB_ENV_EXTRAWHITE="MACHINE DISTRO ANGSTROM_MODE OVEROTOP OEBRANCH USERBRANCH TITOOLSDIR"
export OVEROTOP="/media/OE"
export OEBRANCH="${OVEROTOP}/org.openembedded.dev"
export USERBRANCH="${OVEROTOP}/user.collection"
export PATH="${OVEROTOP}/bitbake/bin:$PATH"
export BBPATH="${OVEROTOP}/build:${USERBRANCH}:${OEBRANCH}"
export TITOOLSDIR="${OVEROTOP}/ti"
if [ "$PS1" ]; then
if [ "$BASH" ]; then
export PS1="\[\033[02;32m\]overo\[\033[00m\] ${PS1}"
fi
fi
umask 0002
#
# end oe setup
#
#
# utility functions for working with bitbake
#
function __get_kernel ()
{
_KERNEL=$(bitbake -e 2>/dev/null | grep "^PREFERRED_PROVIDER_virtual/kernel=" | sed 's/"//g' | cut -f 2 -d =)
}
#
function __get_machine ()
{
_MACHINE=$(bitbake -e 2>/dev/null | grep "^MACHINE_ARCH=" | sed 's/"//g' | cut -f 2 -d =)
}
function bitbake-kernel-print-recipe-name ()
{
__get_kernel
echo $_KERNEL
}
function bitbake-kernel-reconfigure ()
{
__get_kernel
bitbake -c menuconfig $_KERNEL
}
function bitbake-kernel-rebuild ()
{
__get_kernel
bitbake -c rebuild $_KERNEL
}
function bitbake-machine-print-name ()
{
__get_machine
echo $_MACHINE
}