aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
AgeCommit message (Collapse)Author
2011-11-30insane.bbclass: add qa check to ensure declared packages existrfcqacheckJoshua Lock
This patch adds an extra package sanity check to test whether any extra packages defined by the recipe (i.e. anything other than -dev, -dbg, -doc, -staticdev and -locale packages) are actually created. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-11-17insane.bbclass: avoid errors for x32 kernelNitin A Kamble
x32 abi of x86_64 has 32bit userspace and the kernel is 64bit. The qa checking code was reporting this as errors for x32 kernel files and modules. This commit extends the condition in the checking code to avoid throwing the bitsize not matched error for x32 kernel files. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-10Convert to use direct access to the data store (instead of bb.data.*Var*())Richard Purdie
This is the result of running the following over the metadata: sed \ -e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \ -e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -i `grep -ril bb.data *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-19insane.bbclass: print full path on invalid LICENSE_FILES_CHKSUMDarren Hart
Currently only the basename is printed when os.path.isfile() returns a failure for the license file. If the file is present, but in the wrong directory, this can be non-obvious to debug. Use the full path instead. Make a minor grammatical correction in the error message while we're at it. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2011-09-29insane: Promote most warnings into QA errors by defaultRichard Purdie
We agreed a while back that we'd start ERRORing on QA issues, not just WARNING about them. This patch changes the default QA levels to error on everything except ldflag and useless rpath issues. It also stops giving out QA warnings about desktop files since it adds noise to the build and until someone plans to seriously tackle that problem, its pointless. We can promote the ldflag and rpath warnings too, when the issues in OE-Core are resolved (they're mostly there now, just a few more to go). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-22insane.bbclass: don't warn on .so files in -nativesdk packagesDmitry Eremin-Solenikov
There is no point in warning against .so symlinks in -nativesdk packages. They have to contain such links, so shut up the warning. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-12insane: add linux-gnu to the platform dataChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-08insane.bbclass: add entries for linux-gnux32Nitin A Kamble
For x86_64 new ABI : x32, there is a new name for the TARGET_OS: linux-gnux32 Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-07-27multilib: Add support for compiling recipes against multiple ABIsRichard Purdie
This patch adds the core multilib class which can be used along with a parameter specifying the mutlilib to use in BBCLASSEXTEND. The MLPREFIX variable is added and can be used in cases where its too difficult to dynmaically work out where a mutltilib prefix is needed to be added to a variable. This includes: * SHLIBSDIR and PACKAGE_ARCH fixes from Lianhao Lu. * PACKAGE_DYNAMIC mapping from Yu Ke * PACKAGE_INSTALL mapping from Yu Ke * RPROVIDES mapping from Yu Ke * TARGET_VENDOR fix from Mark Hatle * Ignorning *-native-runtime dependnecies as well as *-native from Yu Ke * Map PKG and ALLOW_EMPTY from Dongxiao Xu * Ensure RCONFLICTS and PKG field dependencies are remapped (from Dongxiao Xu) * Ensure PN and MLPREFIX are set at the same time to ensure consistent BPN values (Yu Ke) Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com> Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-22insane.bbclass: Recognise powerpc64Kumar Gala
Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-20insane: improve diagnostic for redundant rpathPhil Blundell
Make it more obvious which file, and which recipe, are at issue. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-14insane: make GNU_HASH check slightly more robust (avoids false negatives ↵Phil Blundell
with gold); add check for useless rpaths It isn't safe to make assumptions about the order of the entries in the dynamic section. Fix the ldflags test to cope with the case where GNU_HASH comes before NEEDED and/or INIT. Also, add a new warning for binaries which contain useless (but benign) rpath entries pointing to the default search locations. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-12insane.bbclass: skip rdepends QA checks for kernel / modulesPaul Eggleton
The kernel and module recipes have very few dbg/dev packages, however they can easily have false positive results from the rdepends QA checks (e.g. kernel-module-lirc-dev). Thus disable these tests for any recipe that inherits kernel or module-base. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-08insane.bbclass: fix error/warning status being invertedPaul Eggleton
Fix package_qa_handle_error so that it returns the correct values in order to determine error/warning status. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-08insane.bbclass: allow dev-deps to be skipped via INSANE_SKIPPaul Eggleton
Add the missing check in package_qa_check_rdepends to allow dependencies from non-development packages on development packages to be skipped. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-07insane: add microblaze little endian target infoAdrian Alonso
* Add microblaze little endian target info to package_qa_get_machine_dict Signed-off-by: Adrian Alonso <aalonso@secretlab.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-05insane.bbclass: Fix indentation errorRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-05insane.bbclass: Add warnings for packages which are not -dev packages which ↵Richard Purdie
depend on -dev packages Based on some code from Phil Blundell but reworked against insae.bbclass changes. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-05insane.bbclass: Allow INSANE_SKIP to work on a per test basisRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-01insane.bbclass: Start to rework this so specific checks can be easily made ↵Richard Purdie
warnings/errors This patch means the warning/error handling can be controlled from local.conf and/or from the distro level and no longer uses numbers but strings instead. The system becomes extensible so that other classes can extend the path QA checks at least. It also removes all th duplicate error message code, we should have *one* good error message. Much work remains including making INSANE_SKIP take the classes of QA test to skip but its a start. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-10insane.bbclass: skip license checksum if LICENSE is "CLOSED"Otavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-05-10insane: add micrblaze target infoAdrian Alonso
* package_qa_get_machine_dict * Add microblaze dic entry for QA * Prebuilt toolchain triplet microblaze-unknown-linux-gnu- * TARGET_OS is linux-gnu for this toolchain Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
2011-05-04insane.bbclass: Checking for NLS too when checking gettext dependencyKhem Raj
Checking for gettext is not needed when --disable-nls is used Let user know what variant of gettext is missing e.g. gettext-native, gettext-nativesdk etc, reveals a bit more for user Check for virtual/gettext Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-05-04gettext.bbclass: Updates to better handle gettext alternativesRichard Purdie
* Change gettext dependency to virtual/gettext * Ensure INHIBIT_DEFAULT_DEPS removes gettext dependencies * Use BASEDEPENDS to ensure dependencies are added in native/nativesdk cases Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-28insane.bbclass: Move code to add function to tasks toward the endKhem Raj
Cosmetic change to make syntax highlighters happy Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-04-04classes: Use linux-uclibceabi instead of linux-uclibgnuceabi for os portion ↵Khem Raj
of triplet Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-03-02insane.bbclass: Fix ELF bitsize comparisonMark Hatle
Fix the way the ELF size is compared to ensure that incorrectly sized ELF binaries are captured during the file scan. lib/oe/qa.py is changed to accept a bitsize as a parameter. Instead of previously defining true/false, it now takes "0" undefined, "32" 32-bit, and "64" 64-bit as the size argument. This allows us to preserve existing behavior of only loading one ELF type, while allowing the function to be able to discover the size on it's own. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-03-01Revise stripping and splitting of debug informationMark Hatle
We now support two styles of debug information generation, the '.debug' style, which is the same as previously implemented. This style simply splits the debug information and makes it available in the same general directory. /bin/foo -> /bin/.debug/foo The new 'debug-file-directory' style splits the debug information and places it into the single debug-file-directory, /usr/lib/debug: /bin/foo -> /usr/lib/debug/bin/foo.debug Both also find and copy all referenced source code to a new /usr/src/debug directory. This allows the -dbg files to be used for stand-a-lone debugging on or off the target device. File stripping is now handled as a seperate operation from file splitting. This allows us to split the debug information, but also leave it in the original file -- or prevent the debug information from being split. Also enhance the comments within local.conf.sample to provide a better understanding of the control the user has over debug file generation. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-08insane.bbclass: Fix config.log error messageMark Hatle
[BUG #702] The previous error message was confusing. It was looking for both library and include host contamination, but the message only indicated include files. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-01-21insane.bbclass: skip checks on .la installed statusScott Garman
Enabling libtool sysroot support triggers these errors but they are a valid change in behavior. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2011-01-13insane.bbclass: Make sure QA issues are reported as warningsRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-07insane.bbclass: Enable the package_qa_hash_style checkRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-06insane.bbclass: Fix message for LIC_FILES_CHKSUM ErrorsSaul Wold
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-12-23insane.bbclass: make LIC_FILES_CHKSUM failures report errorsSaul Wold
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-11-14insane.bbclass: fix qa_configure and qa_stagingQing He
fix the typo in `postfuncs' and effectively re-enables qa_configure and qa_staging Signed-off-by: Qing He <qing.he@intel.com>
2010-10-01insane: Update the insane class to check for host contaminationMark Hatle
[BUGID #376] Update to the insane class to detect the new gcc and binutils poison messages located within the config.log. (Continue to scan for the old style message.) Add a new compile and install log check to the package_qa that scans the logs for the same types of messages "unsafe for cross-compilation". Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2010-08-23insane.bbclass: Update to match the packaging classes when handling OVERRIDESRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-15insane.class: print the recipe name in the warning.Nitin A Kamble
Now Warning includes the package name like zlib is printed bellow: WARNING: zlib: Recipe file does not have license file information (LIC_FILES_CHKSUM) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-07-15insane.bbclass: move license check to after configureJoshua Lock
Only checking the license at packaging time means we don't check native builds, so move the check to after do_configure Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-07-08insane.bbclass: Relax fatal errors for now until we get have time to work ↵Richard Purdie
through the backlog Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-08insane.bbclass: Portions of code were not running, fix this and sync with ↵Richard Purdie
OE.dev. Also add tests for bad sysroot rpaths in binaries Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-06-30insane.bbclass: allow reporting all md5 mismatch warningsKevin Tian
instead of exiting when once one md5 mismatch is seen. This would be helpful to save time on filling md5sum for multiple license check files. Signed-off-by Kevin Tian <kevin.tian@intel.com>
2010-06-07insane.bbclass: Throw better error if path is badNitin A Kamble
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-05-12License Checking: convert an error into warningNitin A Kamble
If license file md5 information (LIC_FILES_CHKSUMS variable) is missing in the recipe then just throw a warning instead of the build failure. Once enough recipes' LIC_FILES_CHKSUMS are filled then this warning will be reverted back to the the fetal error. If LIC_FILES_CHKSUMS field is present but invalid then the it still causes a fetal build error. Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-05-11License Change checking:Nitin A Kamble
Added a new variable in recipe : LIC_FILES_CHKSUM It is a required field for every recipe. It describes license text location in the source files. And also stores md5sum of that license text. Any change in this license text triggers build error. Which enables developer to review any changes in the license and update the license fields in the recipe accordingly. For Example: contents of zlib_1.2.3.bb LICENSE = "zlib" LIC_FILES_CHKSUM = "file://README;md5=ae764cfda68da96df20af9fbf9fe49bd \ file://zlib.h;beginline=1;endline=30;md5=6ab03f03a5ee92d06b809797d4d5586d " Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-05-06Update classes to use lib/oeJoshua Lock
Adapt modifications from upstream to make Poky classes use lib/oe for the common Python functionality. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-03-29classes/conf: Update to handle gcc-runtimeRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-26insane.bbclass: Since we have no legacy packaging, no need to repeatedly ↵Richard Purdie
scan staging Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14insane.bbclass: Fix typoRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14cross-canadian: Fix gettext issuesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>