Commit Graph

48 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 abf39a181a sanity.bbclass: Fix SDKMACHINE sanity check. We need to check the SDK_ARCH variable, not SDKMACHINE directly.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-14 12:54:44 +01:00
Joshua Lock c350927b22 sanity.bbclass: Fix test for i686 SDKMACHINE
The 'is' keyword tests for object identity, returning True if the variables are
both referencing the same object. Changed the test to use the equality
operator, which compares the values of the objects.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-06-14 12:53:48 +01:00
Joshua Lock 6a9312cccc sanity.bbclass: Check for Python 2.6 or newer
In relocatable.bbclass and utility-tasks.bbclass we depend on functionality
that was only introduced with Pytrhon 2.6, so we now check that the build
system has it in the sanity class.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-06-08 17:29:46 +01:00
Joshua Lock c4a0b5463d sanity.bbclass: version each of the files in the build/conf/ directory
We already have versioning of the local.conf file but it's entirely plausible
for the bblayers.conf and site.conf to change incompatibly so we should version
those too.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-06-07 16:16:35 +01:00
Joshua Lock 7ada79de07 sanity.bbclass: check for invalid characters in OEROOT
Some characters in the path for OEROOT are known to cause issues, so check for
them in the sanity checker.
Currerently we warn on +'s and spaces.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-06-02 15:25:00 +01:00
Richard Purdie 7dcf1e47b7 sanity.bbclass: Check for SDKMACHINE=i686 and error if found
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-06-01 17:25:05 +01:00
Joshua Lock 138df217ef Drop vm_mmap_min_addr checks from scripts and sanity class
QEMU 0.12.x is relocatable so we no longer need these tests, which is good
because it doesn't work reliably with modern kernels.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-28 15:32:41 +01:00
Joshua Lock d425fac6d1 sanity.bbclass: fix typo in earlier commit
Commit fbe3d41eb0 left a trailing bracket which
cause an interpretation error

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-30 20:15:56 +01:00
Joshua Lock fbe3d41eb0 Version the build configuration directory
The addition of BBLAYERS changes the build/conf directory to be incompatible
with the "old way" in the Purple release.

As such things are likely to occur in future we should bersion the build/conf
directory through local.conf

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-30 16:25:41 +01:00
Joshua Lock 69d788ad5e Fix sanity check for new abi
current_abi is the abi of the tmp directory, not the current abi specified in
the abi file...

Now the sanity check should work sanely.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-29 10:25:39 +01:00
Joshua Lock 19a81653b7 Bump the ABI to alert people that cross has gone
Since we've change the tmpdir layout quite a bit we're going to bump ABI and
force a rebuild.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-28 17:48:08 +01:00
Joshua Lock d1f413ff30 sanity.bbclass: handle lack of permission to read /proc/sys/vm/mmap_min_addr
Patch from OE.dev by Martin Jansa to workaround that we on modern Linux we can
no longer read this file.

We need a better fix but best option will be to update to a newer, relocatable,
QEMU release.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-27 16:58:42 +01:00
Joshua Lock 7f019514d8 Move STAGING_BINDIR_CROSS into target sysroot, instead of native
Cross scripts now live in sysroot/$arch-distro-os/crossscripts, this conveys
that they are no longer native system dependant and emphasises their purpose.

Bump the staging ABI and implement a simple migration from ABI 3 to ABI 4.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-27 16:58:42 +01:00
Richard Purdie e17a0bd6c0 sanity.bbclass: Add a note about using dpkg-reconfigure
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-22 14:33:56 +00:00
Joshua Lock da10a2af54 sanity.bbclass: Add chrpath to the required utilities
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-15 16:43:38 +00:00
Richard Purdie b772c8cde5 bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot
This change makes the purpose of the staging directory more obvious and
the taskname more true to what it now actually does.

