aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
AgeCommit message (Collapse)Author
2011-09-07sanity.bbclass: re-enable DISTRO checkPaul Eggleton
If DISTRO has been specified, ensure it is valid. (Unset or empty string is valid for DISTRO in OE-core by the use of defaultsetup.conf.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-02sanity.bbclass: fix splitting on newlines of SANITY_TESTED_DISTROSPaul Eggleton
This variable should be split with \n sequences and these need to be specified literally in the string. A corrected version of the example given in the original commit (OE-core rev 75e3875341ddc8940e9ee2ccbbb2ec18194a68e6): SANITY_TESTED_DISTROS = " \ Ubuntu 11.04 \n \ Fedora release 14 (Laughlin) \n \ " Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-31sanity.bbclass: Clean up various MACHINE checksRichard Purdie
[YOCTO #1398] Firstly we should start checking if MACHINE is set. It if isn't lets make this a sanity warning since its very hard to successfully build without setting one (and anyone wanting to do that can disable the sanity checks easily enough anyway). Some of the checks depend on a MACHINE being specified. This change moves those checks to a separate function so they only run if MACHINE has been set correctly. Both these issues combine to ensure the user sees a sane message and avoids the nasty tracebacks in the bug report referenced above. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-31sanity.bbclass: Fix broken whitespaceRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-31sanity.bbclass: Fix broken indentation leading to code being skipped ↵Richard Purdie
unintentionally Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-25classes/sanity: enhance the network connectivity testJoshua Lock
Switch to use the checkstatus fetcher API for the network connectivity test, this has several advantages: * we no longer print any messages to the console whilst the check is being run * we don't actually download anything, removing the need for tidy up and making the code more concise Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-18sanity.bbclass: add optional untested host distro warningPaul Eggleton
SANITY_TESTED_DISTROS, if specified, is expected to be a newline-delimited list of distro identifier strings, e.g. SANITY_TESTED_DISTROS = " \ Ubuntu 11.04 \ Fedora release 14 (Laughlin) \ " (spaces, tabs etc. are trimmed) If SANITY_TESTED_DISTROS is defined, we will attempt to detect the host distribution. If the distribution is not in SANITY_TESTED_DISTROS or we could not detect the distribution then we show a warning during sanity checking. Provides the mechanism for fixing [YOCTO #1096]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-08-12sanity: shift the required utils into a variableChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-01sanity.bbclass: Add sanity check that TUNE_PKGARCH appears in PACKAGE_ARCHSKumar Gala
Its possible we get duplications if we explicity add TUNE_PKGARCH to PACKAGE_ARCHS so instead just add a sanity check to verify it. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2011-07-22conf/machine/tune: Overhaul tune include file variablesRichard Purdie
There is currently consideradble confusion over how the tune files operate and how these interact with the rest of the build system. This update/overhaul changes things so the tune files are primarily resonsible for setting: TUNE_ARCH - What was formerly set as TARGET_ARCH and is the value that represents the architecture we're targetting. TUNE_PKGARCH - The value that represents the tune confuration that this set of tune parameters results in. This allows the significant improvement that the core can now always determine the target architecture value, even when TARGET_ARCH needs to be reset to something different and likewise, there is one package architecture variable the core can reference allowing simplification of the BASE_PACKAGE_ARCH, PACKAGE_ARCH and FEED_ARCH variables. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-20help2man-native: Add 1.38.2Tom Rini
This is a 'side port' of current oe.dev versions. PR is kept in sync but we drop out the target recipes in order to punt on potential perl problems. Here we do re-configure as we don't have a dance with perl-native to deal with. Now that we can build it, don't require it. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-07-20bitbake.conf, sanity.bbclass: Drop mercurial-nativeTom Rini
We have no hg URIs in the metadata, so don't require and don't ASSUME_PROVIDED it either. meta-oe has a mercurial-native recipe if hg URIs are added in a recipe later. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-07-19sanity, base: remove gcc3 check since qemu doesn't need it any morePhil Blundell
Recent versions of qemu seem to be happy enough building with gcc 4.x, and indeed most modern distributions aren't shipping gcc3 any more, so there is no point checking for its presence as part of sanity. Also remove the check_gcc3 function from base since nothing else uses it. Signed-off-by: Phil Blundell <philb@gnu.org>
2011-07-07sanity: implement network connectivity testJoshua Lock
Sanity test to verify files can be fetched from the network using git, http and https fetchers point users at a page to help get set up in the case of a failure. Requires a variable CONNECTIVITY_CHECK_URIS to be set, using the same pattern as SRC_URI, of URI's to test against. The variable CONNECTIVITY_CHECK_MSG can be set to provide a custom error message, such as a pointer to some help, when this check fails. Addresses [YOCTO #933] Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-30sanity.bbclass: pass the data object to the less frequent test harnessesJoshua Lock
By passing the data object to the less frequently run test harnesses (check_sanity_tmpdir_change(), check_sanity_sstate_dir_change() and check_sanity_version_change()) we can run tests against BitBake data here too. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-06-28sanity.bbclass: only run check_pseudo_wrapper for bitbakeDexuan Cui
This patch eliminates the warning "not been run using the bitbake wrapper..." when we run bitbake-layers. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2011-05-18sanity.bbclass: Disable the is DISTRO set check since we can now run distro-lessRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-07sanity.bbclass: Add cpio to list of required utilities tested forRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-21sanity.bbclass: Fixup Poky referencesRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-21sanity.conf: Rename POKY_CONF_VERSION -> LOCALCONF_VERSION and make sanity ↵Richard Purdie
versions weak assignment allowing the distro to override Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-20Replace POKYBASE with COREBASERichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-20Rename poky-init-build-env to oe-init-build-envRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-04sanity.bbclass: Use SSTATE_MANIFESTS instead of hard coding sstate-controlKhem Raj
This helps when SSTATE_MANIFESTS is overridden by external layers Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-03-18sanity.bbclass: check for duplicates in PACKAGE_ARCHSJoshua Lock
Duplicate entries in PACKAGE_ARCHS causes problems with rootfs generation. For example multiple architecture entries in opkg.conf will confuse the opkg package manager. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-03-17sanity: detect if bitbake wrapper is not being used or pseudo is brokenPaul Eggleton
* Shows a warning during sanity checking if the scripts/bitbake wrapper is not being used * Check to see if pseudo is working during sanity checking, and if it isn't an error occurs (if we are using the wrapper script and pseudo has been built; otherwise it is a warning). Fixes [YOCTO #653] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-03-12sanity.bbclass: Fix inverted mmap_min_addr logicRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-08sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536Khem Raj
* Now qemu can handle lower values we can chnage this sanity test to check of values if less than 65536 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-08sanity.bbclass: some multilib systems have symlink /lib -> /lib64Martin Jansa
* ie gentoo has /lib -> /lib64 * old test assumed only /lib64 -> /lib Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-25sanity/sstate: Due to the sysroot layout changes, the toolchain bootstrap ↵Richard Purdie
process changes and the recent pseudo bug, bump the tmpdir layout version number and the sstate version numbers Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-20sanity.bbclass: remove SDK_ARCH checkJessica Zhang
remove sanity check for SDK_ARCH=i686 due to recent fixes in cross toolchain areas, etc. the old issue no longer exists Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
2011-01-20sanity.bbclass: Disable TERMCMD checking with noop patchingMark Hatle
If PATCHRESOLVE is set to "noop", then it isn't supposed to try and resolve patches at all, and thus does not need TERMCMD. Therefore, make sure Poky doesn't check for (and possibly fail at finding) TERMCMD if it isn't needed in the first place. Signed-off-by: Derek Buitenhuis <dbuitenh@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-01-12Adding check for DL_DIR permissions: sanity.bbclassBeth Flanagan
Check to ensure that DL_DIR is set and that if it exists that it is user writeable. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
2010-12-31classes: Drop Handled/NotHandled eventhandler keywords, they don't do anythingRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-21sanity.bbclass: Add check for '.' in PATH and error if found (see bug #572)Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-12-20sanity.bbclass: add check for creation of long filenamesPaul Eggleton
Detect and fail if filesystem in use for TMPDIR or SSTATE_DIR has an unreasonably short file name length limit (eg. eCryptFS). This can cause "file name too long" errors during poky builds (e.g. when writing sstate files for packages with a git revision as the version). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2010-12-20sanity.bbclass: allow minimisation of impact of more invasive sanity checksPaul Eggleton
Add a mechanism to avoid running more invasive checks every time bitbake is invoked. Adds a file in conf/ (i.e. under user's build directory) that tracks a new variable SANITY_VERSION (set in sanity.conf) as well as TMPDIR and SSTATE_DIR, allowing checks to be run when these are changed. Fixes [BUGID #562] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2010-12-20sanity.bbclass: make indenting consistentPaul Eggleton
Use four spaces throughout the file Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2010-12-16sanity.bbclass: Check if DISPLAY is set when IMAGETEST is setJiajun Xu
Fixes [BUGID: 594] In imagetest-qemu.bbclass, we depend on DISPLAY to start qemu in a X desktop. When user wants to run qemu sanity test, we need to check if the variable is set. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2010-12-06sanity.bbclass: Warn people when TERMCMD is set to a non-installed programJoshua Lock
We default to gnome-terminal for TERMCMD (and TERMRUNCMD) so should check that this program actually exists during sanity checking. As a corollary document how to change these variables in the local.conf Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-11-22sanity.bbclass: add wget to required utilitiesPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@intel.com>
2010-10-13sanity.bbclass: ensure 32it libc is correctly detectedJoshua Lock
Fix to work for both Ubuntu and Fedora multilib paths. Fixes [BUGID #454] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-29Revert "Drop vm_mmap_min_addr checks from scripts and sanity class"Joshua Lock
This reverts commit 138df217efe850528f88d340acf864c38780c2b0. We still need the vm_mmap_min_addr set to 0 to run locale generation for qemu-arm Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-29sstate.bbclass: Update to use SSTATE variables everywhere and remove the now ↵Richard Purdie
unneeded complicated paths from the sstate files Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19sanity.bbclass: Don't run the handler in worker contextRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-12pseudo: Upgrade pseudo and correct problemsMark Hatle
Fix an issue where pseudo could try to compile incorrectly on an x86_64 host system. Now it verifies that it should be trying to build a 32-bit library, and if so the necessary prereqs are available. Also uprev to the latest version of pseudo changes to enable wrapping of execl, local variable storage and misc fixes. Signed-off-by: Mark Hatle <mhatle@windriver.com>
2010-07-21Enable build dir outside of the poky directoryJoshua Lock
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-14sanity.bbclass: Fix SDKMACHINE sanity check. We need to check the SDK_ARCH ↵Richard Purdie
variable, not SDKMACHINE directly. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-06-14sanity.bbclass: Fix test for i686 SDKMACHINEJoshua Lock
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-08sanity.bbclass: Check for Python 2.6 or newerJoshua Lock
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-07sanity.bbclass: version each of the files in the build/conf/ directoryJoshua Lock
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>