summaryrefslogtreecommitdiff
path: root/meta/classes
AgeCommit message (Collapse)AuthorFiles
2011-08-12package_rpm: Fix attemptonly and suggest packagesMark Hatle1
[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>
2011-08-12package_rpm.bbclass: Update the platform config and --targetMark Hatle1
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>
2011-08-12cross: also empty PACKAGES_DYNAMICChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-12package: allow setting a section for locale packagesChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-12package: include SECTION in the pkgdataChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-12sanity: shift the required utils into a variableChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-12nativesdk: inherit relocatableChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-12insane: add linux-gnu to the platform dataChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-11Magic file path should be given for rpmbuildjani.uusi-rantala@nokia.com1
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>
2011-08-11sstate: Add level 2 debug so its possible to see what sstate is doingRichard Purdie1
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>
2011-08-10Rework how the devshell functionsChris Larson2
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>
2011-08-10core-image: adjust to use the new IMAGE_FEATURES supportChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-10image: add support for generally useful {dev,doc,dbg}-pkgs featuresChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-08-10image: implement IMAGE_FEATURESChris Larson1
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>
2011-08-09base.bbclass: Add MULTI_PROVIDER_WHITELIST manipulation for multilibRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-09base.bbclass: Ensure PREFERRED_PROVIDER and PREFERRED_VERSION values are set ↵Richard Purdie1
for multilibs Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-08insane.bbclass: add entries for linux-gnux32Nitin A Kamble1
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>
2011-08-08siteinfo.bbclass: add entries for new x86_64 ABI x32 targetNitin A Kamble1
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-08-08kernel-yocto: add CCACHE_DIR dependency to do_kernel_configmeSaul Wold1
[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>
2011-08-08linux-yocto: allow configuration of arbitrary branchesBruce Ashfield1
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>
2011-08-08linux-yocto: pass KMACHINE to updateme, not MACHINEBruce Ashfield1
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>
2011-08-08gtk-icon-cache bbclass: don't assing to global RDEPENDSKoen Kooi1
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>
2011-08-05qt4x11.bbclass: Using BPN instead of PN.Lianhao Lu1
[YOCTO #1335] Using BPN instead of BP to decide the DEPENDS content for multilib cases. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2011-08-05gtk-icon-cache: add hicolor-icon-theme to DEPENDSKoen Kooi1
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>
2011-08-05kernel,module-base.bbclass: Improve KERNEL_LD & KERNEL_AR variablesNitin A Kamble2
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>
2011-08-05image-mklibs.bbclass: Utilize ${base_libdir} instead of static /libKumar Gala1
We might redefine ${base_libdir} from being set to just /lib. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2011-08-05image-mklibs.bbclass: Add powerpc64 arch supportKumar Gala1
powerp64 dynamic loader is 'ld64.so.1'. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2011-08-05buildstats.bbclass: Adding disk io measurementBeth Flanagan1
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>
2011-08-05toolchain-scripts & other classes: add TARGET_LD_ARCH & TARGET_AS_ARCH varsNitin A Kamble7
This is comming from x32 need to pass special parameters to ld & as. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-08-04kernel.bbcalss: Added do_savedefconfig task.Noor, Ahsan1
* Added do_savedefconfig task to kernel.bbclass. Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com>
2011-08-04kernel,cml1.bbclass: Move menuconfig to cml1Noor, Ahsan2
* The menuconfig target exists in places other than the kernel that use kernel style config. Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com>
2011-08-04environment files: Added and unified version related variables.Lianhao Lu1
[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>
2011-08-04gtk-icon-cache bbclass: only add runtime dependencies on hicolor-icon-theme ↵Koen Kooi1
when installing icons Tested with gnome-icon-theme and libsoup recipes on angstrom. Signed-off-by: Koen Kooi <koen@openembedded.org>
2011-08-03eglibc-locale: Specially handle FILES_eglibc-gconv for multilibDongxiao Xu1
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>
2011-08-03package_rpm: Ensure alternatives links are reflected in rpm package dependenciesRichard Purdie1
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>
2011-08-03autotools.bbclass: Fix m4 file raceRichard Purdie1
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>
2011-08-02package_ipk: SDK generation workaroundMark Hatle1
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>
2011-08-02populate_sdk_*: Sync SDK and regular rootfs functionsMark Hatle3
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>
2011-08-02bitbake.conf: Add SDK_PACKAGE_ARCHSMark Hatle6
Add SDK_PACKAGE_ARCHS to avoid the sed operations we were previously doing inside of the variouns populate_sdk functions and related items. Also add documentation to populate_sdk to explain when the various functions are expected to be doing. Finally fix a bug in populate_sdk_rpm where the wrong value was being set, noticed while working on this change. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-08-02rootfs_rpm: Cleanup and minor bug fixesMark Hatle2
in packages_rpm.bbclass: Cleanup the way package_update_index_rpm works. Break this out into two functions, one for common functionality and one for controlling target vs sdk package processing. Similar change to package_generate_rpm_conf. Usage of IMAGE_ROOTFS should actually be "target_rootfs", this fixes a problem with the SDK case. in rootfs_rpm.bbclass: Minor re-order of the values, and avoid multiple uses of IMAGE_ROOTFS in order to make the merge with the SDK behavior easier. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-08-01package_rpm.bbclass: fix one typoYu Ke1
fix the MLPREFIX referrence typo which cause multilib rpm do_rootfs failure CC: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-01package_{deb, rpm, ipk}.bbclass: fix 'lingusa' typoKoen Kooi3
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-01rootfs_rpm.bbclass: Fix multilib configurations to use DEFAULTTUNEMark Hatle1
Earlier iterations of the multilib patch used "TUNENAME", which was later renamed to DEFAULTTUNE. This file was missed in the rename. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-08-01sanity.bbclass: Add sanity check that TUNE_PKGARCH appears in PACKAGE_ARCHSKumar Gala1
Its possible we get duplications if we explicity add TUNE_PKGARCH to PACKAGE_ARCHS so instead just add a sanity check to verify it. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2011-08-01meta-environment: set correct *MULTIMACH_TARGET_SYS.Lianhao Lu1
Fixed [BUGID #1299]. OLD_MULTIMACH_TARGET_SYS is no longer available. Use new recipe-scope variable REAL_MULTIMACH_TARGET_SYS instead. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2011-07-27rootfs_rpm: Disable debug messagesRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27package_rpm.bbclass: Fix mistake reported by Mark HatleRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27base bbclass: add TUNE_FEATURES to the default bannerKoen Kooi1
This makes debugging the new tune code easier since it doesn't involve staring at 'bitbake -e' output anymore. Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27package(rootfs)_ipk.bbclass: support multilib in opkg backend.Lianhao Lu2
Support install multiple multilib in opkg backend. The installation is done in 3 phases. Phase 1: install normal packages to IMAGE_ROOTFS. Phase 2: install multilib packages under MULTILIB_TEMP_ROOTFS. Packages belongs to the same multilib arch would be installed to a unique directory. Phase 3: check file confliction between IMAGE_ROOTFS and MULTILIB_TEMP_ROOTFS, install multilib packages to IMAGE_ROOTFS only if the sanity check passed. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
2011-07-27image.bbclass: Added variables for multilib support.Lianhao Lu1
1. Added MULTILIB_PACKAGE_INSTALL for multilib instances of packages to be installed in the rootfs. 2. MULTILIBRE_ALLOW_REP contains the regular expression to match the files allow to be replaced by the conflicting files. 3. MULTILIBRE_FORCE_SAME contains the regular expression to match the files allow to be replaced only if the conflicting files are identical. 4. Added shell function multilib_sanity_check() to check whether the overwring for multilib situation is allowed. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>