The layout version number is increased due to the change in layout
but code to convert existing directories and insert a symlink for
backwards compatibility is included.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:42 +00:00
Richard Purdie c54117458a classes: Remove and sanitise import statements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:28 +00:00
Damien Lespiau 65bf6c90e6 base.bbclass: packages pulling a mercurial tree should depend on mercurial
As we don't provide a mercurial-native package (yet) let's assume the
build machine has it installed and check (sanity.bbclass) if it's the
case.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2009-08-26 00:44:41 +01:00
Richard Purdie f2a9705633 sanity.bbclass: Really fix TMPDIR change warning message
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-05-28 21:32:30 +01:00
Richard Purdie ec4d79ddc8 sanity.bbclass: Fix the warning message above tmpdir moving to point to the correct path
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-05-23 10:56:21 +01:00
Damien Lespiau bcf14a38d5 sanity.bbclass: Fix error message when not having g++ on build 2009-02-04 09:47:35 +01:00
Richard Purdie bbdeccfd5b sanity.bbclass: Provide preserving the mmap_min_addr setting over reboots
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5106 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-08-26 10:23:59 +00:00
Richard Purdie 8beb43ca48 Move SANITY_ABI to its own file and give a more general name
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4938 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-24 11:10:33 +00:00
Richard Purdie 1b969af1b9 sanity.bbclass: Sync with OE, introduce TMPDIR ABI versioning, drop bitbake 1.8.6 cruft, only run the mmap_min_addr check on ARM when we need to run binary locale generation
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4450 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-07 09:49:38 +00:00
Richard Purdie f7cabaae53 sanity.bbclass: Add check of the /proc/sys/vm/mmap_min_addr value and warn if its potentially problematic
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4448 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-07 09:31:43 +00:00
Ross Burton 6697984ca2 sanity.bbclass: we don't use the md5sum binary any more, remove it
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4388 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 11:01:16 +00:00
Richard Purdie 7445d676db sanity.bbclass: Add a check for dash as /bin/sh and error if found
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4298 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-21 22:53:20 +00:00
Richard Purdie a0c44e0e6c sanity.bbclass: Fix typo
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3695 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-02-07 10:24:40 +00:00
Richard Purdie 51fd745b36 sanity.bbclass: Fix qemu check
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3694 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-02-07 10:23:08 +00:00
Richard Purdie 48f8cda2c3 Rename gcc-native3 -> gcc3-native for consistency and update sanity.bbclass to account for gcc3 changes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3670 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-02-05 17:27:12 +00:00
Richard Purdie 27793088ad sanity.bbclass: Check TMPDIR doesn't change, error if it does
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3647 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-01-31 15:18:54 +00:00
Marcin Juszkiewicz 66ff85a048 base and sanity bbclasses + qemu: move gcc3 availability checking into base.bbclass
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3402 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-01-03 14:07:44 +00:00
Richard Purdie e2fe0bd7ee sanity.bbclass: Run sanity checks before parsing for speed, sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2485 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-08-12 23:23:18 +00:00
Richard Purdie 6d5285742a sanity.bbclass: Further qemu check improvements
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2426 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-08-09 11:02:13 +00:00
Richard Purdie 043b8012bc sanity.bbclass: Factor ASSUME_PROVIDED into qemu checks
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2425 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-08-09 10:57:33 +00:00
Richard Purdie b14c8cd294 Switch back to using our own qemu binary for locale generation by default
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2424 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-08-09 10:52:43 +00:00
Richard Purdie 315b113c83 sanity: Add check for help2man
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2275 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-08-01 13:05:06 +00:00
Marcin Juszkiewicz fd46f224ad sanity: if Poky is used by root user (userid 0) then raise error
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2093 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-07-04 07:53:48 +00:00
Richard Purdie ae60cc23f9 README, sanity.bbclass: Add makeinfo (from texinfo) as a dependency. Also check for qemu-arm binary
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1086 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-12-22 13:51:35 +00:00
Matthew Allum 5eadd9dfaf Remove now uneeded gcc-3.x check
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1008 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-12-05 14:47:38 +00:00
Richard Purdie adabf6c093 sanity.bbclass: Add umask check
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@986 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-11-29 16:55:31 +00:00
Richard Purdie db564fe4d9 sanity.bbclass: Add sdl-config to required programs list. Remove fixme as now dealt with.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@941 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-11-22 16:43:41 +00:00
Richard Purdie 5962332b14 sanity.bbclass: Merge with OE syncing improvements both ways
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@855 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-11-16 14:20:49 +00:00
Matthew Allum 5713649ceb Add check for gawk, needed by x86 glic build
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@794 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-10-12 12:48:46 +00:00
Matthew Allum f27a0caa85 Update sanity checking to report all missing instead of one per run. Add a check for gcc 3.x
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@769 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-09-28 09:18:17 +00:00
Richard Purdie 93a8d0662e classes: Sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@651 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-08-27 16:01:33 +00:00
Richard Purdie b2f192faab Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-07-21 10:10:31 +00:00