summaryrefslogtreecommitdiff
path: root/meta/classes
AgeCommit message (Collapse)AuthorFiles
2010-03-05packaged-staging: tweak previous fix to accomodate possible changes to CROSS_DIRJoshua Lock1
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>
2010-03-04packaged-staging: Fix packagaging of cross packagesJoshua Lock1
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>
2010-03-03packaged-staging: Fix typo, grep not qrep ...Joshua Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-26packaged-staging: post-process non-binary files to fix paths in native packagesJoshua Lock1
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>
2010-02-22relocatable.bbclass: Clean up indentationRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-02-22relocatable.bbclass: Handle symlinks correctlyRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-02-18cross.bbclass: Note that relocatable binaries disabled for a reasonJoshua Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-18relocatable.bbclass: Enhancements to rpath replacement algorithmJoshua Lock1
This patch removes the hard coded number of parent directory operators ( /..) placed into the rpath and instead fully dynamically generates the rpath entries based on the current rpath. Theoretically this patch means we can now make cross packages relocatable but this is *not* enabled as chrpath can only set a new rpath of the same length or shorter than the existing rpath. Due to the amount of parent directory jumps we need to encode in the rpath this can easily fail when TMPDIR is in a short namespace (e.g. /usr/poky). Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-15sanity.bbclass: Add chrpath to the required utilitiesJoshua Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-12relocatable.bbclass: Tidy up classJoshua Lock1
There was a hard coded path and a spurious variable left in before the last commit. Whoops ... Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-12relocatable.bbclass: Improve logic and styleJoshua Lock1
The initial pass at this class was pretty lame and broke on a lot of native packages. This rewrite makes the code a lot more dynamic, removing use of hard coded paths and improving the logic. The class now runs a chrpath -l over the binary to determine what rpaths are currently set. It then munges the output and determines relative versions of each component of the rpath and uses chrpath -r to set them. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-11relocatable.bbclass: remove hard-coded rpaths from native binariesJoshua Lock2
The relocatable path will pre-process built binaries in SYSROOT_DESTDIR and replace any harcoded dynamic link rpaths with relative paths. Add an inherit of class in native.bbclass to make our native packages relocatable and tweak the chrpath recipe so that the native package can make itself relocatable with the just built chrpath binary. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-02-04poky.bbclass: Use pokylinux.org stashes as PREMIRRORS for vcs'Joshua Lock1
Check the tarball stash on pokylinux.org before hitting the upstream version control systems. This is friendlier to the upstream repositories than us hammering their bandwidth. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-29packaged-staging: basic support for pulling staging packages from a mirrorJoshua Lock1
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>
2010-01-29packaged-staging: Move packaged staging directory outside of DEPLOY_DIRJoshua Lock1
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>
2010-01-29packaged-staging: fix up handling of crosssdk packagesJoshua Lock1
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>
2010-01-26insane.bbclass: Since we have no legacy packaging, no need to repeatedly ↵Richard Purdie1
scan staging Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-20gcc-cross-canadian: Fix include paths and hence c++ compiler issuesRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14cross.bbclass: Set BASEPKG_HOST_SYS to a sane valueRichard Purdie1
Signed-off-by: Richard Purdie <richard@rex.(none)>
2010-01-14package_ipk.bbclass: Tweak handling for all/any/noarch and nativesdkRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14package_ipk.bbclass: Add handling for all/any/noarch and nativesdkRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14insane.bbclass: Fix typoRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-14cross-canadian: Fix gettext issuesRichard Purdie2
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-06insane.bbclass: Fix multiline stringJoshua Lock1
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 Lock1
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-05gettext.bbclass: Set the gettext dependencies correctly for target, cross ↵Richard Purdie3
and native packages Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-04insane.bbclass: special case gettext as it can't depend on itselfJoshua Lock1
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 Lock1
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-18base.bbclass: Fix missing argumentRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-18base.bbclass: Fix indentation errorRichard Purdie1
2009-12-18kernel.bbclass: Use B, not S in KERNEL_VERSIONRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-18devshell.bbclass: Merge tweaks from OE.devRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-18base.bbclass: Partially sync branch/scm handling functions with OE.devRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-17insane.bbclass: Handle native packages in the gettext testJoshua Lock1
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 Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-14kernel.bbclass: Sync with OE.devRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-14insane.bbclass: Skip arch check for Cross CanadianJoshua Lock1
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-05distutils: Sync with OE.devRichard Purdie4
Signed-off-by: Richard Purdie <richard@rex.(none)>
2009-12-02nativesdk.bbclass: Disable debugRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-02nativesdk.bbclass: Fix DEPENDS handlingRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-12-02cross-canadian: Set PKGHIST_DIR to a correct valueRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-30autotools.bbclass: Make sure config.rpath is present if neededRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-30base.bbclass: Stage etc directory for native packagesRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-20package.bbclass: Clear package directory copy before installing new files to ↵Richard Purdie1
prevent stale data Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-20glibc-package.bbclass: Fix the case PN == glibcRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-20glibc-package.bbclass: Add GLIBC_INTERNAL_USE_BINARY_LOCALE precompiled modeRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-19glibc: Separate out core glibc packaging functionality into a classRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-19Disable packaged-staging for cross-linkage/staging-linkage and ↵Richard Purdie1
external-poky-toolchain Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-19kernel.bbclass: Merge do_stage into do_installRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-19package.bbclass: Fix runtime_maping_rename so version information isn't removedRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>