aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
AgeCommit message (Collapse)Author
2011-04-28sstate.bbclass: Reduce SSTATE_MANIFESTS assignment to be weakKhem Raj
Distributions can then override this variable if needed useful e.g. when building uclibc/eglibc both using same tmpdir Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-04-08sstate: ensure an ordered mapping between SSTATETASKS and SSTATETASKNAMESDexuan Cui
Fix [YOCTO #964] A recent commit 25a6e5f9(sstate: use only unique set of SSTATETASK) breaks the ordered mapping between SSTATETASKS and SSTATETASKNAMES. As a result, in sstate_cleanall, the line taskname = tasks[namemap.index(name)] gets an incorrect result, and "bitbake -c cleanall" doesn't really remove the files populalted by do_populate_sysroot. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2011-03-29sstate: Add support for taking shared lockfilesRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-24sstate: use only unique set of SSTATETASKMartin Jansa
* otherwise strange error like this: ERROR: Logfile of failure stored in: /OE/shr-core/tmp/work/armv7a-oe-linux-gnueabi/libtool-cross-2.4-r1/temp/log.do_package_write_ipk.25551 Log data follows: | ERROR: Package already staged (/OE/shr-core/tmp/sstate-control/manifest-nokia900-libtool-cross.deploy-ipk)?! | ERROR: Function 'sstate_task_postfunc' failed NOTE: package libtool-cross-2.4-r1: task do_package_write_ipk: Failed ERROR: Task 11 (/OE/shr-core/openembedded-core/meta/recipes-devtools/libtool/libtool-cross_2.4.bb, do_package_write_ipk) failed with exit code '1' is shown in this case with package_ipk twice in INHERIT * Thanks to Richard for fix Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-19sstate: Ensure a clean removes setscene stamps as well as the main task stampsRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-18sstate.bbclass: Turn absolute symbolic links into relative ones for sstate ↵Richard Purdie
packages Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-15sstate.bbclass: always delete stamp files in sstate_cleanPaul Eggleton
For safety, always delete the stamp files in sstate_clean regardless of whether the manifest file exists or not. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-03-15sstate.bbclass: avoid deleting unrelated stamp filesPaul Eggleton
Avoid deleting stamp files whose names contain the current task's name as a substring. This will be especially important for example if do_package_write is ever made an sstate task (as it would previously have deleted the stamps here for do_package_write_ipk etc.) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-03-08sstate: Ensure the SRCURI fetcher cache is not used for sstateRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-23sstate.bbclass: add SSTATEPOSTINSTFUNCSScott Garman
When doing builds using sstate cache, there was no way to run the equivalent of a pkg_postinst function. This is needed by the SGML-related documentation recipes to properly update the catalog files when new DTDs and stylesheets are installed. SSTATEPOSTINSTFUNCS is a new variable you can set to function(s) in your recipe to run after install is completed from sstate. Thanks to Richard Purdie for suggesting this solution. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2011-02-11sstate: Fix bugs after new fetcherZhai Edwin
Current sstate's fetch code doesn't reflect latest fetcher changes, so old fetch style cause exception and fail silently. [BUGID #708] got fixed. Another issue is "import xxx" in python function from sstate.bbclass can only sit in the head of the function, else have UnboundLocalError: "local variable XXX referenced before assignment". Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2011-02-07meta/classes: Update classes to use new fetcher APIRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-03license.bbclass: Add coverage by sstate code (also use cleandirs and dirs ↵Richard Purdie
task attribures for directory handling) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-28staging.bbclass: Only clean out the sysroot if we rerun configure, not at ↵Richard Purdie
setscene time Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-28sstate: Ensure stale stamp files are removed as part of sstate_clean()Richard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-27sstate.bbclass: Fix stupid typoRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-27sstate.bbclass: No need to dump the contents of the sstate package to stdoutRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-27sstate.bbclass: Handle whitespace in the list of files to 'fixup' to resolve ↵Richard Purdie
log warning Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-27sstate.bbclass: Optimise to check if the manifest exists without taking locksRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-26sstate.bbclass: Correctly handle empty sstate packagesRichard Purdie
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-25base/sstate.bbclass: Rename fetcher "go" method to "download" when using ↵Yu Ke
fetch v2 Signed-off-by: Yu Ke <ke.yu@intel.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-25sstate.bbclass: allow each step of toolchain bootstrap processes to do ↵Dexuan Cui
populate_sysroot independently Some steps (like gcc-cross-initial, gcc-cross-intermediate and eglibc-initial) will install to new locations to avoid file overwriting. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2011-01-19sstate.bbclass: Ensure clean/setscene sstate functions run under appropriate ↵Richard Purdie
locking Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-04sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCHKoen Kooi
previously you could only build one set of packages for multiple machines: MACHINE=foo bitbake task-base MACHINE=bar bitbake task-base would only create task-base packages for foo, but not for both foo and bar. Doing MACHINE=bar bitbake task-base -c cleanall would remove the packages for foo. The solution is to use MULTIMACH_ARCH as suggested by Richard Purdie. Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-12-20sstate.bbclass: delete sstate files when doing cleanallPaul Eggleton
This fixes the cleanall task to actually delete the sstage cache files. This was not working correctly before due to attempting to use the current task's hash in the package file name to be deleted, which of course is the hash of the cleanall task when doing cleanall. The siginfo files are now deleted as well. Signed-off-by: Paul Eggleton <paul.eggleton@intel.com>
2010-11-14sstate.bbclass: Remove the temp sstate-build-* directories in WORKDIRDongxiao Xu
Remove the temp sstate-build-* directoies. Take poky-image-minimal as an example, this saves about 17% disk space. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-11-13bitbake/fetch: Allow checking of a single url at a time (massive sstate ↵Richard Purdie
speed improvement) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-13sstate.bbclass: Only create symlinks to different localpath urls if the ↵Richard Purdie
fetch succeeded Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-02sstate: Provide a temporary mechanism to stop collisions between toolchain ↵Richard Purdie
components in builds from scratch using sstate Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-22sstate: Fix mirror handling for file:// urlsRichard Purdie
The fetcher has special handling for file:// mirror urls, being efficient and just providing an updated path. Unfortunately the sstate fetching code wasn't able to handle this. This patch detects this and injects a symlink to ensure everything works. It also fixes some datastore references to be correct and ensures the sstate download directory exists if it doesn't already. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-22sstate: Fix broken plaindirs supportRichard Purdie
When installing a sstate package, directories tracked by plaindirs were being installed to the incorrect location. With the current implementation this was limited to the do_package task. This patch ensures plaindirs tracked files are created in the correct location, fixing the bug where these files would go missing. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-22base/sstate: Add cleanall task to remove downloads and sstate cached filesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-07sstate: Fix SSTAGE_MIRRORS handling and improve example in local.conf.sampleRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-05bitbake/sstate: Implement a lookup function to speed up setscene processingRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-10-01sstate: Deal with a potential race when cleaning packagesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-29sstate: list directories in child first order in the manifest fileJoshua Lock
The directory list in the manifest file needs to be sorted such that child directories are deleted first. Fortunately as the list is generated by walking the directory tree achieving this is as simple as reversing the directory list. Fixes [BUGID #269] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-29sstate.bbclass: Add signature hash to sstate package namesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@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-09-29sstate.bbclass: pstage -> sstate name changes (no global implications)Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-29sstate.bbclass: Rename PSTAGE2 -> SSTATERichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-13sstate: Trigger generation of siggen info when building sstate packagesRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-10sstate: Add sstate-interceptfuncs called between install and packageJeff Polk
Adds the ability to impose intercept function call(s) after sstate_install and before sstate_package in sstate_task_postfunc. Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
2010-09-07sstate: Make sure the sstate function is the last to run, not the firstRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-03sstate: Handle symlink directory entries correctlyRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-31sstate: fix dir name in manifestKevin Tian
dir name in manifest is incorrect: /media/disk/builds/master-arm/tmp/sysroots/usr/ /media/disk/builds/master-arm/tmp/sysroots/lib/ /media/disk/builds/master-arm/tmp/sysroots/include/ Also add one debug note when removing manifest entries Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2010-08-31sstate: make do_cleanup really workingKevin Tian
there's a bug in creating manifest_pattern, which means actually with new sstate do_cleanup hasn't worked yet We can use PSTAGE2_MANFILEPREFIX easily for this purpose. Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2010-08-27sstate/utility-tasks: Ensure do_clean functions correctly and removes shared ↵Richard Purdie
state Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-27sstate: Run sstate_cleanall() as part of do_setscene()Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>