summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* sanity.bbclass: Add sanity check that TUNE_PKGARCH appears in PACKAGE_ARCHSKumar Gala2011-08-011-1/+9
| | | | | | | | | | Its possible we get duplications if we explicity add TUNE_PKGARCH to PACKAGE_ARCHS so instead just add a sanity check to verify it. (From OE-Core rev: b2ae0444eb1984b86c02e571bb1efeaacdeafcf1) Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* conf/machine/tune: Overhaul tune include file variablesRichard Purdie2011-07-251-3/+7
| | | | | | | | | | | | | | | | | | | | | | 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. (From OE-Core rev: a10de4cf8b424ee95c8e283e75d486be5b3b8eac) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* help2man-native: Add 1.38.2Tom Rini2011-07-201-1/+1
| | | | | | | | | | | | 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. (From OE-Core rev: 9673d7aa1f9e1c88ba69047b2e22636c755edaaa) Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake.conf, sanity.bbclass: Drop mercurial-nativeTom Rini2011-07-201-1/+1
| | | | | | | | | | | 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. (From OE-Core rev: 6473c9096bf4995c21147e737322d800219c89ab) Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity, base: remove gcc3 check since qemu doesn't need it any morePhil Blundell2011-07-191-8/+0
| | | | | | | | | | | 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. (From OE-Core rev: ec5c68e9368111bd51c1cfd6a9a135c53b82ceca) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity: implement network connectivity testJoshua Lock2011-07-071-0/+37
| | | | | | | | | | | | | | | | | | 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] (From OE-Core rev: 8fdea2a1ac8875a42b3a57f0fd7b530f851c20e9) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: pass the data object to the less frequent test harnessesJoshua Lock2011-06-301-8/+8
| | | | | | | | | | | | 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. (From OE-Core rev: 7df8376c28d991dd07c0915d3ccade4cf51c2fee) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: only run check_pseudo_wrapper for bitbakeDexuan Cui2011-06-281-0/+4
| | | | | | | | | | This patch eliminates the warning "not been run using the bitbake wrapper..." when we run bitbake-layers. (From OE-Core rev: 547f4ea9ac4be2e656f846e658df99b0ecff7a29) Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Disable the is DISTRO set check since we can now run distro-lessRichard Purdie2011-05-181-2/+2
| | | | | | | (From OE-Core rev: 1e76c3c4c4164e884b5c474fa279a1f2f7e846f5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Add cpio to list of required utilities tested forRichard Purdie2011-05-091-1/+1
| | | | | | (From OE-Core rev: 4f4bac0a459fe238e105e96b2b59b6af88e639c4) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Fixup Poky referencesRichard Purdie2011-04-211-6/+6
| | | | | | (From OE-Core rev: 0a6f77f549c095692045825f4b5c4c5a2edff73c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.conf: Rename POKY_CONF_VERSION -> LOCALCONF_VERSION and make sanity ↵Richard Purdie2011-04-211-1/+1
| | | | | | | | versions weak assignment allowing the distro to override (From OE-Core rev: 9a5a783fb131aef98540a81ea6697031a7a429e0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Replace POKYBASE with COREBASERichard Purdie2011-04-211-3/+3
| | | | | | (From OE-Core rev: 607a7657715f6fcba467a4e55ba64f41f4e13a15) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rename poky-init-build-env to oe-init-build-envRichard Purdie2011-04-211-1/+1
| | | | | | (From OE-Core rev: fa6176219b741eed346b21a3d923e9abc9b5442a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Use SSTATE_MANIFESTS instead of hard coding sstate-controlKhem Raj2011-04-041-1/+1
| | | | | | | | | This helps when SSTATE_MANIFESTS is overridden by external layers (From OE-Core rev: 246cbbb076ea91eccbc373bd277684f69a8ab4dc) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: check for duplicates in PACKAGE_ARCHSJoshua Lock2011-03-181-0/+13
| | | | | | | | | | | Duplicate entries in PACKAGE_ARCHS causes problems with rootfs generation. For example multiple architecture entries in opkg.conf will confuse the opkg package manager. (From OE-Core rev: 06aca3de95483e5086b0231df070bac76a6e3c19) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity: detect if bitbake wrapper is not being used or pseudo is brokenPaul Eggleton2011-03-171-1/+24
| | | | | | | | | | | | | | | * 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] (From OE-Core rev: 0b06b69992dd3df1dfff7bde694d7ad23d8d15a0) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Fix inverted mmap_min_addr logicRichard Purdie2011-03-141-2/+2
| | | | | | (From OE-Core rev: 2956705bb0dad88b5ad7d42490c345ccb1d9d478) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536Khem Raj2011-03-081-4/+6
| | | | | | | | | | * Now qemu can handle lower values we can chnage this sanity test to check of values if less than 65536 (From OE-Core rev: 5f172d8b9b829554f3d884a9007a33fff7dcc187) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity.bbclass: some multilib systems have symlink /lib -> /lib64Martin Jansa2011-03-081-1/+1
| | | | | | | | | | | * ie gentoo has /lib -> /lib64 * old test assumed only /lib64 -> /lib (From OE-Core rev: 776af6c2fa5a80debfafb4697c462d0dd0e7d76c) 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>
* sanity/sstate: Due to the sysroot layout changes, the toolchain bootstrap ↵Richard Purdie2011-01-251-1/+1
| | | | | | 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>
* sanity.bbclass: remove SDK_ARCH checkJessica Zhang2011-01-201-3/+0
| | | | | | 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>
* sanity.bbclass: Disable TERMCMD checking with noop patchingMark Hatle2011-01-201-5/+6
| | | | | | | | | | 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>
* Adding check for DL_DIR permissions: sanity.bbclassBeth Flanagan2011-01-121-1/+9
| | | | | | | 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>
* classes: Drop Handled/NotHandled eventhandler keywords, they don't do anythingRichard Purdie2010-12-311-2/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: Add check for '.' in PATH and error if found (see bug #572)Richard Purdie2010-12-211-0/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: add check for creation of long filenamesPaul Eggleton2010-12-201-8/+31
| | | | | | | | | 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>
* sanity.bbclass: allow minimisation of impact of more invasive sanity checksPaul Eggleton2010-12-201-1/+47
| | | | | | | | | | | 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>
* sanity.bbclass: make indenting consistentPaul Eggleton2010-12-201-216/+216
| | | | | | Use four spaces throughout the file Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* sanity.bbclass: Check if DISPLAY is set when IMAGETEST is setJiajun Xu2010-12-161-0/+4
| | | | | | | | | | 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>
* sanity.bbclass: Warn people when TERMCMD is set to a non-installed programJoshua Lock2010-12-061-0/+6
| | | | | | | | | 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>
* sanity.bbclass: add wget to required utilitiesPaul Eggleton2010-11-221-1/+1
| | | | Signed-off-by: Paul Eggleton <paul.eggleton@intel.com>
* sanity.bbclass: ensure 32it libc is correctly detectedJoshua Lock2010-10-131-1/+5
| | | | | | | | Fix to work for both Ubuntu and Fedora multilib paths. Fixes [BUGID #454] Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Revert "Drop vm_mmap_min_addr checks from scripts and sanity class"Joshua Lock2010-09-291-0/+11
| | | | | | | | | 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>
* sstate.bbclass: Update to use SSTATE variables everywhere and remove the now ↵Richard Purdie2010-09-291-1/+6
| | | | | | unneeded complicated paths from the sstate files Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: Don't run the handler in worker contextRichard Purdie2010-08-191-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* pseudo: Upgrade pseudo and correct problemsMark Hatle2010-08-121-0/+5
| | | | | | | | | | | 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>
* Enable build dir outside of the poky directoryJoshua Lock2010-07-211-3/+3
| | | | | | | | | | | | | | | | | | 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>
* sanity.bbclass: Fix SDKMACHINE sanity check. We need to check the SDK_ARCH ↵Richard Purdie2010-07-141-2/+2
| | | | | | variable, not SDKMACHINE directly. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: Fix test for i686 SDKMACHINEJoshua Lock2010-06-141-1/+1
| | | | | | | | 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>
* sanity.bbclass: Check for Python 2.6 or newerJoshua Lock2010-06-081-0/+6
| | | | | | | | 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>
* sanity.bbclass: version each of the files in the build/conf/ directoryJoshua Lock2010-06-071-4/+17
| | | | | | | | 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>
* sanity.bbclass: check for invalid characters in OEROOTJoshua Lock2010-06-021-0/+6
| | | | | | | | 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>
* sanity.bbclass: Check for SDKMACHINE=i686 and error if foundRichard Purdie2010-06-011-0/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Drop vm_mmap_min_addr checks from scripts and sanity classJoshua Lock2010-05-281-11/+0
| | | | | | | 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>
* sanity.bbclass: fix typo in earlier commitJoshua Lock2010-04-301-2/+2
| | | | | | | Commit fbe3d41eb0c75500d8f16bfd2975cd3136ef1335 left a trailing bracket which cause an interpretation error Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Version the build configuration directoryJoshua Lock2010-04-301-0/+7
| | | | | | | | | | 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>
* Fix sanity check for new abiJoshua Lock2010-04-291-1/+1
| | | | | | | | | 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>
* Bump the ABI to alert people that cross has goneJoshua Lock2010-04-281-0/+2
| | | | | | | 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>
* sanity.bbclass: handle lack of permission to read /proc/sys/vm/mmap_min_addrJoshua Lock2010-04-271-5/+9
| | | | | | | | | | 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>