aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
AgeCommit message (Collapse)Author
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>
2010-01-06insane.bbclass: Fix multiline stringJoshua Lock
Earlier commit had created a multiline string without updating the python string quotation (""" for multiline). Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-06insane.bbclass: enhance gettext error messageJoshua Lock
Point the user at gettext.bbclass which handles adding the correct gettext to DEPENDS. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-04insane.bbclass: special case gettext as it can't depend on itselfJoshua Lock
Only run the gettext section of the QA configure sanity check if the package is not gettext as the gettext tools, shipped with gettext, use the macro employed in the sanity check. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-21insane.bbclass: Fix gettext testJoshua Lock
The previous gettext check was broken resulting in many false positives. This improved version works as follows: * Adds to the existing os.walk() and builds a list of configure.in and configure.ac files * Tests whether DEPENDS includes an appropriate gettext * If not greps the configure files in the list for instances of AM_GNU_GETTEXT * If if an instance is found we bb.fatal with an appropriate message Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-17insane.bbclass: Handle native packages in the gettext testJoshua Lock
When the package we are checking is a native package we need to check for gettext-native rather than gettext in the DEPENDS. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-15insane.bbclass: Check whether gettext is required but not in DEPENDSJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-14insane.bbclass: Skip arch check for Cross CanadianJoshua Lock
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-11-13bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Richard Purdie
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-13classes: Remove and sanitise import statementsRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17sdk.bbclass: Rename to nativesdk.bbclassRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-02-05base.bbclass: Use explode_deps from bb.utils and remove the obsolete ↵Richard Purdie
base.bbclass version
2008-04-22insane.bbclass: Drop pointless QA_LOG variable, add QA_LOGFILE so QA errors ↵Richard Purdie
can optionally end up logged in one place for ease of reference. Add sanity check searching for tmpdir references within built packages, not fatal at present. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4309 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-03insane.bbclass: use 'desktop-file-validate' from staging not from host systemMarcin Juszkiewicz
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4159 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19insane.bbclass: Sync with OE.devRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4060 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19insane.bbclass: find desktop-file-validate on the path, so it can be added ↵Ross Burton
to ASSUME_PROVIDED git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4053 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-01-13insane.bbvlass: split checks so the warnings are preciseRoss Burton
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3478 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-11-14insane.bbclass: use bb.error when reporting desktop file problemsRoss Burton
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3152 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-11-14insane.bbclass: validate desktop filesRoss Burton
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3151 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-10-19insane.bbclass: fix x86_64 arch name (from OE)Marcin Juszkiewicz
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2910 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-09-03insane.bbclass: don't raise strings, but exceptionsRoss Burton
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2679 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-09-02insane.bbclass: Merge updates from OERichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2644 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-04-10package.bbclass/insane.bbclass: Don't set task dependencies when PACKAGES is ↵Richard Purdie
empty git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1455 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-04-03classes: Rework core dependencies to work properly at the task levelRichard Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1427 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-02-04Fix typo when reporting an errorRoss Burton
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1258 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-22Remove exclude hack in insane.bbclass and replace it with something a little ↵Ross Burton
less foul. This involces adding INSANE_SKIP_package=1 statements to the relevant .bb files git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1197 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-22Add exclude list for now, until insane can handle per-package exclusionsRoss Burton
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1196 311d38ba-8fff-0310-9ca6-ca027cbcb966