summaryrefslogtreecommitdiff
path: root/meta/classes
Commit message (Collapse)AuthorAgeFilesLines
* sanity.bbclass: add optional untested host distro warningPaul Eggleton2011-08-181-0/+48
| | | | | | | | | | | | | | | | | | | | | SANITY_TESTED_DISTROS, if specified, is expected to be a newline-delimited list of distro identifier strings, e.g. SANITY_TESTED_DISTROS = " \ Ubuntu 11.04 \ Fedora release 14 (Laughlin) \ " (spaces, tabs etc. are trimmed) If SANITY_TESTED_DISTROS is defined, we will attempt to detect the host distribution. If the distribution is not in SANITY_TESTED_DISTROS or we could not detect the distribution then we show a warning during sanity checking. Provides the mechanism for fixing [YOCTO #1096]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* image.bbclass, kernel.bbclass: create warning file about deleting deploydir ↵Paul Eggleton2011-08-182-0/+4
| | | | | | | | | | | | | | | files New users sometimes delete files in tmp/deploy/images assuming they will be re-created just by re-running the build, and then are confused when this doesn't work. To discourage people from doing this, create a file called README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt in tmp/deploy/images containing an explanation of what needs to be done to re-create files there. Fixes [YOCTO #1315] and [YOCTO #1346]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* kernel: restore crtsavres.o to enable building external modules on powerpcDarren Hart2011-08-171-0/+7
| | | | | | | | | | | | | | | | | | Fixes [YOCTO #1276] As of Linux kernel version 3.0.1, and much earlier, the make clean target removes arch/powerpc/lib/crtsavres.o. As this object is present in KBUILD_LDFLAGS_MODULE, it is required to build external modules, and should therefor not be removed by make clean. While I do not advocate fixing buggy kernels in the generic kernel classes, we should probably account for this one in kernel.bbclass as it affects such a long list of kernel versions. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com> CC: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* buildstats.bbclass: Fixing task endtimeBeth Flanagan2011-08-171-3/+3
| | | | | | | Task endtime got left out of recent changes. Adding it back in. Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qmake_base: add uclibceabiAnders Darander2011-08-171-1/+1
| | | | | | | | Partial sync of qmake_base from meta-oe. * Add a matching rule for *linux-uclibceabi-oe-g++, to make qmake_base.bbclase more similar to the version in meta-oe. Signed-off-by: Anders Darander <anders@chargestorm.se>
* package(_ipk).bbclass: opkg using ALL_MULTILIB_PACKAGE_ARCHSLianhao Lu2011-08-163-38/+29
| | | | | | | | | | | [YOCTO #1345] The new variable ALL_MULTILIB_PACKAGE_ARCHS contains all the values of PACKAGE_ARCHS for each multilib variants. The opkg backend now uses this new value insteald of the PACKAGE_ARCHS to update the opkg indexes and to generate the opkg configuration files. This allows the normal packages and multilib packages may be installed into the same rootfs. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* gtk-icon-cache: Adding MLPREFIX when dynamically set RDEPENDSDongxiao Xu2011-08-161-1/+1
| | | | | | | | | When dynamically setting RDEPENDS, we need to add MLPREFIX to adapt multilib case. [YOCTO #1368] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
* package_rpm: Fix package rename issue in multilib caseDongxiao Xu2011-08-161-7/+7
| | | | | | | | | | | | | | | | | | | | | | do_package task will write information into pkgdata and do_package_write_rpm will read them out. Take lib32-dates as an example, one of its RDEPENDS is li32-gtk+, and PKG_lib32-gtk+ = "libgtk-2.0", these info is stored at: tmp/pkgdata/x86_64-pokymllib32-linux/runtime/lib32-dates. Function "mapping_rename_hook" in do_package_write_rpm is to handle those renamed packages. However before it executes, translate_vers has stripped the multilib prefix out, making it failed to find PKG_gtk+ value in pkgdata. This commit moves the strip_multilib out of translate_vers and call it after "mapping_rename_hook". [YOCTO #1368] CC: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* package_rpm: enhance strip_multilib functionDongxiao Xu2011-08-161-4/+4
| | | | | | | | | | | | | The previous logic could only strip MLPREFIX from the first element in an array, take an example, strip_multilib the [lib32-a lib32-b lib32-c] will result in [a lib32-b lib32-c]. We need to strip prefix one by one. This commit change the logic to strip all elements' multilib prefix. [YOCTO #1368] CC: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
* rootfs_rpm: Fix DEFAULTTUNE setting in multilib caseDongxiao Xu2011-08-161-4/+0
| | | | | | | | | | | | "virtclass-multilib" is set to OVERRIDES in multilib.bbclass, remove the duplicated settings here. Besides, DEFAULTTUNE has overrided and it can be directly used. [YOCTO #1368] CC: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
* cmake.bbclass, perlnative.bbclass: arrange for cmake to find perl-nativePhil Blundell2011-08-162-1/+3
| | | | | | | | | When CMake is looking for perl, it only searches in the specific directories that it's told about and ignores ${PATH}. If perlnative is in use, ensure that the appropriate installation path is added to the list of places that cmake will look for perl, otherwise it won't ever be found. Signed-off-by: Phil Blundell <philb@gnu.org>
* utils.bbclass/multilib.class: Added misc supporting functions.Lianhao Lu2011-08-152-1/+35
| | | | | | | | | | | | | 1. Added variable MULTILIB_VARIANTS to store all the instance variants for multilib extend. 2. Added function all_multilib_tune_values to collect the variable values for all multilib instance. 3. multilib bbclass handler will save the orignal value of all variables defined in MULTILIB_SAVE_VARNAME. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* package_rpm: Fix attemptonly and suggest packagesMark Hatle2011-08-121-5/+20
| | | | | | | | | | | | | | | | | | | | | [YOCTO #1325] [YOCTO #1366] Packages that were in the PACKAGE_ATTEMPTONLY and SUGGESTS were not being properly found, which was causing image creation failures. In PACKAGE_ATTEMPTONLY, when an item was not found, it caused an error. This should have been a note, followed by skipping the package. The SUGGESTS processing was simply broken. It was using a non-existant function, due to an apparently typo. In addition to the above, the MLPREFIX processing was not being done properly, preventing multilib packages from working in this with PACKAGE_ATTEMPTONLY. (SUGGESTS doesn't need this as the names are munged when creating the packages.) Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* package_rpm.bbclass: Update the platform config and --targetMark Hatle2011-08-121-3/+11
| | | | | | | | | | | | | | When constructing the /etc/rpm/platform file, we need to ensure that the any, all, and noarch platforms will allow any "linux" variant to be installable, not just matching variants.. i.e. arm-oe-linux-gnueabi should be able to install noarch-oe-linux Also ensure that we pass the full canonical arch via the --target= parameter. This allows us to define the proper platform settings for all packages. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* cross: also empty PACKAGES_DYNAMICChris Larson2011-08-121-0/+2
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* package: allow setting a section for locale packagesChris Larson2011-08-121-0/+5
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* package: include SECTION in the pkgdataChris Larson2011-08-121-0/+1
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* sanity: shift the required utils into a variableChris Larson2011-08-121-1/+3
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* nativesdk: inherit relocatableChris Larson2011-08-121-0/+2
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* insane: add linux-gnu to the platform dataChris Larson2011-08-121-0/+3
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Magic file path should be given for rpmbuildjani.uusi-rantala@nokia.com2011-08-111-0/+2
| | | | | | | | | | | | | | From d54b975506c392cfb59dbb3caf313ac061b6fa01 Mon Sep 17 00:00:00 2001 From: Jani Uusi-Rantala <jani.uusi-rantala@nokia.com> Date: Thu, 11 Aug 2011 18:37:56 +0300 Subject: [PATCH] Magic file path should be given for rpmbuild in _rpmfc_magic_path define so that build system default file is not used by accident. Not doing this caused many packages to fail building in several systems. Fixes [YOCTO #1358] Signed-off-by: Jani Uusi-Rantala <jani.uusi-rantala@nokia.com>
* sstate: Add level 2 debug so its possible to see what sstate is doingRichard Purdie2011-08-111-2/+8
| | | | | | | | | | Currently its hard to figure out if/when sstate is checking for possible packages to speed up builds. This patch adds level 2 debug output which better indicates what files are being searched for an why. [YOCTO #1259] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rework how the devshell functionsChris Larson2011-08-102-18/+46
| | | | | | | | | | | | | | | | | | | | | | | | In the new implementation, each known terminal is defined as a class in oe.terminal, as a subclass of bb.process.Popen. terminal.bbclass wraps this functionality, providing the metadata pieces. It obeys the OE_TERMINAL variable, which is a 'choice' typed variable. This variable may be 'auto', 'none', or any of the names of the defined terminals. When using 'auto', or requesting an unsupported terminal, we attempt to spawn them in priority order until we get one that's available on this system (and in the case of the X terminals, has DISPLAY defined). The 'none' value is used when we're doing things like automated builds, and want to ensure that no terminal is *ever* spawned, under any circumstances. Current available terminals: gnome konsole xterm rxvt screen Signed-off-by: Chris Larson <chris_larson@mentor.com>
* core-image: adjust to use the new IMAGE_FEATURES supportChris Larson2011-08-101-60/+17
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* image: add support for generally useful {dev,doc,dbg}-pkgs featuresChris Larson2011-08-101-2/+32
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* image: implement IMAGE_FEATURESChris Larson2011-08-101-3/+14
| | | | | | | | | | | | | | IMAGE_FEATURES is analagous to DISTRO_FEATURES and MACHINE_FEATURES, for root filesystem construction. Currently, the only supported features are any defined package groups, as used by the oe.packagegroup python module. Example usage: PACKAGE_GROUP_myfeature = "vim iptables" IMAGE_FEATURES += "myfeature" Signed-off-by: Chris Larson <chris_larson@mentor.com>
* base.bbclass: Add MULTI_PROVIDER_WHITELIST manipulation for multilibRichard Purdie2011-08-091-0/+14
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* base.bbclass: Ensure PREFERRED_PROVIDER and PREFERRED_VERSION values are set ↵Richard Purdie2011-08-091-0/+45
| | | | | | for multilibs Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* insane.bbclass: add entries for linux-gnux32Nitin A Kamble2011-08-081-0/+3
| | | | | | | For x86_64 new ABI : x32, there is a new name for the TARGET_OS: linux-gnux32 Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* siteinfo.bbclass: add entries for new x86_64 ABI x32 targetNitin A Kamble2011-08-081-1/+11
| | | | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* kernel-yocto: add CCACHE_DIR dependency to do_kernel_configmeSaul Wold2011-08-081-0/+1
| | | | | | | | | | [YOCTO #1350] Since do_kernel_configme is added before the standard do_configure task we needed to add CCACHE_DIR so when the kernel builds it's host configure tools the CCACHE_DIR exists. Signed-off-by: Saul Wold <sgw@linux.intel.com>
* linux-yocto: allow configuration of arbitrary branchesBruce Ashfield2011-08-081-12/+4
| | | | | | | | | | | | | | | | When building an external tree or bootstrapping a BSP the external branch may not have been checked out. The tools now ensure that the tree is ready for configuration, so we no longer need to force the checkout of the external branch. This change is coupled with some kern tools tweaks as follows: 40d9bab updateme: allow the location of board descriptions based on defines 59859ca createme: use branch name when creating meta data 91b4275 configme: determine meta branch based on directories, not branch naming f5a915c kgit-meta: make branch creation and renaming more robust Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* linux-yocto: pass KMACHINE to updateme, not MACHINEBruce Ashfield2011-08-081-1/+1
| | | | | | | | | To support the mapping of any oe/yocto MACHINE to a kernel branch that may not share that naming structure we have KMACHINE and KBRANCH. To allow the mapping to work, we actually have to pass KMACHINE into updateme and not MACHINE. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* gtk-icon-cache bbclass: don't assing to global RDEPENDSKoen Kooi2011-08-081-3/+3
| | | | | | | Only the package with the icons needs it [Squashed laster RDEPENDS fix from koen into commit] Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
* qt4x11.bbclass: Using BPN instead of PN.Lianhao Lu2011-08-051-1/+1
| | | | | | | [YOCTO #1335] Using BPN instead of BP to decide the DEPENDS content for multilib cases. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* gtk-icon-cache: add hicolor-icon-theme to DEPENDSKoen Kooi2011-08-051-0/+2
| | | | | | | This fixes do_rootfs breaking because OE didn't resolve the RDEPENDS added with python Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel,module-base.bbclass: Improve KERNEL_LD & KERNEL_AR variablesNitin A Kamble2011-08-052-3/+3
| | | | | | | | | | | KERNEL_LD was using ${LD} in it's definition, which is not correct for different ABIs such as x32 or i386 on x86_64 machine. This brings it into sync with the corresponding gcc settings, likewise the same with the KERNEL_AR variable. [RP: Updated commit message] Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* image-mklibs.bbclass: Utilize ${base_libdir} instead of static /libKumar Gala2011-08-051-4/+4
| | | | | | We might redefine ${base_libdir} from being set to just /lib. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* image-mklibs.bbclass: Add powerpc64 arch supportKumar Gala2011-08-051-0/+3
| | | | | | powerp64 dynamic loader is 'ld64.so.1'. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
* buildstats.bbclass: Adding disk io measurementBeth Flanagan2011-08-051-78/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds disk-io statistics functionality on a build and per-task basis. It pulls measurements for whatever partition TMPDIR exists on. This data could be off if SSTATE_DIR and DL_DIR exist on a different partition/volume. Notes on what this pulls: ReadsComp: Total number of reads complete ReadsMerged: Total number of adjacent reads merged SectRead: Total number of sectors read TimeReads: Total number of m/s spent reading WritesComp: Total number of writes completed SectWrite: Total number of sectors written TimeWrite: Total number of m/s spent writing IOinProgress: Total amount of IO in progress at the time of we look at /proc/diskstats. TimeIO: Total number of m/s spent doing IO WTimeIO: Weighted time doing I/O. From iostats.txt: "This field is incremented at each I/O start, I/O completion, I/O merge, or read of these stats by the number of I/Os in progress (field 9) times the number of milliseconds spent doing I/O since the last update of this field. This can provide an easy measure of both I/O completion time and the backlog that may be accumulating." Signed-off-by: Beth Flanagan <elizabeth.flanagan@intel.com>
* toolchain-scripts & other classes: add TARGET_LD_ARCH & TARGET_AS_ARCH varsNitin A Kamble2011-08-057-7/+24
| | | | | | This is comming from x32 need to pass special parameters to ld & as. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* kernel.bbcalss: Added do_savedefconfig task.Noor, Ahsan2011-08-041-0/+6
| | | | | | * Added do_savedefconfig task to kernel.bbclass. Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com>
* kernel,cml1.bbclass: Move menuconfig to cml1Noor, Ahsan2011-08-042-15/+12
| | | | | | * The menuconfig target exists in places other than the kernel that use kernel style config. Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com>
* environment files: Added and unified version related variables.Lianhao Lu2011-08-041-0/+3
| | | | | | | | | | [YOCTO #1306] Fixing. Added and unified version related variables in all environment files generated by package meta-toolchain, meta-ide-support, meta-environment-xxx. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* gtk-icon-cache bbclass: only add runtime dependencies on hicolor-icon-theme ↵Koen Kooi2011-08-041-2/+6
| | | | | | | | when installing icons Tested with gnome-icon-theme and libsoup recipes on angstrom. Signed-off-by: Koen Kooi <koen@openembedded.org>
* eglibc-locale: Specially handle FILES_eglibc-gconv for multilibDongxiao Xu2011-08-031-1/+1
| | | | | | | | | | | | | | | | | In multilib support, it iterate values in PACKAGES and then extend name for variables like "FILES_xxx", "SUMMARY_xxx", etc. However eglibc-gconv is dynamically put in PACKAGES by package_do_split_gconv function. Therefore the name will not be extended automatically. Specially handle the FILES variable for eglibc-gconv to fix the issue of missing "lib32-eglibc-gconv" issue in doing multilib do_rootfs. Also when set PACKAGES, add the MLPREFIX. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_rpm: Ensure alternatives links are reflected in rpm package dependenciesRichard Purdie2011-08-031-0/+4
| | | | | | | | | | | | | Currently, if a file is provided as an alternative link within the package, rpm doesn't see the dependency. This works out badly for dependencies such as /bin/sh which scripts might require. Since rpm detects and adds these dependencies we do need to ensure the dependency information in the packages is correct. This patch does so for the rpm backend ensuring internal consistency whilst the approach for addressing this problem in the other package backends is considered. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* autotools.bbclass: Fix m4 file raceRichard Purdie2011-08-031-1/+6
| | | | | | | | | | If something removes .m4 files from the aclocal directory whilst aclocal is running it gets upset. To avoid this we need to take a copy of the aclocal directory and build against this instead. [YOCTO #861] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* package_ipk: SDK generation workaroundMark Hatle2011-08-021-2/+4
| | | | | | | | | | During SDK generation the multilib_sanity_check function is being called, however it is not available unless we've been called from the image.bbclass. Disable the check if MULTILIB_CHECK_FILE (also set in image.bbclass) doesn't exist or is empty. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* populate_sdk_*: Sync SDK and regular rootfs functionsMark Hatle2011-08-023-25/+82
| | | | | | | In order for things to be easier to maintain in the future, sync up the sdk and rootfs versions. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>