summaryrefslogtreecommitdiff
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* Version the build configuration directoryJoshua Lock2010-04-301-0/+7
| | | | | | | | | | The addition of BBLAYERS changes the build/conf directory to be incompatible with the "old way" in the Purple release. As such things are likely to occur in future we should bersion the build/conf directory through local.conf Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Fix sanity check for new abiJoshua Lock2010-04-291-1/+1
| | | | | | | | | current_abi is the abi of the tmp directory, not the current abi specified in the abi file... Now the sanity check should work sanely. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Bump the ABI to alert people that cross has goneJoshua Lock2010-04-281-0/+2
| | | | | | | Since we've change the tmpdir layout quite a bit we're going to bump ABI and force a rebuild. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Fix references to CROSS_DIR now that it has been removedJoshua Lock2010-04-283-5/+5
| | | | | | | CROSS_DIR is no longer removed so fix up classes, packages and documentation which refer to it. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* cross.bbclass: inherit relocatable to post-process cross binariesJoshua Lock2010-04-271-2/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Install cross-packages into the native sysrootJoshua Lock2010-04-275-15/+8
| | | | | | | | | | | 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>
* autotools: deprecate autotools_stage classJoshua Lock2010-04-272-4/+4
| | | | | | | | | Move the functionality into autotools and ensure all our Poky recipes are no longer using it. Keep the autools_stage class around for OE compatability but just have it inherit autools. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: Normalise the generated pathJoshua Lock2010-04-271-0/+1
| | | | | | | | | | The generated path we create for the binaries RPATH can have a lot of directory separators in. Use os.path.normpath() to tidy it up and only include the required directory separators. This patch is purely to appease my personal sense of niceness... Signed-off-by: Joshua Lock <josh@linux.intel.com>
* sanity.bbclass: handle lack of permission to read /proc/sys/vm/mmap_min_addrJoshua Lock2010-04-271-5/+9
| | | | | | | | | | Patch from OE.dev by Martin Jansa to workaround that we on modern Linux we can no longer read this file. We need a better fix but best option will be to update to a newer, relocatable, QEMU release. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Move STAGING_BINDIR_CROSS into target sysroot, instead of nativeJoshua Lock2010-04-271-0/+8
| | | | | | | | | Cross scripts now live in sysroot/$arch-distro-os/crossscripts, this conveys that they are no longer native system dependant and emphasises their purpose. Bump the staging ABI and implement a simple migration from ABI 3 to ABI 4. 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>
* relocatable.bbclass: Actually skip symlinksJoshua Lock2010-04-121-4/+2
| | | | | | | The previous patch to do so was badly merged and didn't actually skip all symlinks, only ones which where not an absolute path... Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: ignore symlinksJoshua Lock2010-04-081-1/+2
| | | | | | | | If this links to a file created by the package install we already handle it when we process the sysroot. By ignoring symlinks here we don't cause a build to fail when the symlink is to somewhere in the host OS. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: Handle files which don't have read/write permissionsJoshua Lock2010-04-081-2/+17
| | | | | | | | It's possible to have files in our sysroot which don't have the write (or in some cases even the read) bit set. Test for these and if they are not set temporarily set them so that we can chrpath the binaries. 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>
* relocatable: Handle directories having subdirectories of binariesJoshua Lock2010-04-011-15/+24
| | | | | | | | | | | | Make the processing of directories less naive so that it can handle a directory with children that are directories. We now scan for and process binaries in all directories below the scanned paths rather than only the top-level directory. This patch moves the meat of the post-processing into a separate function which is fed paths, process_dir (). Then when the function finds a subdirectory of the passed path which is itself a directory it recursively calls itself. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* classes/conf: Update to handle gcc-runtimeRichard Purdie2010-03-293-3/+3
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* autotools.bbclass: Allow extraction of the configure arguments for use in ↵Richard Purdie2010-03-291-17/+19
| | | | | | strange testcases Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* relocatable.bbclass: we need to process library files tooJoshua Lock2010-03-261-1/+1
| | | | | | | The .so files we ship also have a RPATH encoded so should be post-processed for a relocatable RPATH too. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* rootfs_rpm: Explicitly add runtime dependencies to dependsJoshua Lock2010-03-261-1/+1
| | | | | | | Python RDEPENDS are tricksy beasts and the runtime dependencies of Yum aren't being pulled in for the RPM rootfs so explicitly add them to depends. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* bootimg.bbclass: Fix dependency nameRichard Purdie2010-03-251-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bootimg/boot-directdisk.bbclass: Update afer syslinux changes, fix mbr.bin ↵Richard Purdie2010-03-252-8/+8
| | | | | | location and fix dependencies Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* boot-directdisk.bbclass: Add direct disk image creation classRichard Purdie2010-03-251-0/+92
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* bootimg.bbclass: Improve documentationRichard Purdie2010-03-251-4/+18
| | | | Signed-off-by: Richard Purdie <rpurdie@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>
* utility-tasks.bbclass: Remove unneeded base_ prefix since we don't EXPORT ↵Richard Purdie2010-03-221-6/+6
| | | | | | these functions any longer Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* sanity.bbclass: Add a note about using dpkg-reconfigureRichard Purdie2010-03-221-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* base.bbclass: Split up as per the patch in OE.dev by Chris Larson making ↵Richard Purdie2010-03-196-722/+725
| | | | | | code more readable and modularised Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* base.bbclass: Really drop siteinfo by defaultRichard Purdie2010-03-191-4/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* base.bbclass: Don't inherit siteinfo in base.bbclass [based on an OE patch ↵Richard Purdie2010-03-192-8/+6
| | | | from Chris Larson]
* 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>
* relocatable.bbclass: Clean up indentationRichard Purdie2010-02-221-43/+46
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* relocatable.bbclass: Handle symlinks correctlyRichard Purdie2010-02-221-1/+6
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* cross.bbclass: Note that relocatable binaries disabled for a reasonJoshua Lock2010-02-181-0/+3
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: Enhancements to rpath replacement algorithmJoshua Lock2010-02-181-15/+38
| | | | | | | | | | | | | | 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>
* sanity.bbclass: Add chrpath to the required utilitiesJoshua Lock2010-02-151-1/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* relocatable.bbclass: Tidy up classJoshua Lock2010-02-121-4/+3
| | | | | | | 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>
* relocatable.bbclass: Improve logic and styleJoshua Lock2010-02-121-15/+31
| | | | | | | | | | | | 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>
* relocatable.bbclass: remove hard-coded rpaths from native binariesJoshua Lock2010-02-112-0/+27
| | | | | | | | | | | 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>
* poky.bbclass: Use pokylinux.org stashes as PREMIRRORS for vcs'Joshua Lock2010-02-041-0/+11
| | | | | | | | 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>
* 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>
* insane.bbclass: Since we have no legacy packaging, no need to repeatedly ↵Richard Purdie2010-01-261-1/+1
| | | | | | scan staging Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* gcc-cross-canadian: Fix include paths and hence c++ compiler issuesRichard Purdie2010-01-201-0/+8
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* cross.bbclass: Set BASEPKG_HOST_SYS to a sane valueRichard Purdie2010-01-141-0/+1
| | | | Signed-off-by: Richard Purdie <richard@rex.(none)>