aboutsummaryrefslogtreecommitdiffstats
path: root/classes
AgeCommit message (Collapse)Author
2011-03-08gettext.bbclass: Drop target gettext from DEPENDS.Tom Rini
This should be handled via virtual/libintl already. Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-26gnome.bbclass: Add --disable-scrollkeeper to EXTRA_OECONFTom Rini
Virtually all gnome recipes pass this already, this just fixes a few such as zenity. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-26sdk.bbclass: Need to mask TOOLCHAIN_OPTIONS here as wellTom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-25package.bbclass: Update locking now that pstaging is always on.Tom Rini
In a few functions we checked if pstagingactive was set and if so, grabbed the lock. But really, we should always be locking here. And inside of package_do_shlibs we need to keep the lock a little longer than we had been otherwise we can run into a race.. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-25insane.bbclas: Add locking in package_qa_check_stagedTom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-25src_distribute.bbclass: distribute only SRC_DISTRIBUTE_LICENSESOtavio Salvador
A distro can require conf/licenses.conf or set SRC_DISTRIBUTE_LICENSES selecting which licenses are wanted to be distributed. In case it is empty or undefined we default to distribute all licenses to not break backward compatibility. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-25Revert "autotools: symlink where we can"Chris Larson
This is nice in theory, but there's a risk that a broken source tree could try to modify the files through the symlinks, screwing up everybody else using them. Of course, per-recipe sysroots would resolve this, so we can revisit this if/when that gets implemented. This reverts commit 302395545185b4e85bf76a8f319bc71bd3a7be1d. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-24bitbake.conf, native*.bbclass: pass --sysroot to TOOLCHAIN_OPTIONSDenys Dmytriyenko
Commit 9c5b9db29738a89837917b1a2d8ee5a1cae0b4cc (bitbake.conf: Simplify TARGET_CPPFLAGS/LDFLAGS) potentially breaks external toolchains, when their default sysroot is different from our sysroot/staging location. Pass default --sysroot to compiler/linker through TOOLCHAIN_OPTIONS, avoiding native and nativesdk packages. This matches the corresponding changes in Poky. cross.bbclass was already doing it, since it originated from Poky, AFAIK. Signed-off-by: Denys Dmytriyenko <denys@ti.com> Acked-by: Tom Rini <tom_rini@mentor.com>
2011-02-23kernel.bbclass: provide virtual/kernel-${PV}Andreas Oberritter
* Allow precompiled modules to depend on a specific kernel version. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-23package_deb.bbclass: create a proper package_update_index_deb task.Filip Zyzniewski
Until now the Packages.gz generation was hardcoded in rootfs_deb_do_rootfs. (Tom Rini: While in here, trailing whitespace cleanup) Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-23cmake.bbclass: use QT_CONF_PATH to support Qt4 projectsOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-23cmake.bbclass: use 2.8 modulesOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-23qmake_base.bbclass: add generate_qt_config_file taskOtavio Salvador
This writes a qt.conf inside WORKDIR to properly configure projects based on CMake. This is required since qmake variables (returned by -query command) are fixed into the binary and can only be changed using a qt.conf file. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-23package_deb.bbclass: make version acceptable for dpkg-deb.Filip Zyzniewski
dpkg-deb does not like version numbers without digits: NOTE: Running task 428 of 604 (ID: 14, [...]/openembedded/recipes/linux-firmware/linux-firmware_git.bb, do_package_write_deb) dpkg-deb - error: (upstream) version (`git') doesn't contain any digits dpkg-deb: 1 errors in control file NOTE: package linux-firmware-git-r1+gitr2fab48391fda8a914b55c8ac265eb3b6ee10ace8: task do_package_write_deb: Started This commit causes version numbers without digits to be appended with '0': linux-firmware-agere_git0-r1+gitr2fab48391fda8a914b55c8ac265eb3b6ee10ace8_all.deb Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-23cross.bbclass: Fix many QA RPATH errors for distros preferring libtool-2.2Andreas Müller
* This patch removes the absolute path in sysroots/<arch>/usr/lib/libstdc++.la * * It was build tested wih clean tmp for xfce46-image. Additional known * QA-RPATH-error-candidates were checked for successful build: * * aspell-0.60.6-r0 * curl-7.21.2-r4.0 * clutter-box2d-0.10.0-r2.0+git4e72b9c135a9439b82d801c62422531db611f98b * enchant-1.6.0-r2 * gnome-vfs-2.24.1-r3 * libcdio-0.82-r3.0 * libsoup-2.2.100-r1: * neon-0.25.5-r4 * schroedinger-1.0.9-r0 * tiff-3.9.4+4.0.0beta6-r0 * * Build environment was (RPATH QA errors treated as fatal / acl fixed manually) * * BB_VERSION = "1.10.2" * METADATA_BRANCH = "cross-bbclass-test" * METADATA_REVISION = "a44300e" * TARGET_ARCH = "arm" * TARGET_OS = "linux-gnueabi" * MACHINE = "overo" * DISTRO = "angstrom" * DISTRO_VERSION = "2010.7-test-20110219" * TARGET_FPU = "hard" * * Notes: * - To have effect, gcc-cross has to be rebuild (changing all gcc packed * was not an option) * - This patch does not affect libtool-2.4 distos * - The story is found at * http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-February/030115.html Signed-off-by: Andreas Mueller <schnitzeltony@gmx.de> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-21insane.bbclass: Fix a thinko in powerpc64 supportTom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-21kernel-arch.bbclass: Add powerpc64 mappingsTom Rini
A future TODO is to see if there's anything left that must build with ARCH=ppc in the kernel that can't be upgraded to a newer kernel with ARCH=powerpc. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-21insane.bbclass: Add powerpc64 entries.Tom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-21debian.bbclass: call auto_libname in reverse sorted AUTO_LIBNAME_PKGSMartin Jansa
* see comment for reason why we need this * more info: http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-February/029877.html Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-02-20package_deb.bbclass/apt: armel architecture name for eabi systems.Filip Zyzniewski
For dpkg EABI system architecture is called armel, not arm. Reference: http://wiki.debian.org/ArmEabiPort Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-20insane.bbclass: Make RPATH a non-fatal errorTom Rini
In order to make the user experience better we now use bb.warn on non-fatal QA errors and bb.error on fatal errors. Also note that the RPATH problem is a security issue. (not part of the acks, but suggested on the ML). Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Denys Dmytriyenko <denys@ti.com> Acked-by: Eric Benard <eric@eukrea.com>
2011-02-20insane.bbclass: Clarify missing gettext messageTom Rini
Make it clear that what's missing is an 'inherit gettext' in a recipe. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-19sdk.bbclass: cache ${libdir} as ${target_libdir}Otavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2011-02-18kernel.bbclass: fix retrieving dependencies between modules.Filip Zyzniewski
get_dependencies() searched for a filename key in dependencies directory with the /lib/modules/kernel_version prefix while the directory had entries stripped of it. Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-16autotools: symlink where we canChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2011-02-16autotools: split out a oe_autoreconf functionChris Larson
This functionality logically belongs in its own function, and it makes it easier to explicitly run against subdirs in certain cases. Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2011-02-16autotools: cleanupChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2011-02-16native: fix duplicating virtclass-native entries in OVERRIDESChris Larson
A function was called from ${@} in OVERRIDES which was supposed to return the bits to prepend when in virtclass context, yet it *set* overrides instead, returning None. This resulted in 1) adding an extra virtclass-native to OVERRIDES each time it was expanded, and 2) appending None, causing 'localNone' to be in overrides rather than the expected 'local'. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-15rootfs_ipk: don't emit error code when ONLINE_PACKAGE_MANAGEMENT is really noneMartin Jansa
* currently do_rootfs fails when it's "none", because that test returns exit code '1': | log_check: Using /OE/tmpdir-shr/work/spitz-oe-linux-gnueabi/initramfs-kexecboot-klibc-image-1.0-r0/temp/log.do_rootfs.21324 as logfile | Logfile is clean | + rm -rf /OE/tmpdir-shr/rootfs/initramfs-kexecboot-klibc-image-tmp | + '[' none '!=' none ']' NOTE: package initramfs-kexecboot-klibc-image-1.0-r0: task do_rootfs: Failed ERROR: Function 'do_rootfs' failed (see /OE/tmpdir-shr/work/spitz-oe-linux-gnueabi/initramfs-kexecboot-klibc-image-1.0-r0/temp/log.do_rootfs.21324 for further information) ERROR: Task 1356 (/OE/dev/recipes/images/initramfs-kexecboot-klibc-image.bb, do_rootfs) failed with exit code '1' ERROR: '/OE/dev/recipes/images/initramfs-kexecboot-klibc-image.bb' failed Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-02-14package_deb.bbclass: remove double DISTRO_PR from the package version.Filip Zyzniewski
PKGR already contains DISTRO_PR, so no need to add it twice. Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-14package_deb.bbclass: depend on apt, not dpkg.Filip Zyzniewski
Both package_deb.bbclass and rootfs_deb.bbclass use apt-get. Without apt system cannot be bootstrapped because there is no optimal way to fetch new packages. Apt depends on dpkg, so switching from dpkg to apt in EXTRA_DEPENDS provides both. Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-14Revert 6a7f8c in favor of a real fixChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-14package_deb.bbclass: Use PKGV/PKGR variables where applicable.Filip Zyzniewski
Using PV/PR causes problems like libncursesw5_5.7-r16 depending on libtinfo5 (>= 5.7+20110115). Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-14packaged-staging: Don't pass a trailing ' ' to bb.mkdirhierTom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-14image.bbclass: move insert_feed_uris() to rootfs_ipk.bbclassFilip Zyzniewski
This function generates feed configuration for opkg and as such should be used only for images using ipk, not rpm or deb. Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-14utils: drop exported var env caching for oe_popenChris Larson
This was dangerous, as an oe_run executed from the configuration metadata would result in caching the config metadata information, rather than the final metadata information. We could also cache it by the datasmart instance, but I don't think its worth the trouble at this time, particularly given the next bitbake release exports all exported vars into the process environment automatically, avoiding the need for any of this. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-14packaged-staging: add debug info for oe_run failuresChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-02-14deb packages support: switch from /var/dpkg to /var/lib/dpkgFilip Zyzniewski
OE generally tries to use /var/dpkg, but the change is missing in some places, so it is needed to move completely to one of the options. Keeping the dpkg's default /var/lib/dpkg causes less maintenance overhead for OE. Signed-off-by: Filip Zyzniewski <filip.zyzniewski@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-14packaged-staging.bbclass: partial revert of commit ↵Marco Cavallini
fe706bb9af34ce43e8ec55fbf929a85d3b6d612a due to build error * # ERROR: Error in compiling python function in: * # ERROR: The lines leading to this error were: * # ERROR: 22:SyntaxError:' except Exception as ex:'
2011-02-13python-dir.bbclass: Add checks for 2.7 and 3.1 as wellKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-02-12image.bbclass: only insert feed uris if ONLINE_PACKAGE_MANAGEMENTBernhard Reutner-Fischer
Previously if ONLINE_PACKAGE_MANAGEMENT="none" but one had FEED_DEPLOYDIR_BASE_URI set, it tried to create files in a non-existing dir in the image (there is no /etc/opkg/ if no online package management is requested). Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-12kernel.bbclass: simplify "if image" conditionBernhard Reutner-Fischer
Anything that expands image to any false value should not set INITRAMFS_TASK (instead of just "" or None). Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-12packaged-staging.bbclass: improve documentationBernhard Reutner-Fischer
Mention usage of PSTAGE_MIRROR and add debugging-output for fetching. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-12tinderclient: Remove it (obsoleted by oestats-client)Yuri Bushmelev
Tinderclient is unusable now and obsoleted by oestats-client. So we should remove it from tree. NOTE for Angstrom and Kaelios maintainers: this patch change your configs. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-12gitpkgv.bbclass: rename git_drop_tag_prefix to fix conflictAndreas Oberritter
* fixes ERROR: Error Method already seen: git_drop_tag_prefix in 'gitver.bbclass' now in 'gitpkgv.bbclass' Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-12package_ipk.bbclass: use common function to write relationship fieldsAndreas Oberritter
* A function write_dep_field() was added to do_package_ipk() to ensure explode_deps is called for every field and to simplify the code. * The following statement was removed from do_package_ipk(): if not '-locale-' and not '-dbg' and not '-dev' in pkgname: rdepends.append('%s-locale*' % pkgname) It was added in November 2008, but can never evaluate to true. See commit a045dfacf6f2541e0f410d9d109581f181303756 Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-12package.bbclass: remove superfluous whitespace characters from RDEPENDSAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-12utils.bbclass: restore previous implementation of explode_deps()Andreas Oberritter
* explode_deps() changed its behavior to omit version information when the function was removed from OE in favor of BitBake's implementation in March 2010. Since then, packages didn't contain versioned runtime dependencies. See commit 89b7e433719f43f1c36c76cb8856d559014e99bc * This patch restores the previous implementation of explode_deps(), thus fixing the generation of versioned runtime dependencies. * Reimplementing explode_deps() using bb.utils.explode_dep_versions() didn't work, because it choked upon parsing inline python code, e.g. on update-modules_1.0.bb's RDEPENDS_${PN} field. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-02-12insane.bbclass: fix the check for bad RPATHDenys Dmytriyenko
* Variable 'sane' is boolean, so adding to it breaks the error condition * Fixes previous commit 6aa31074 ported from Yocto Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-02-12oestats-client.bbclass: fix bug in oestat_send() codeYuri Bushmelev
This should fix disabling oestats with following message: WARNING: oestats: error sending task (exception <type 'exceptions.KeyError'>, value 'qalog'), disabling stats Signed-off-by: Yuri Bushmelev <jay4mail@gmail.com>