Commit Graph

14 Commits

Author SHA1 Message Date
Joshua Lock 971907567c 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>
2010-07-21 15:39:53 +01:00
Richard Purdie 71b10e3045 poky-init-build-env: Remove now unneeded return
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-26 11:25:16 +00:00
Joe MacDonald 988e4ddf3c poky-init-build-env: Update for BASH 4 Bourne Shell semantics
It's no longer valid in bash 4 when invoked with Bourne Shell semantics to
return unless you're inside a sourced script or a function.  Doing so in
this context doesn't actually exit from the setup script.  This should
probably preserve the original intent.

Signed-off-by: Joe MacDonald <joe@deserted.net>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-12 16:49:45 +00:00
Richard Purdie f7bf74a05a poky-init-build-env: Don't exit from sourced scripts, return
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2227 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-07-25 10:44:56 +00:00
Richard Purdie 8142b95bf2 Update copyright
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1734 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-05-16 13:48:29 +00:00
Richard Purdie 14d1d6d879 scripts: Move main contents of poky-init-build-env to scripts/poky-env-internal. Add poky-autobuild script for autobuilder use.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@948 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-11-23 12:15:17 +00:00
Richard Purdie f4a8621a19 poky-init-build-env: Add scripts dir to the PATH, export BUILDDIR and OEROOT, add BUILD_SYS variable
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@866 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-11-17 10:52:26 +00:00
Chris Larson bc83fd8803 Rename the supplied default local.conf to local.conf.sample, per mallum's request.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@671 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-08-29 08:36:28 +00:00
Chris Larson f927cf6903 poky-init-build-env: add $HOME/.poky
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@668 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-08-28 12:06:39 +00:00
Chris Larson 72d29794cc poky-init-build-env: add $HOME/.oe to BBPATH, for setting a per user conf/site.conf for settings common to all build dirs. unset TERMINFO to avoid glibc pulling in the user's terminal information files.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@667 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-08-28 10:43:04 +00:00
Chris Larson 37d03b1b00 Directly make use of the OEROOT environment variable in the default local.conf, and set TMPDIR explicitly to avoid the requirement that one run bitbake from the build directory.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@650 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-08-27 09:07:44 +00:00
Matthew Allum e9f80c8c31 Add GPL/Copyright to poky-init-build-env script
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@553 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-07-25 21:45:55 +00:00
Matthew Allum 46c6968e5d Add a check for sourcing present when running poky-init-build-env
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@541 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-07-21 21:05:18 +00:00
Matthew Allum 5b9a5c9538 rename
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@537 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-07-21 12:44:55 +00:00