aboutsummaryrefslogtreecommitdiffstats
path: root/classes/sanity.bbclass
AgeCommit message (Collapse)Author
2010-07-28sanity.bbclass: kill usage of 'print'Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-07-26sanity.bbclass: Run our checking at BuildStarted, not ConfigParsedChris Larson
ConfigParsed is often utilized to do programmatic changes to the configuration metadata. If these other event handlers set any variables which sanity.bbclass needs to check, there's a problem, since we can't ensure those handlers run before this one. So, we move the sanity checking to when the build is about to start, this ensures that the configuration metadata is entirely ready to go. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-07-22sanity.bbclass, abi_version.conf: Bump the ABI to inform that cross has died.Khem Raj
* tmpdir layout is changed bump ABI version to force a rebuild. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com> Acked-by: Richard Purdie <rpurdie@rpsys.net> Ackef-by: Chris Larson <clarson@kergoth.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@openembedded.org>
2010-06-17Indentation fixups, caught by python -tChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-05-06sanity.bbclass: Fix to work with old versions of bitbake for nowRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-05relocatable: Class to post-process packages for relocatabilityJoshua Lock
This class helps make packages relocatable by post-processing the binaries and using chrpath to set the RPATH relative to $ORIGIN. Patch also enables this post-processing for native packages and adds chrpath to the required utilties. Based on ideas from a patch from Tom Rini <tom_rini@mentor.com> Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-05bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Joshua Lock
populate_staging task to populate_sysroot This change, pulled from Poky, 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. This patch also includes fixes for all recipes which reference the directory. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-08Using NotHandled/Handled in event handlers is deprecatedChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-09qemu: remove 0.9.xRoman I Khimov
QEMU 0.9.x is obsolete this days and with all modifications made for QEMU 0.10.x in OE, versions 0.9.x are unusable anyway. 0.10.3 was introduced 10 month ago, so a good transition time was also given. Now it's time to just kill it. Also remove cvs and svn versions since those are 0.9.x leftovers and QEMU moved to git long ago. Also remove gcc3 checks since that are not relevant for QEMU 0.10+. Also remove from icecc blacklist, since QEMU builds fine with it and the reason for blacklisting was GCC 3. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Tom Rini <tom_rini@mentor.com> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-03-09sanity: remove /proc/sys/vm/mmap_min_addr checkRoman I Khimov
Binary locale generation fails on openSUSE 11.2 and probably would fail on some other hosts with 2.6.31+ kernels since mmap-ing page zero may be forbidden for security reasons even with /proc/sys/vm/mmap_min_addr set to 0 (this also affects Ubuntu 9.10, although it's been fixed there: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/423513 ). This is not a problem for recently introduced qemu 0.12.3 since it can relocate binaries now, which is tested on openSUSE 2.6.31 kernel with mmap_min_addr=65536 and Debian lenny 2.6.26 with mmap_min_addr set to 0, 4096, 65536. Given that, this check is just useless. Unfortunately, it also means that for reliable builds we have to remove qemu 0.10 which can't work with some kernels. Patch will follow to do that. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Tom Rini <tom_rini@mentor.com> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-03-03qemu: Move gcc version check, qemu-TARGET logic into qemu.bbclassTom Rini
Move the logic to determine what qemu-TARGET to run into qemu.bbclass so we can check for the right binary in sanity.bbclass. This code was duplicated by glibc-package and eglibc-package anyhow and with the new fn we can clean up the usage in these classes a bit. Now that we have a class for qemu stuff, and the gcc check is just for qemu, move it there.
2010-03-02qemu: Perform our sanity checks based on ENABLE_BINARY_LOCALE_GENERATIONTom Rini
Perform qemu-related checks not based on if we're ARM but based on if we'll be using qemu for binary locale generation. Clarify what the first of these sanity checks does. Next, change the check for a provided qemu binary to be generic enough to work on all arches (and catch distribution or user built versions of qemu). While we're in here, correct the gcc version check code in base.bbclass. Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Chris Larson <chris_larson@mentor.com>
2010-02-09sanity: correct misleading message about location of TMPDIRPhil Blundell
There is no point in telling users to move TMPDIR "back" to its current location :-}
2010-01-20sanity.bbclass: handle lack of permission to read /proc/sys/vm/mmap_min_addrMartin Jansa
* With 2.6.33-rc2-00252-ge9e5521 on my host I noticed that "cat /proc/sys/vm/mmap_min_addr" returns now "cat: /proc/sys/vm/mmap_min_addr: Operation not permitted" Its probably becuse of http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=0e1a6ef2dea88101b056b6d9984f3325c5efced3 But I'm not sure if checking CAP_SYS_RAWIO even for reading this value is intentional or just bug which should be fixed in kernel. This patch makes bitbake ignore reading error. Possible QEmu failure is not handled yet. Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2009-11-16classes: Drop a number of unneeded import calls (from Poky)Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-08-09sanity.bbclass: Correct typo to refer to PACKAGE_EXTRA_ARCHSKhem Raj
We were using EXTRA_PACKAGE_ARCHS which was sort of misleading if you started to search for this variable. It was a typo hence fixed as obvious. Signed-off-by: Khem Raj <raj.khem@gmail.com>
2009-02-11sanity.bbclass: do not fail if /bin/sh is not symlinkMarcin Juszkiewicz
2009-02-04sanity.bbclass: make a warning about dash being used as /bin/sh (from Poky)Marcin Juszkiewicz
gtk+ fails with dash
2009-01-22sanity.bbclass: Provide preserving the mmap_min_addr setting over reboots ↵Richard Purdie
(from Poky) git-svn-id: https://svn.o-hand.com/repos/poky@5106 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-27sanity.bbclass: Add check for duplicate entries in PACKAGE_ARCHSRichard Purdie
2008-10-27classes/conf: Handle Distro PR change in sanity.bbclassRichard Purdie
This patch: * Moves the ABI variables into a new abi_version.conf (like Poky). * Renames SANITY_ABI to OELAYOUT_ABI since it has uses outside sanity.bbclass and sanity.conf. * Adds checks to sanity.bbclass so the user is notified when DISTRO_PR changes in a similar way to the OELAYOUT_ABI versions.
2008-10-27sanity.bbclass: Work if no TMPDIR was created yetHolger Hans Peter Freyther
2008-05-07sanity.bbclass: Add check for problematic /proc/sys/vm/mmap_min_addr valuesRichard Purdie
2008-02-23sanity.bbclass: Cope with empty abi files generated by previous issuesRichard Purdie
2008-02-23sanity: Move variable declarations to sanity.conf to workaround problems ↵Richard Purdie
with bitbake 1.8.10
2008-02-21sanity.bbclass: Remove some now unneeded codeRichard Purdie
2008-02-21sanity.bbclass: Add ABI version number and checks so we can warn users when ↵Richard Purdie
the 'abi' of TMPDIR changes. Add checks for qemu in various scenarios from poky. Add check TMPDIR hasn't moved from poky. Remove now unneeded bitbake version check.
2008-01-11sanity.bbclass: remove dependency on host fortran.Michael Lauer
NOTE to involved people: this does not revert the related changes, please do this!
2008-01-07sanity.bbclass: Fix typo - everyone else must have GNU fortran already installedRod Whitby
2008-01-06classes/sanity.bbclass: We need GNU fortran installed to build the gcc4.2 ↵Holger Freyther
cross compiler
2008-01-03base and sanity bbclasses + qemu: move gcc3 availability checking into ↵Marcin Juszkiewicz
base.bbclass (from Poky)
2007-12-15sanity.bbclass: Requiring MACHINE to be set is too paranoid.Paul Sokolovsky
* It's pretty legal to have only TARGET_ARCH set, for example to build non-machine-specific packages (for example, using external SDK).
2007-08-18disapproval of revision '5f324e98b61ec50554d929eb59723aaef495ef64'Holger Freyther
2007-08-17classes/sanity.bbclass: Check stty settings and complain when tostop is presentHolger Freyther
tostop is known to make bitbake-1.8 processes hang. Make the user aware of the upcoming issue and propose a solution to this problem.
2007-08-12sanity.bbclass: Sync with Poky for umask checkRichard Purdie
2007-08-12sanity.bbclass: Remove git and bison, we build them if neededRichard Purdie
2007-07-29santiy.bbclass: Undo accidental changeRichard Purdie
2007-07-29sanity.bbclass: Run sanity checker after configuration parsing for bitbake > ↵Richard Purdie
1.8.6
2007-07-24sanity.bbclass: add help2man to required utils (apt-get install help2man) in ↵Koen Kooi
preparation for autoconf 2.61 activation
2007-07-04sanity: if OE is used by root user (userid 0) then raise error (from Poky)Marcin Juszkiewicz
2007-06-30sanity: also check for bison, closes #2580Patrik Gfeller
2007-04-02classes/base.bbclass: place shasum-native as the first package to buildHolger Freyther
classes/base.bbclass: Make sure shasum-native does not depend on quilt classes/sanity.bbclass: No need to require sha256sum as we use oe_sha256sum packages/shasum: Change the name, make the -native version not have any deps
2007-04-01base.bbclass, sanity.bbclass: use sha256sum instead of shasum -a256Philipp Zabel
2007-04-01classes/sanity.bbclass: md5sum is required as wellHolger Freyther
2007-04-01classes/sanity.bblcass: Require shasum since base.bbclass is calling itHolger Freyther
2006-11-04sanity.bbclass: Show all errors in one error message (from poky). Also add ↵Richard Purdie
dependency on gawk
2006-10-13sanity.bbclass: improve error reporting for missing utilities. thanks nicholasMichael Lauer
2006-10-12sanity.bbclass: loop over required utilitiesMichael Lauer
2006-09-03classes/sanity.bbclass: Check for bzip2 in the path as wellHolger Freyther
2006-07-15sanity.bbclass: relax the DISTRO check a bit, taking into account that some ↵Michael Lauer
DISTRO configurations override DISTRO before sanity.bbclass gets a chance to see it. By definition, in this case $RENAMED_DISTRO needs to be present in distro/include/ though, so we have a second chance for the test to succeed.