aboutsummaryrefslogtreecommitdiffstats
path: root/classes
AgeCommit message (Collapse)Author
2010-05-05cross.bbclass: In sysroot_stage_all, only process src dirs if they exist.rpurdie/work-in-progressTom Rini
Fixes module-init-tools-cross on DISTRO=minimal MACHINE=mpc8315e-rdb Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-05-05cross/staging.bbclass: Make sure .la files get mangled and add extra ↵Richard Purdie
mangling for problematic cross paths Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-05autotools.bbclass: merge recent changes from PokyJoshua Lock
Includes an important change to the prepackage_lamangler method which changes which directories we fix la files in to operate with the new directory layout. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-05relocatable.bbclass: Handle files which don't have read/write permissionsJoshua Lock
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. Also remove following of symlinks because if it links to a file created by the package install we already handle it when we process the sysroot. Further, 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>
2010-05-05packaged-staging.bbclass: Remove hardcoded paths in binconfig files for ↵Joshua Lock
target packages 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>
2010-05-05gettext enhancements: Make it easier to use the right gettextJoshua Lock
This patch adds a check to insane to ensure that gettext exists in the dependancy list when it is used in the configure.[ac|in] Further we enhance the gettext class to enable easy addition of the required gettext dependancies by inheriting the gettext class. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-05relocatable: Class to post-process packages for relocatabilityJoshua Lock
This class helps make packages relocatable by post-processing the binaries and using chrpath to set the RPATH relative to $ORIGIN. Patch also enables this post-processing for native packages and adds chrpath to the required utilties. Based on ideas from a patch from Tom Rini <tom_rini@mentor.com> Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-05packaged-staging: enhancements from Poky for fetching and relocatabilityJoshua Lock
Firstly adds tooling from Poky to scan packages and fix up paths in libtool files, we then build on this to further post-process native packages (native, cross, sdk) and fix up any references to the STAGING_DIR in non-binary files. Secondly adds support for fetching packaged staging packages from a mirror by setting PSTAGE_MIRROR to point to the root of a pstaging directory. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-05bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Joshua Lock
populate_staging task to populate_sysroot This change, pulled from Poky, 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. This patch also includes fixes for all recipes which reference the directory. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-05packaged-staging: Fix mkdir to actually create destinationJoshua Lock
Patch from Poky fixes fallout from recent packaged-staging fix for cross packages. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-05gconf.bbclass: Sync with PokyRichard Purdie
* Only add the postinstall script header if an existing postinstall isn't set * Remove the unneeded python import * Fix the indentation in the postinstall function Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-05cross.bbclass: Add special sysroot_stage_all function for cross packages and ↵Richard Purdie
change default staging functions to non-legacy mode Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-05cross.bbclass: Move target_ variable definitions from gcc recipes to main ↵Richard Purdie
class. Cross recipes need these in general (from Poky) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-05base.bbclass: Stage etc directory for native packages and add a ↵Richard Purdie
use_do_install_for_stage special staging hint (from poky) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-05base.bbclass: Remove pointless data expand call (from Poky)Richard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-03autotools.bbclass: swapped calls of intltoolize + autoreconfEnrico Scholz
Because 'intltoolize' checks whether aclocal.m4 contains a recent copy of 'intltool.m4' and it will fail when the found version is too old, 'aclocal' must be called before 'intltoolize'. I built projects it with intltool-0.40.6-r3, autoconf-2.65-r9, automake-1.11.1-r3 and gettext-0.17-r6 successfully with this change but it will require probably tests with older versions. This patch is a requirement for http://patchwork.openembedded.org/patch/1858/ because 'autopoint' from the 'aclocal' call will override 'intltool' files and build will fail then. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Acked-by: Roman I Khimov <khimov@altell.ru>
2010-05-02kernel.class : fix for recent kernel on x86Eric BENARD
- bitbake linux for a x86 machine fails with the following message : cp: target `.../image/kernel//include/asm-x86/' is not a directory so create $kerneldir/include/asm-x86 before trying to copy something in this directory. - make headers_install fails because of missing directories in include (tested with linux 2.6.32 and 2.6.33 on x86) and missing Kbuild Signed-off-by: Eric Benard <eric@eukrea.com> Acked-by: Roman I Khimov <khimov@altell.ru>
2010-05-01vala.bbclass: Add vala-native to virtclass-native DEPENDS.Tom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-04-30package_ipk: fix a missing paren which caused failures attempting to ↵Chris Larson
tokenize the function Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-30image.bbclass: install_linguas don't install empty listMartin Jansa
* in some combination of IMAGE_LINGUAS installed packages and available translations it's normal to get empty intersection in pending-locale-packages * don't call opkg install in this case, because it will fail
2010-04-28image.bbclass: create /etc/device_table from IMAGE_DEVICE_TABLESAntonio Ospite
Right now when the 'devices' script from initscripts is called the layout specified in IMAGE_DEVICES_TABLES is lost. With this change the default behaviour when no IMAGE_DEVICE_TABLES is specified is to always use files/device_table-minimal.txt Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-04-28vala / freesmartphone: vala now also looks in the target directory for vapi ↵Michael 'Mickey' Lauer
files We can finally inherit autotools now and remove legacy staging
2010-04-26Revert "vala.bbclass and assorted recipes: create own task for installing ↵Martin Jansa
.vapi and .deps instead of using do_stage()" * This reverts commit a38e7ff2810e55455c7ff7b01d4882344b420e18. * It was discussed on oe-devel ML and ACKed by Mickey * Side effect of this was also: Everything rebuilt after it cannot be found when used later (NOTE: Couldn't find shared library provider for libfso-glib.so.0) and it's dropped from package RDEPENDS.
2010-04-25vala.bbclass and assorted recipes: create own task for installing .vapi and ↵Michael 'Mickey' Lauer
.deps instead of using do_stage() This allows to move most FSO packages to new staging
2010-04-25Revert "do_unpack: shift some responsibility around, clean things up"Chris Larson
Revert "base.bbclass: unbork oe_unpack_file" I give up. Will revisit later, after more testing, and after removing the unnecessary glob usages in SRC_UR in the metadata. This reverts commit 5c8bfd6873939024d57278343035cfab0257bdb3. This reverts commit 757ec3d76d258c15828de2d85dd8ce9abb4c1323.
2010-04-25change INHIBIT_PACKAGE_STRIP to PACKAGE_STRIP with more optionsRoman Khimov
Originally approached with "package.bbclass: introduce KEEP_GNU_DEBUGLINK": http://patchwork.openembedded.org/patch/886/ Redone with a change from INHIBIT_PACKAGE_STRIP to PACKAGE_STRIP which allows more options. By default it does exactly the same thing as is done today, strips the binary, but keeps the gnu.debuglink section. When set to "no", stripping is not done at all, when set to "full" the gnu.debuglink section is not re-added to the binary. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Chris Larson <chris_larson@mentor.com>
2010-04-24base.bbclass: unbork oe_unpack_fileChris Larson
I accidentally messed up the merge, sorry about that. Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-04-23Initial move of common python bits into modules of the 'oe' python packageChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-23base.bbclass: add <dir>/lib for each dir in BBPATH to the python search pathChris Larson
Also makes the os, time, and bb package availability explicit. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-23do_unpack: shift some responsibility around, clean things upChris Larson
- Move the unpacking message printing into do_unpack - Move the destination directory determination into do_unpack - Use subprocess's ability to pass in PATH and cwd rather than mangling the cmd - Use shutil.copy2/copytree for ordinary file "unpack" - Use the existing urldata from bb.fetch.init rather than re-decodeurl'ing the urls - Only display the unpack destdir to the user when debugging is enabled, as we all know they unpack into WORKDIR Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-23xfce4-panel: Add 4.6.3 and support new style checksums in xfce46.bbclass.David-John Willis
2010-04-22Use the python modules for checksum generation where we canChris Larson
Based on df32920678d15c86897b50b752b937210a01edea. Signed-off-by: Chris Larson <chris_larson@mentor.com> Tested-by: Khem Raj <raj.khem@gmail.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-04-21utils.bbclass: make check_app_exists slightly more pythonicChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-21Add emit_data.bbclass, which emits the metadata and displays diffs from previousChris Larson
This can be useful for making invasive changes, to see if you inadvertantly broke something. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-20angstrom mirrors: fix regression introduced by ↵Koen Kooi
http://cgit.openembedded.org/cgit.cgi/bitbake/commit/?h=1.10&id=11375c3f74511ce59ad5a625bfda4121a8714345
2010-04-19Add initial signature.bbclass, which generates a hash of the recipe dataChris Larson
If the datastore has a 'hash' method, it will use that, otherwise it uses its own implementation. Datastore hashing will be added to bitbake master at some point, to prepare for the move away from stamps. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-19module bbclass: sync depmod code with kernel.bbclass a bitKoen Kooi
2010-04-17kernel.bbclass: fix ASMDIR regressionsKoen Kooi
2010-04-16kernel bbclass: convert to new style staging (from poky)koen.kooi@gmail.com
Acked-by: Graeme Gregory <dp@xora.org.uk> Acked-by: Philip Balister <philip@balister.org> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-04-15kernel bbclass: read version from ${B}, remove obsolete hostap logic that ↵Koen Kooi
breaks the build (from poky)
2010-04-15kernel bbclass: don't depend on c library (from poky)Koen Kooi
2010-04-15gnome: split out gnomebase.bbclass that doesn't have gconf and gmime dependsKoen Kooi
2010-04-14packaged-staging.bbclass: use 'os.unlink()' instead of spawning 'rm'Enrico Scholz
Doing a '-c clean' operation on a staged package with very much files (e.g. glibc) took several minutes because * every removed file was reported * an 'rm' instance was spawned for every file This patch uses the native 'os.unlink()' method for removing files and reports only the removed root directory instead of the single files. Based upon maillist discussion, reporting happens with 'debug' level instead of 'note' one, and only error conditions due to non-existing files will be ignored. Other (e.g. permission denied) errors will now abort the build while they were silently ignored previously. Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Acked-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Acked-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-04-14kernel.bbclass: s!D!PKGD! (trivial)Enrico Scholz
Acked-by: Sebastian Spaeth <Sebastian@SSpaeth.de> Acked-by: Roman I Khimov <khimov@altell.ru>
2010-04-13update-rc.d.bbclass: add dependency on update-rc.d-nativeRoman I Khimov
Recipes are using update-rc.d to do postinst and postinst scripts are being ran on build hosts where native version is needed to run properly. It is needed only at image build stage, but it's easier to have it in DEPENDS, build time for it is almost zero anyway. Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-04-12utils.bbclass: simplify checksum check, prepare for checksums.ini removalMartin Jansa
* show note, when there are checksums only in checksums.ini (prepare for script for moving all to recipes) * parse checksums.ini only when there is no checksum in recipe (could be faster, but for more checked items in SRC_URI it is parsed repeatedly) * if one checksum doesn't match then count and show both (md5 as well as sha256) - usefull for copy&paste checksums for new recipe. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-04-12rootfs_ipk.bbclass: run preinst/postinst scripts with "-e"Roman Khimov
There are scripts that can and should work when being ran on build host (for example, simple update-rc.d), but there are also many which can't and won't ever (for example, anything adding users/groups). The second group sometimes doesn't get "unpacked" flag because scripts throw errors in the middle and return something nice from the last command. It can be considered as a bug in pre/postinst script (as it should either explicitly check for "${D}" or just do "set -e" at start), but it is common enough. There is also another aspect to this as in general we can't be sure that everything is OK wrt preinst/postinst if script commands throw errors. Running preinst/postinst scripts on host with "-e" should solve that. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Chris Larson <clarson@kergoth.com>
2010-04-08Using NotHandled/Handled in event handlers is deprecatedChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-08insane.bbclass: add x86_64 architecture for linux-uclibcVladimir Sorokin
Signed-off-by: Vladimir Sorokin <sorokin@altell.ru> Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-04-07classes/cmake.bbclass: make cmake continue if the build dir already existXerxes Rånby