summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* bitbake.conf/classes: Variable cleanupRichard Purdie2011-07-251-3/+3
| | | | | | | | | | | | | This patch removes the variables BASE_PACKAGE_ARCH, BASEPKG_HOST_SYS, BASEPKG_TARGET_SYS and also removes the immediate assignments in several core classes as these are no longer required. This should make it clearer what some of the core variables do and simplfy some overly complex and confusing class code. (From OE-Core rev: d5521be2dcbaf213c140b0d12a4176380874426b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Improve performance by moving files rather than using copy and deleteRichard Purdie2011-07-121-5/+11
| | | | | | | Acked-by: Joshua Lock <josh@linux.intel.com> (From OE-Core rev: c5913c644d10470e2c3c8b55cf044995fc109d87) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Fix an issue if the config changesMark Hatle2011-06-291-0/+2
| | | | | | | | | | | | | | | | | | We need to check if we know of the task type, before we attempt to process it. In order to reproduce the problem build with: PACKAGE_CLASSES = "package_ipk" Then change it to: PACKAGE_CLASSES = "package_rpm" Build again -- and then try bitbake -c cleansstate <recipe> (From OE-Core rev: 8870ba9d261d3cacbe5d1219fdd95840c05ecf9e) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/conf: Drop MULTIMACH_ARCH variable, it adds unused complexity and ↵Richard Purdie2011-06-281-2/+2
| | | | | | | | | serves no useful purpose (From OE-Core rev: e623d3015bbdeb2b42b9763937be899a1fa9c0ca) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: When removing files, take an exclusive lock, even for shared ↵Richard Purdie2011-06-091-1/+1
| | | | | | | | | lockfiles (From OE-Core rev: 4a3e94c2ec014a8aef5e8ebb21bdbdf8d28416b3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Reduce SSTATE_MANIFESTS assignment to be weakKhem Raj2011-04-281-1/+1
| | | | | | | | | | | Distributions can then override this variable if needed useful e.g. when building uclibc/eglibc both using same tmpdir (From OE-Core rev: 839e6e7f3717cc69cf8fc5b1c51bac63ec00655e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: ensure an ordered mapping between SSTATETASKS and SSTATETASKNAMESDexuan Cui2011-04-081-2/+4
| | | | | | | | | | | | | | | | 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. (From OE-Core rev: 2f6505f0e795b6c8cad641a6918739c3faac1f99) Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Add support for taking shared lockfilesRichard Purdie2011-03-291-0/+7
| | | | | | (From OE-Core rev: c411a10e06f479ff364c07766f7c77907b7b4a16) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: use only unique set of SSTATETASKMartin Jansa2011-03-241-2/+2
| | | | | | | | | | | | | | | | | | | * 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 (From OE-Core rev: f2fe5e840b8aa0558b5462ef2c7517b2f14ec2ea) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Ensure a clean removes setscene stamps as well as the main task stampsRichard Purdie2011-03-191-0/+2
| | | | | | (From OE-Core rev: d07fe8aef537a8bcb96a802e18d7c980ff4c5ce2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Turn absolute symbolic links into relative ones for sstate ↵Richard Purdie2011-03-181-1/+28
| | | | | | | | packages (From OE-Core rev: 655139c2644d085331f4f6814119fbd904ff244b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: always delete stamp files in sstate_cleanPaul Eggleton2011-03-151-9/+7
| | | | | | | | | | For safety, always delete the stamp files in sstate_clean regardless of whether the manifest file exists or not. (From OE-Core rev: f781c35da9a11eefdb06bda72ca89753df863efa) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: avoid deleting unrelated stamp filesPaul Eggleton2011-03-151-1/+3
| | | | | | | | | | | | 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.) (From OE-Core rev: ea743ea30e2289733d27979e8ec921648342da0e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Ensure the SRCURI fetcher cache is not used for sstateRichard Purdie2011-03-081-1/+1
| | | | | | (From OE-Core rev: 115b3b95e87320b4a6a678df45fece06469dfaeb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: add SSTATEPOSTINSTFUNCSScott Garman2011-02-231-0/+5
| | | | | | | | | | | | | | 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>
* sstate: Fix bugs after new fetcherZhai Edwin2011-02-111-3/+3
| | | | | | | | | | | | | 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>
* meta/classes: Update classes to use new fetcher APIRichard Purdie2011-02-071-28/+28
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* license.bbclass: Add coverage by sstate code (also use cleandirs and dirs ↵Richard Purdie2011-02-031-0/+1
| | | | | | task attribures for directory handling) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* staging.bbclass: Only clean out the sysroot if we rerun configure, not at ↵Richard Purdie2011-01-281-1/+0
| | | | | | setscene time Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate: Ensure stale stamp files are removed as part of sstate_clean()Richard Purdie2011-01-281-2/+6
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Fix stupid typoRichard Purdie2011-01-271-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: No need to dump the contents of the sstate package to stdoutRichard Purdie2011-01-271-2/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Handle whitespace in the list of files to 'fixup' to resolve ↵Richard Purdie2011-01-271-0/+2
| | | | | | log warning Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Optimise to check if the manifest exists without taking locksRichard Purdie2011-01-271-3/+3
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: Correctly handle empty sstate packagesRichard Purdie2011-01-261-1/+6
| | | | 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>
* base/sstate.bbclass: Rename fetcher "go" method to "download" when using ↵Yu Ke2011-01-251-1/+4
| | | | | | fetch v2 Signed-off-by: Yu Ke <ke.yu@intel.com>
* bitbake: machine specific sysroots implementationDongxiao Xu2011-01-251-9/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* sstate.bbclass: allow each step of toolchain bootstrap processes to do ↵Dexuan Cui2011-01-251-24/+0
| | | | | | | | | 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>
* sstate.bbclass: Ensure clean/setscene sstate functions run under appropriate ↵Richard Purdie2011-01-191-1/+9
| | | | | | locking Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCHKoen Kooi2011-01-041-1/+1
| | | | | | | | | | | | | | | 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>
* sstate.bbclass: delete sstate files when doing cleanallPaul Eggleton2010-12-201-4/+8
| | | | | | | | | | 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>
* sstate.bbclass: Remove the temp sstate-build-* directories in WORKDIRDongxiao Xu2010-11-141-0/+3
| | | | | | | | 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>
* bitbake/fetch: Allow checking of a single url at a time (massive sstate ↵Richard Purdie2010-11-131-1/+1
| | | | | | speed improvement) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate.bbclass: Only create symlinks to different localpath urls if the ↵Richard Purdie2010-11-131-2/+3
| | | | | | fetch succeeded Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Provide a temporary mechanism to stop collisions between toolchain ↵Richard Purdie2010-11-021-1/+27
| | | | | | components in builds from scratch using sstate Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Fix mirror handling for file:// urlsRichard Purdie2010-10-221-4/+11
| | | | | | | | | | 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>
* sstate: Fix broken plaindirs supportRichard Purdie2010-10-221-2/+6
| | | | | | | | | | | 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>
* base/sstate: Add cleanall task to remove downloads and sstate cached filesRichard Purdie2010-10-221-5/+16
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Fix SSTAGE_MIRRORS handling and improve example in local.conf.sampleRichard Purdie2010-10-071-9/+43
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake/sstate: Implement a lookup function to speed up setscene processingRichard Purdie2010-10-051-0/+26
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Deal with a potential race when cleaning packagesRichard Purdie2010-10-011-7/+12
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: list directories in child first order in the manifest fileJoshua Lock2010-09-291-2/+4
| | | | | | | | | | 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>
* sstate.bbclass: Add signature hash to sstate package namesRichard Purdie2010-09-291-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate.bbclass: Update to use SSTATE variables everywhere and remove the now ↵Richard Purdie2010-09-291-12/+8
| | | | | | unneeded complicated paths from the sstate files Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate.bbclass: pstage -> sstate name changes (no global implications)Richard Purdie2010-09-291-29/+29
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate.bbclass: Rename PSTAGE2 -> SSTATERichard Purdie2010-09-291-35/+35
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Trigger generation of siggen info when building sstate packagesRichard Purdie2010-09-131-0/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sstate: Add sstate-interceptfuncs called between install and packageJeff Polk2010-09-101-0/+4
| | | | | | | 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>
* sstate: Make sure the sstate function is the last to run, not the firstRichard Purdie2010-09-071-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>