summaryrefslogtreecommitdiffstats
path: root/meta/classes/packaged-staging.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* packaged-staging.bbclass: fix typo in scan_cmdJoshua Lock2010-06-111-1/+1
| | | | | | | it's PSTAGE_TMPDIR_STAGE, not PSTAGE_TMDPDIR_STAGE spotted by Chris Larson <chris_larson@mentor.com> Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging.bbclass: Use a differnet opkg.conf for each TARGET_ARCHJoshua Lock2010-06-101-3/+3
| | | | | | | | | Assembling an appropriate opkg.conf in the pstage_helper is difficult when building for multiple target architectures in one Poky directory, work around this by generating an appropriate opkg.conf for the TARGET_ARCH and using an ${TARGET_ARCH}-opkg.conf for packaged staging. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging: Add the correct architectures to the opkg confJoshua Lock2010-06-041-1/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Install cross-packages into the native sysrootJoshua Lock2010-04-271-5/+0
| | | | | | | | | | | Cross is no longer required so can go away, we now install cross packages into the native sysroot and use them from there. This patch includes updates to classes and some recipes which reference CROSS_DIR. Others still need fixing an image can be built and run with this patch applied. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging.bbclass: Fix architecture fieldJoshua Lock2010-04-271-1/+6
| | | | | | | | | The packages architecture field is incorrect, this patch changes it to: native - build machine architecture cross - build and target machine architectures target - target machine architecture Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging.bbclass: Remove hardcoded paths in binfiles for target packagesJoshua Lock2010-04-081-1/+1
| | | | | | | Amend the default PSTAGE_SCAN_CMD, as used when scanning target packages, to include binconfig scripts in the results and remove their hardcoded paths. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging.bbclass: Revert accidental damageRichard Purdie2010-03-231-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbclass: Fix mkdir to actually create the destination directoryRichard Purdie2010-03-231-2/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging: tweak previous fix to accomodate possible changes to CROSS_DIRJoshua Lock2010-03-051-3/+1
| | | | | | | This change, suggested by Chris Larson, ensures that the fix works even if the definition of CROSS_DIR changes. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging: Fix packagaging of cross packagesJoshua Lock2010-03-041-1/+3
| | | | | | | | | | | | packagedstaging_fastpath() was only copying the contents of CROSS_DIR to PSTAGE_TMPDIR resulting in the folders contents being packaged and then installed incorrectly at the top level of CROSS_DIR rather than in HOST_ARCH specific sub directories. This patch fixes that issue by copying the directory and its contents rather than just the directory contents. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging: Fix typo, grep not qrep ...Joshua Lock2010-03-031-2/+2
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging: post-process non-binary files to fix paths in native packagesJoshua Lock2010-02-261-6/+19
| | | | | | | Extend the existing libtool hack so that native packages (native, cross, sdk) have all non-binary files scanned and the STAGING_DIR fixed up. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging: basic support for pulling staging packages from a mirrorJoshua Lock2010-01-291-1/+26
| | | | | | | | | | | | | | Add simple support for trying to fetch staging packages from a http, https or ftp mirror if they do not already exist in PSTAGE_DIR. As documented in local.conf.sample "Poky can try and fetch packaged-staging packages from a http, https or ftp mirror. Set this variable to the root of a pstage directory on a server." If the PSTAGE_MIRROR variable is not set, or the package cannot be found on the mirror it will be built as usual. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging: Move packaged staging directory outside of DEPLOY_DIRJoshua Lock2010-01-291-12/+12
| | | | | | | | | | Rename DEPLOY_DIR_PSTAGE to PSTAGE_DIR and move it outside of deploy. Do soft assignment of a default variable inside bitbake.conf as ${OEROOT}/tmp/pstage. Use a separate directory, PSTAGE_WORKDIR, to store transient packaged staging files such as the stamp files and opkg.conf Signed-off-by: Joshua Lock <josh@linux.intel.com>
* packaged-staging: fix up handling of crosssdk packagesJoshua Lock2010-01-291-1/+1
| | | | | | | | | The packaged-staging class already special cases native packages for ensuring the package is only reused if the path doesn't change. This patch ensures the special casing is also done for crosssdk packages. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Disable packaged-staging for cross-linkage/staging-linkage and ↵Richard Purdie2009-11-191-0/+3
| | | | | | external-poky-toolchain Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbclass: Fix staging reference -> sysrootsRichard Purdie2009-11-161-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging: Fix libdir references to use libdir_nativeRichard Purdie2009-11-161-8/+7
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Richard Purdie2009-11-131-14/+14
| | | | | | | | | | | | | 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>
* classes: Remove and sanitise import statementsRichard Purdie2009-11-131-12/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* classes: Various staging improvement fixupsRichard Purdie2009-11-131-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* base.bbclass: Rework staging function to use a DESTDIR style configuration ↵Richard Purdie2009-11-131-42/+11
| | | | | | based on the data from the do_install step. This falls back to any standard do_stage function if defined, see the mailing list for more info. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbclass: Use a variable for the location of the staging ↵Richard Purdie2009-11-131-5/+4
| | | | | | lock file Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging: Whitelist the empty base_do_stage function as it does ↵Richard Purdie2009-10-281-1/+4
| | | | | | nothing and locks need not be held Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbclass Use libdir_native for opkg paths in directory creationRichard Purdie2009-09-171-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Remove layout_* variablesRichard Purdie2009-09-171-8/+8
| | | | | | | | | | | | Remove layout_* variables and replace them with variables specific to the different classes. The layout variables were only useful for the native/cross classes and caused more confusion than they solved. They didn't scale to the sdk class. It now clear a small set of native/cross variables fulfil the needs. This patch also changes native.bbclass to use "/" as the STAGING_DIR which makes sense since we're installing binaries into the locations we're compiling them for. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbclass: Fix for packages which don't stage anythingRichard Purdie2009-06-121-2/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbckass: Add option of setting PSTAGE_BROKEN_DESTDIR to ↵Richard Purdie2009-06-111-2/+5
| | | | | | disable packaged staging acceleration for packages with broken DESTDIR handling Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbclass: Turn off debugRichard Purdie2009-06-111-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbclass: Detect when we're using autotools_stage_all and ↵Richard Purdie2009-06-111-3/+37
| | | | | | don't hold the lock for as long when that is the case giving a significant performance boost with less lock contention and staging area file timestamp checking required Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbclass: Fix accidental debug additionRichard Purdie2009-06-081-8/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* packaged-staging.bbclass: Add support for mangling .la files so the staging ↵Richard Purdie2009-06-041-5/+29
| | | | | | directory path can change. Someday libtool will support sysroot but until then... Signed-off-by: Richard Purdie <richard@ted.(none)>
* packaged-staging.bbclass: Ignore errors resulting from parallel threads clashingRichard Purdie2008-11-041-2/+1
|
* packaged-staging.bbclass: Make sure target directory exists, fixing build ↵Richard Purdie2008-11-031-0/+1
| | | | failures
* packaged-staging.bbclass: Avoid removing the staging.lock lock file.Robert Bradford2008-10-201-0/+3
| | | | | | | | The pstage_manualclean function can be called on a directory containing an actively held lock on staging. Removing the lock file whilst the lock is held results in a failure when the lock is released. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5553 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Add rpm package coverageRichard Purdie2008-10-021-0/+14
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5382 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Add OELAYOUT_ABI to the package paths so staging ↵Richard Purdie2008-07-241-1/+1
| | | | | | packages become abi specific git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4939 311d38ba-8fff-0310-9ca6-ca027cbcb966
* cross.bbclass: Preserve BASE_PACKAGE_ARCH variable when chaging HOST_ARCHRichard Purdie2008-07-191-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4894 311d38ba-8fff-0310-9ca6-ca027cbcb966
* bitbake.conf: Set MULTIMACH_ARCH to a default valueRichard Purdie2008-07-171-3/+0
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4861 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: force symlinking as ipkg->opkg link can be presentMarcin Juszkiewicz2008-07-021-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4758 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging: allow to set DEPLOY_DIR_PSTAGE in local.confMarcin Juszkiewicz2008-07-011-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4754 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Fix indentationRichard Purdie2008-06-131-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4647 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: create the opkg directories as required (from Richard)Ross Burton2008-06-131-0/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4646 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Tweak package install commandRichard Purdie2008-06-061-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4598 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: The staging_packager function should not be ↵Richard Purdie2008-05-211-1/+0
| | | | | | installing the package, that is the job of the staging_package_installer() function which is called with the correct locks held git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4531 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Make the class compatible with opkg, ipkg and ↵Richard Purdie2008-05-181-37/+43
| | | | | | ipkg-sh and allow auto switching between whichever is available. Fix task dependencies in BB_STAMP_POLICY == whitelist case. Remove now unneeded basic dependencies. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4492 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Execute staging_helper earlier to make sure the ↵Richard Purdie2008-05-181-5/+15
| | | | | | configuration file exists when needed. When installing the package after building make sure the control and list files are created. Use stage-manager-ipkg-build instead of needing ipkg-utils-native git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4488 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Improve postamble exit code handlingRichard Purdie2008-05-161-0/+8
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4484 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Add code to handle checking the stamp dependency ↵Richard Purdie2008-05-141-12/+56
| | | | | | tree properly git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4472 311d38ba-8fff-0310-9ca6-ca027cbcb966
* packaged-staging.bbclass: Set BB_STAMP_WHITELIST with packaged-staging ↵Richard Purdie2008-05-041-11/+11
| | | | | | tasks, update package location code to deal with packaged which don't exist, preserve stamp timestamps when copying them git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4410 311d38ba-8fff-0310-9ca6-ca027cbcb966