diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-07-21 14:55:39 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-21 15:39:53 +0100 |
commit | 971907567cff64e74f21d349d6751dadc8c09827 (patch) | |
tree | e0cfd7ee0ba3091272eca5c5f1b90edffc3653aa /build | |
parent | 50629b3746c149b22bdd8664842a4c69abb2b989 (diff) | |
download | poky-971907567cff64e74f21d349d6751dadc8c09827.tar.gz |
Enable build dir outside of the poky directory
You need to first set up the build directory by sourcing the poky build script,
after that builds can be run in that directory so long as bitbake is in $PATH
removing the need to source the init script for each build.
i.e:
$ . poky-init-build-env ~/my-build
$ bitbake some-image
<<later, in a different shell>>
$ cd ~/my-build
$ export PATH=/path/to/bitbake/bin:$PATH
$ bitbake an-image
This patch also removes use of OEROOT in recipes, etc.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'build')
-rw-r--r-- | build/conf/bblayers.conf.sample | 4 | ||||
-rw-r--r-- | build/conf/local.conf.sample | 20 | ||||
-rw-r--r-- | build/conf/site.conf.sample | 4 |
3 files changed, 5 insertions, 23 deletions
diff --git a/build/conf/bblayers.conf.sample b/build/conf/bblayers.conf.sample index dff44e49c4..04b7768ffa 100644 --- a/build/conf/bblayers.conf.sample +++ b/build/conf/bblayers.conf.sample | |||
@@ -4,6 +4,6 @@ LCONF_VERSION = "1" | |||
4 | 4 | ||
5 | BBFILES ?= "" | 5 | BBFILES ?= "" |
6 | BBLAYERS = " \ | 6 | BBLAYERS = " \ |
7 | ${OEROOT}/meta \ | 7 | ##POKYBASE##/meta \ |
8 | ${OEROOT}/meta-moblin \ | 8 | ##POKYBASE##/meta-moblin \ |
9 | " | 9 | " |
diff --git a/build/conf/local.conf.sample b/build/conf/local.conf.sample index 32bd409ecc..78c3bd144e 100644 --- a/build/conf/local.conf.sample +++ b/build/conf/local.conf.sample | |||
@@ -42,24 +42,6 @@ DISTRO ?= "poky" | |||
42 | # For bleeding edge / experimental / unstable package versions | 42 | # For bleeding edge / experimental / unstable package versions |
43 | # DISTRO ?= "poky-bleeding" | 43 | # DISTRO ?= "poky-bleeding" |
44 | 44 | ||
45 | # Poky has various extra metadata collections (openmoko, extras). | ||
46 | # To enable these, uncomment all (or some of) the following lines: | ||
47 | # BBFILES = "\ | ||
48 | # ${OEROOT}/meta/packages/*/*.bb \ | ||
49 | # ${OEROOT}/meta-extras/packages/*/*.bb \ | ||
50 | # ${OEROOT}/meta-openmoko/packages/*/*.bb \ | ||
51 | # ${OEROOT}/meta-moblin/packages/*/*.bb \ | ||
52 | # " | ||
53 | # BBFILE_COLLECTIONS = "normal extras openmoko moblin" | ||
54 | # BBFILE_PATTERN_normal = "^${OEROOT}/meta/" | ||
55 | # BBFILE_PATTERN_extras = "^${OEROOT}/meta-extras/" | ||
56 | # BBFILE_PATTERN_openmoko = "^${OEROOT}/meta-openmoko/" | ||
57 | # BBFILE_PATTERN_moblin = "^${OEROOT}/meta-moblin/" | ||
58 | # BBFILE_PRIORITY_normal = "5" | ||
59 | # BBFILE_PRIORITY_extras = "5" | ||
60 | # BBFILE_PRIORITY_openmoko = "5" | ||
61 | # BBFILE_PRIORITY_moblin = "5" | ||
62 | |||
63 | BBMASK = "" | 45 | BBMASK = "" |
64 | 46 | ||
65 | # EXTRA_IMAGE_FEATURES allows extra packages to be added to the generated images | 47 | # EXTRA_IMAGE_FEATURES allows extra packages to be added to the generated images |
@@ -109,7 +91,7 @@ PACKAGE_CLASSES ?= "package_ipk" | |||
109 | # Note that a full build of everything in OpenEmbedded will take GigaBytes of hard | 91 | # Note that a full build of everything in OpenEmbedded will take GigaBytes of hard |
110 | # disk space, so make sure to free enough space. The default TMPDIR is | 92 | # disk space, so make sure to free enough space. The default TMPDIR is |
111 | # <build directory>/tmp | 93 | # <build directory>/tmp |
112 | TMPDIR = "${OEROOT}/build/tmp" | 94 | #TMPDIR = "${POKYBASE}/build/tmp" |
113 | 95 | ||
114 | 96 | ||
115 | # Uncomment this if you are using the Openedhand provided qemu deb - see README | 97 | # Uncomment this if you are using the Openedhand provided qemu deb - see README |
diff --git a/build/conf/site.conf.sample b/build/conf/site.conf.sample index 060dca087c..42042042f7 100644 --- a/build/conf/site.conf.sample +++ b/build/conf/site.conf.sample | |||
@@ -20,7 +20,7 @@ SCONF_VERSION = "1" | |||
20 | # although this only works for http | 20 | # although this only works for http |
21 | #GIT_PROXY_HOST = "proxy.example.com" | 21 | #GIT_PROXY_HOST = "proxy.example.com" |
22 | #GIT_PROXY_PORT = "81" | 22 | #GIT_PROXY_PORT = "81" |
23 | #export GIT_PROXY_COMMAND = "${OEROOT}/scripts/poky-git-proxy-command" | 23 | #export GIT_PROXY_COMMAND = "${POKYBASE}/scripts/poky-git-proxy-command" |
24 | 24 | ||
25 | # GIT_PROXY_IGNORE_* lines define hosts which do not require a proxy to access | 25 | # GIT_PROXY_IGNORE_* lines define hosts which do not require a proxy to access |
26 | #GIT_CORE_CONFIG = "Yes" | 26 | #GIT_CORE_CONFIG = "Yes" |
@@ -32,7 +32,7 @@ SCONF_VERSION = "1" | |||
32 | # and then share that binary somewhere in PATH, then use the following settings | 32 | # and then share that binary somewhere in PATH, then use the following settings |
33 | #GIT_PROXY_HOST = "proxy.example.com" | 33 | #GIT_PROXY_HOST = "proxy.example.com" |
34 | #GIT_PROXY_PORT = "81" | 34 | #GIT_PROXY_PORT = "81" |
35 | #export GIT_PROXY_COMMAND = "${OEROOT}/scripts/poky-git-proxy-socks-command" | 35 | #export GIT_PROXY_COMMAND = "${POKYBASE}/scripts/poky-git-proxy-socks-command" |
36 | 36 | ||
37 | 37 | ||
38 | # Uncomment this to use a shared download directory | 38 | # Uncomment this to use a shared download directory |