diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-22 13:19:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-22 13:19:24 +0100 |
commit | 9832fd3e2270b837c31cbb9b33f33452d6a3f398 (patch) | |
tree | ce7e8b7543c5582f42d09ebbd0e3ec1bbbde7eb4 /scripts/poky-env-internal | |
parent | c2f71a86f5eb040932adf695887a1885d760f536 (diff) | |
download | poky-9832fd3e2270b837c31cbb9b33f33452d6a3f398.tar.gz |
poky-env-internal: Cleanup after the recent layer improvements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'scripts/poky-env-internal')
-rwxr-xr-x | scripts/poky-env-internal | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/scripts/poky-env-internal b/scripts/poky-env-internal index d25816c6a6..c814314744 100755 --- a/scripts/poky-env-internal +++ b/scripts/poky-env-internal | |||
@@ -44,55 +44,17 @@ if ! (test -w "$BUILDDIR"); then | |||
44 | fi | 44 | fi |
45 | 45 | ||
46 | BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/" | 46 | BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/" |
47 | PKGDIR="$OEROOT/meta/" | ||
48 | BBPATH="$BITBAKEDIR $PKGDIR" | ||
49 | |||
50 | # | ||
51 | # Add in any extra meta-* repositories to BBPATH | ||
52 | # | ||
53 | METAREPOS=`cd $OEROOT; find . -maxdepth 1 -name 'meta-*' -type d| sed -e 's#./##g'` | ||
54 | for repo in $METAREPOS | ||
55 | do | ||
56 | # meta-openmoko is disabled by default - see local.conf.sample to enable it | ||
57 | if [ $repo = "meta-openmoko" ]; then | ||
58 | continue | ||
59 | fi | ||
60 | # meta-extras is disabled by default - see local.conf.sample to enable it | ||
61 | if [ $repo = "meta-extras" ]; then | ||
62 | continue | ||
63 | fi | ||
64 | if [ -e $OEROOT/$repo/poky-extra-environment ]; then | ||
65 | . $OEROOT/$repo/poky-extra-environment | ||
66 | fi | ||
67 | done | ||
68 | |||
69 | BBPATH="$BBPATH $HOME/.oe $HOME/.poky $BUILDDIR" | ||
70 | |||
71 | # | ||
72 | # Remove any symlinks from BBPATH | ||
73 | # | ||
74 | NEWPATH="" | ||
75 | for p in $BBPATH | ||
76 | do | ||
77 | p2=`readlink -f "$p"` | ||
78 | NEWPATH="$p2:$NEWPATH" | ||
79 | done | ||
80 | BBPATH="$NEWPATH" | ||
81 | |||
82 | |||
83 | MSG='' | ||
84 | 47 | ||
85 | PATH="$BITBAKEDIR/bin/:$OEROOT/scripts:$PATH" | 48 | PATH="$BITBAKEDIR/bin/:$OEROOT/scripts:$PATH" |
86 | 49 | ||
87 | # Remove any symlinks from paths | 50 | # Remove any symlinks from paths |
88 | BITBAKEDIR=`readlink -f "$BITBAKEDIR"` | 51 | BITBAKEDIR=`readlink -f "$BITBAKEDIR"` |
89 | PKGDIR=`readlink -f "$PKGDIR"` | ||
90 | BUILDDIR=`readlink -f "$BUILDDIR"` | 52 | BUILDDIR=`readlink -f "$BUILDDIR"` |
91 | OEROOT=`readlink -f "$OEROOT"` | 53 | OEROOT=`readlink -f "$OEROOT"` |
92 | 54 | ||
93 | cd "$BUILDDIR" | 55 | cd "$BUILDDIR" |
94 | 56 | ||
95 | if ! (test -d "$BITBAKEDIR" && test -d "$PKGDIR" && test -d "$BUILDDIR"); then | 57 | if ! (test -d "$BITBAKEDIR" && test -d "$BUILDDIR"); then |
96 | echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?" | 58 | echo >&2 "Error: Not all directories exist! Did you run this script in poky directory?" |
97 | return | 59 | return |
98 | fi | 60 | fi |
@@ -124,7 +86,7 @@ fi | |||
124 | unset POKYLOCALCONF | 86 | unset POKYLOCALCONF |
125 | unset POKYLAYERCONF | 87 | unset POKYLAYERCONF |
126 | 88 | ||
127 | export BBPATH OEROOT BUILDDIR | 89 | export OEROOT BUILDDIR |
128 | 90 | ||
129 | # Kill off the TERMINFO variable, as glibc will grab its contents in its 'make | 91 | # Kill off the TERMINFO variable, as glibc will grab its contents in its 'make |
130 | # install' if set | 92 | # install' if set |