aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
AgeCommit message (Collapse)Author
2011-05-17backport USE_LDCONFIG and PACKAGE_SNAP_LIB_SYMLINKS from oe masterPhil Blundell
This is a backport of the corresponding package.bbclass functionality (which is needed by micro) from the openembedded tree. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-08package.bbclass: convert unpackaged file message from 'info' to 'warn' so ↵Koen Kooi
that it shows up on the console Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-03-16package.bbclass: Fix missing debug src filesMark Hatle
The previous change used egrep instead of fgrep. We need to use fgrep because there are expression like syntaxes in some file names, we need exact matches. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-03-10package.bbclass: Change the debug directory to avoid conflictsMark Hatle
The debug directory before was below ${WORKDIR}. Unfortunately if something was based on a git tree, it meant that "git" was the directory name being preserved for usr/src/debug usage. The patch moves to using "${WORKDIR}/.." as the base, to ensure that the WORKDIR naming is used in usr/src/debug. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-03-01package.bbclass: Rewrite package_do_filedeps() to reduce the amount of ↵Richard Purdie
subprocesses created and improve speed Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-01package.bbclass: Fix debug sources directory creation to reference the ↵Richard Purdie
target system Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-01package.bbclass: Refactor split and strip functionMark Hatle
Refactor the function to eliminate additional interations/walks of the filesystem.. Elimiate multiple runs of the external 'file' command as well. 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-03-01package.bbclass: Ensure dependency version information is preservedRichard Purdie
[BUGID #176] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-01package.bbclass: Use hard link for package split instead of copyDongxiao Xu
When doing package split, we use hard link instead of copy, which can save about 10% disk space when building poky-image-minimal. If fail, it will fall back to the copyfile function. [Updated by Richard to use os.link and avoid an exec() call per file] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2011-03-01package.bbclass: Unbreak per file dependencies and blacklist doc packagesRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-12package.bbclass: Breakout the strip from the populate_packagesMark Hatle
Break out the file split/strip from the populate_packages. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-10package.bbclass: Only set recrdeptask for do_build if packaging is enabled ↵Richard Purdie
for the recipe Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-09package.bbclass: Preserve hard links!Mark Hatle
Hard links were not being preserved in the move from the install image -> package copy. Again they were being discarded in the package -> packages-split copy as well. By preserving the hard links we have the potential to save a ton of rootfs space. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-03package.bbclass: Optimise file dependency calculations to ignore locales and ↵Richard Purdie
kernel modules as these never have dependencies we'd detect anyway Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-03bitbake.conf & package.bbclass: Use default SUMMARY and DESCRIPTIONMark Hatle
A new default SUMMARY and DESCRIPTION was defined for any package that previously did not contain one. This value is based on the original SUMMARY_${PN} value. The new default SUMMARY and DESCRIPTION is used as a basis for all of the automatic summary and descriptions for the various package splits, include ${PN}, ${PN}-dbg, ${PN}-dev, ${PN}-doc, and locales. A recipe may also override any of the automatic summaries by simply specifying the value. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-02-02package.bbclass: Ensure SUMMARY is written to pkgdata as well as DESCRIPTIONRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-01package.bbclass: add nodeprrecs flag to RRECOMMENDS_pkgnamePaul Eggleton
Setting this flag disables the normal additions to RRECOMMENDS for a package (useful when splitting dev / dbg packages). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-01-31package.bbclass: Disable EXPORT_FUNCTIONS for do_packageRichard Purdie
As discovered by Lianhao Lu and Kevin Tian: """ do_package checksum changes with switching the order In PACKAGE_CLASSES, e.g: From PACKAGE_CLASSES = "package_rpm package_ipk" To PACKAGE_CLASSES = "package_ipk package_rpm" This is undesired since the order only matters for final rootfs generation. The actual cause is related to how do_package is generated, which depends on when package.bbclass is first brought in. """ Since we never need the EXPORT_FUNCTIONS funcationality for do_package we just drop it which removes this problem and stablisised checksums. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-28rpm: Uprev to RPM 5.4.0Mark Hatle
Update RPM to the latest release, RPM 5.4.0. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-01-25bitbake: machine specific sysroots implementationDongxiao Xu
This commit changes the sysroots path to be machine specific. Changes includes: 1) STAGING_DIR_TARGET and STRAGING_DIR_HOST points to machine specific paths. 2) task stamp files. Adding ${MACHINE} info into stamp files for do_populate_sysroots and do_package tasks. Add a BB_STAMPTASK_BLACKLIST to keep native, nativesdk, crosssdk, and cross-canadian stamp unchanged. 3) siteconfig path. Separate the site config path for different machines to avoid one machine adopting the cache file of another machine. 4) sstate. Add machine name to sstate manifest file. Change relocation code for sstate paths since sysroot is machine. Keep native, nativesdk, crosssdk, and cross-canadian unchanged. 5) toolchain scripts. Change the environment path to point to machine specific sysroots in toolchain scripts bbclass. 6) Relocate la files when populating to a different machine of the same architecture. 7) Exclude STAGING_DIR_TARGET and STAGING_DIR_HOST parameter from sstate siginfo since they contain ${MACHINE} information. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2011-01-19package.bbclass: Take a shared lock when reading to improve do_package ↵Richard Purdie
parallelism Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-11-07package.bbclass: make sure 'sysroots' created before lockfileKevin Tian
package sstate requires a lock under sysroots/, which however may not be created when sstate_setscene functions are executed and then causes failures. here we make sure 'sysroots' created before do_package_setscene is executed. Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2010-11-06meta/classes: Mark do_package_write and do_build as noexec tasksRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-22classes: Only enable fakeroot on setscene tasks with packagingRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-22pseudo/fakeroot: Move the pseudo directory creation into bitbakeRichard Purdie
If sstate was used to accelerate a build, the pseudo directory might not have been created leading to subsequent task failures. Also, sstate packages were not being installed under pseudo context meaning file permissions could have been lost. Fix these problems by creating a FAKEROOTDIRS variable which bitbake ensures exists before running tasks and running the appropriate setscene tasks under fakeroot context. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-05Revert "classes: Disable setscene tasks for initial testing"Richard Purdie
This reverts commit 084ec86402bba92418898a4c47667a0574a3b3ee.
2010-09-08package.bbclass: Ensure all packages package when running a buildRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-03rpm: Fix autoconf/libtool usageMark Hatle
In order to resolve a host-contamination problem, we re-work the way that autoconf and friends are invoked during the compilation of RPM. This has a side effect of fixing another bug where RPM was being renamed HOST_ARCH-HOST_OS-rpm. So we remove the "fixes" for that behavior as well. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2010-09-02package_rpm: Enable per file dependenciesMark Hatle
Switch the per file dependency handing to passing the information to rpm via the standard 'external' dependency scripting. This ensures that the dependencies found by RPM exactly match the ones presented by package.bbclass. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2010-08-23package.bbclass: Fix per-file dependency generationMark Hatle
The overall file list was being constructed with the wrong variable, it should have had FLIST in the name. Also it was possible to construct the system with some illegal variable names. Names that would have include "[]". So translate these away... Finally fix an issues where a filename with an _ could cause a package variable conflict. Again translate this away.. Signed-off-by: Mark Hatle <mhatle@windriver.com>
2010-08-23package.bbclass: Fix shlibs raceRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-23package.bbclass: Fix do_shlibsMark Hatle
The current packages shlibs processing is written to a local temporary file. This file is not consulted when evaluting the provider of the dependency, instead we need to cache the local values into the dictionary while we write the temp file. Signed-off-by: Mark Hatle <mhatle@windriver.com>
2010-08-22package.bbclass: If files are unreadable, add read access for strippingRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-20package.bbclass: Add perfile dependency identificationMark Hatle
Using the rpmdeps commands, we enable the discovery of per-file dependencies. These dependencies are generated for all packages, and may or may not be used by any given packaging mechanism. Currently RPROVIDES and RDEPENDS are generated in this process. Signed-off-by: Mark Hatle <mhatle@windriver.com>
2010-08-19classes: Disable setscene tasks for initial testingRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-19package.bbclass: Implement packaged-staging2Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-12package.bbclass: Document the process followed in the class from a high levelRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-10package.bbclass: Use --preserve-dates option when stripping kernel modulesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-10kernel/package.bbclass: Handle kernel module stripping centrallyRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-20package.bbclass: Clear package directory copy before installing new files to ↵Richard Purdie
prevent stale data Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-19package.bbclass: Fix runtime_maping_rename so version information isn't removedRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@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-11-13package.bbclass: Add the option to declare package preprocess function hooksRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13package.bbclass: Change to operate on a copy of the install directory ↵Richard Purdie
instead of directly. Also take the opportunity to rename the temp directories so their function is clear Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13package.bbclass: Remove hardcoded use of PKGDEST variableRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13package.bbclass: Move variable checks to one place making the code more readableRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-10-29package.bbclass: Cleanup getVar syntax to use True, not 1 as third argumentRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-04-28Merge ssh://gitserver@git.pokylinux.org/pokyRichard Purdie