aboutsummaryrefslogtreecommitdiffstats
path: root/classes
AgeCommit message (Collapse)Author
2011-04-22packaged-staging.bbclass: bug fix in ipk file name generation for searching ↵Ahsan, Noor
ipk file. * First check the availability of PKGV_pkg variable, if it is not available then get value from PKGV variable for creating ipk file name for searching ipk file. Signed-off-by: Ahsan Noor <noor_ahsan@mentor.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-04-22classes: Replace ipkg-make-index with opkg-make-indexKhem Raj
* STAGE_PKGMANAGER use opkg * rename IPKGBUILDCMD to OPKGBUILDCMD * Use opkg-build instead of ipkg-build Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Graham Gower <graham.gower@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-04-22classes/package_ipk.bbclass,classes/sourceipk.bbclass: Use opkg-utils-native ↵Khem Raj
instead of ipkg-utils-native Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Graham Gower <graham.gower@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-04-22package ipk bbclass: store build branch and revision in ipkg metadataKoen Kooi
The ipkg metadata will look like this now: koen@dominion:/OE/angstrom-dev/deploy/glibc$ dpkg-deb -I ipk/am3517-evm/matrix-gui_1.3-r19.0.6_am3517-evm.ipk new debian package, version 2.0. size 24112 bytes: control archive= 540 bytes. 629 bytes, 13 lines control Package: matrix-gui Version: 1.3-r19.0.6 Description: Matrix GUI for Qt X11 Section: multimedia Priority: optional Maintainer: Angstrom Developers <angstrom-distro-devel@linuxtogo.org> License: BSD Architecture: am3517-evm OE: matrix-gui Homepage: https://gforge.ti.com/gf/project/matrix_gui/ Build: org.openembedded.dev/f35ab2d Depends: matrix-gui-common, libpng12-0, libfreetype6, libz1, libgthread-2.0-0, libqtwebkit4, libphonon4, libqtdbus4, libqtxml4, libqtgui4, libqtnetwork4, libqtcore4, libglib-2.0-0, libc6, libstdc++6, libgcc1 Source: svn://gforge.ti.com/svn/matrix_gui/;module=trunk;proto=https;user=anonymous;pswd='' koen@dominion:/OE/angstrom-dev/deploy/glibc$ Signed-off-by: Koen Kooi <koen@openembedded.org> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Chase Maupin <chase.maupin@ti.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-04-22Add flags for variable typingChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-04-22base: resurrect messages for bitbake 1.8Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-04-22base.bbclass: Get rid of "WARNING: Function do_build doesn't exist"Bob Foerster
Signed-off-by: Bob Foerster <robert@erafx.com> Acked-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-04-22unpack.py: add SRC_URI parameter unpack=<bool> (default: true)Andreas Oberritter
* This allows to download compressed files without extracting them * Use case: gcj requires ecj.jar, which must be downloaded separately and put into the gcc source directory before configure gets executed. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> CC: Chris Larson <chris_larson@mentor.com> Reviewed-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-04-22package_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-04-22package.bbclass: call PACKAGESTRIPFUNCS before populate_packagesAndreas Oberritter
Introduce run_strip_funcs() to call the functions in PACKAGESTRIPFUNCS and place it before populate_packages(). This allows users of do_split_packages() to package the .debug directories, which get created by do_runstrip(). do_split_packages() is usually prepended to populate_packages(). Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-04-22package.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-04-22packaged-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-04-22More sane naming for the variable typing codeChris Larson
oe.types.value -> oe.data.typed_value This name has been bugging me. This function is the primary interface to the module for OE metadata, as it takes a variable name and datastore and returns an object of the correct type. While this function is part of the variable typing implementation, in reality it's more about giving you a useful object from the metadata, so I think oe.data is a more appropriate place for it. oe.types -> oe.maketype These are the functions which construct types, not the types themselves, so it was somewhat misleading. oe._types -> oe.types These are the actual types, any callable in this module becomes an OE type, using its arguments to determine the variable flags (optional and required) to obey. Will use __init__'s args in the case of an actual python class. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-04-22Implement variable typingChris Larson
This implementation consists of two components: - oe.types python module, whose job it is to construct objects of the defined type for a given variable in the metadata - typecheck.bbclass, which iterates over all configuration variables with a type defined and uses oe.types to check the validity of the values This gives us a few benefits: - Automatic sanity checking of all configuration variables with a defined type - Avoid duplicating the "how do I make use of the value of this variable" logic between its users. For variables like PATH, this is simply a split(), for boolean variables, the duplication can result in confusing, or even mismatched semantics (is this 0/1, empty/nonempty, what?) - Make it easier to create a configuration UI, as the type information could be used to provide a better interface than a text edit box (e.g checkbox for 'boolean', dropdown for 'choice') This functionality is entirely opt-in right now. To enable the configuration variable type checking, simply INHERIT += "typecheck". Example of a failing type check: BAZ = "foo" BAZ[type] = "boolean" $ bitbake -p FATAL: BAZ: Invalid boolean value 'foo' $ Examples of leveraging oe.types in a python snippet: PACKAGES[type] = "list" python () { import oe.types for pkg in oe.types.value("PACKAGES", d): bb.note("package: %s" % pkg) } LIBTOOL_HAS_SYSROOT = "yes" LIBTOOL_HAS_SYSROOT[type] = "boolean" python () { import oe.types assert(oe.types.value("LIBTOOL_HAS_SYSROOT", d) == True) } Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-04-22base: start leveraging oe.typesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-04-22base: use bb.plain, not print for build_summaryChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-04-22utils: 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-04-22packaged-staging: Don't pass a trailing ' ' to bb.mkdirhierTom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-04-22package.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> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-01-30e-base: prepare for releasesMartin Jansa
* bump EFL_SRCREV a bit to current HEAD * introduce EFL_SRCREV_1.0.0 for recipes which don't need SRCREV change so often like stuff from OLD and BROKEN dirs and themes * move SRC_URI and S settings from bbclass to svn recipes * replace E_CVS and E_URI with E_SVN and E_MIRROR * PV/PR will be updated in following patches for individual recipes Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-01-10e-base: bump EFL_SRCREVMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-12-16efl,e-base: instruct fetcher to keep scmdata with new scmdata=keep paramMartin Jansa
* bitbake master was excluting .svn dir while creating snapshot tarballs * read http://www.mail-archive.com/bitbake-dev@lists.berlios.de/msg00880.html for details Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-12-06e-base: bump EFL_SRCREV for beta3Martin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-12-04e-base: bump SRCREVMartin Jansa
* illume indicator was fixed Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-12-04e-wm,efl: create e-base.bbclass with common settings and EFL_SRCREVMartin Jansa
* include it from e.bbclass, efl.bbclass and now also python-efl.inc * also use BPN instead of "${@bb.data.getVar('PN', d, 1).replace('-native', '')}" Acked-by: Klaus Kurzmann <mok@fluxnetz.de> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-12-02kernel.bbclass: put bluez-dtl1-workaround to DEPENDS directlyMartin Jansa
* DEPENDS_kernel-module-dtl1-cs aren't probably included in run queue * RDEPENDS_kernel-module-dtl1-cs probably also doesn't put it to run queue, because kernel-module-* are created by PACKAGES_DYNAMIC += "kernel-module-*" so not even known before even building kernel, but does work ok in runtime * bluez-dtl1-workaround is small and fast to build so won't hurt to build even when kernel doesn't have this bluez module enabled in defconfig Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-12-01qt4x11: set QT_LIBINFIX and QT_DIR_NAMEEric Bénard
this will fix the following issue with qwt 5.2.1 where obj dir is: work/armv4t-oe-linux-gnueabi/qwt-5.2.1-r0/qwt-5.2.1/src/obj${QT_LIBINFIX}/ instead of : work/armv4t-oe-linux-gnueabi/qwt-5.2.1-r0/qwt-5.2.1/src/obj/ From: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <k-kooi@ti.com> Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-11-26sdk.bbclass: Define target_includedirKhem Raj
This var is used in configuring gcc recipes so we define it here for sdk as well best is to have this defined globally so we can configure target cross and sdk recipes properly Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-11-22handle PACKAGE_ARCH change in an amend.incEric Bénard
* setting PACKAGE_ARCH = "${MACHINE_ARCH}" in an amend.inc actually leads to a package with the correct machine arch but the work/stage/stamp dirs are not correct because MULTIMACH_ARCH is not updated after amend.inc is parsed. * this patch : - factorizes the code which compute MULTIMACH_ARCH in base.bbclass - updates MULTIMACH_ARCH if required by an amend.inc Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Denys Dmytriyenko <denis@denix.org>
2010-11-18pkgconfig.bbclass: don't blindly install every .pc fileAndreas Oberritter
* Instead of installing the file, print a log message. Later, this function could be removed. * .pc files must be installed explicitly to avoid causing build problems. E.g. libsoup-2.4-gnome.pc must not be installed if libsoup-2.4 is built without gnome support, because gstreamer would try to link against libsoup-2.4-gnome. * Fixes for lua5.1 and libid3tag, which install their own .pc files from OE, have been submitted. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-11-18help2man: Add native recipe, drop check for being provided.Tom Rini
With a recent change to auto* to not build the man pages for native recipes, we can make build progress without help2man being there already. This adds help2man to local.conf.sample as an example of something that is assumed to be provided, drops the sanity.bbclass check and adds a help2man-native recipe. In order to catch the cases where help2man is likely to have been an implicit requirement before we add it to the list that autotools brings in. Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Michael Smith <msmith@cbnco.com>
2010-11-16lib_package.bbclass: fix packaging of static libs, inherit binconfigAndreas Oberritter
* Package ${libdir}/*.a and /lib/*.a into ${PN}-static instead of ${PN}-dev * Although it packaged ${bindir}/*-config into FILES_${PN}-dev, it did not include the required mangling applied by binconfig.bbclass. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-11-15checkbashisms: add nicer error when checkbashisms isn't availableChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-15checkbashisms: add initial class to run against ${S}Chris Larson
Currently requires that you already have checkbashisms available somewhere in your PATH. Runs against all '#!/bin/sh' scripts in ${S}, to attempt to find and fix issues with /bin/sh not being bash. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-14xilinx-bsp.bbclass: fix sh equality operatorAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Michael Smith <msmith@cbnco.com>
2010-11-14sourceipk.bbclass: fix sh equality operatorAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Michael Smith <msmith@cbnco.com>
2010-11-14rootfs_ipk.bbclass: fix sh equality operatorAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Michael Smith <msmith@cbnco.com>
2010-11-14packaged-staging.bbclass: fix sh equality operatorAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Michael Smith <msmith@cbnco.com>
2010-11-14native.bbclass: fix sh equality operatorAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Michael Smith <msmith@cbnco.com>
2010-11-14module_strip.bbclass: fix sh equality operatorAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Michael Smith <msmith@cbnco.com>
2010-11-14cpan_build.bbclass: fix sh equality operatorAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Michael Smith <msmith@cbnco.com>
2010-11-12newcollection: clean up, and work for those not using collections.incChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-12newcollection: handle globs in file: urisChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-12newcollection: fix host/path issueChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-12newcollection.bbclass: add, courtesy MontaVista Software, Inc.Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-08image: don't include glibc-localedata-i18n when IMAGE_LINGUAS is emptyChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-08srctree: ensure setscene is still runChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-11-05meta.bbclass: Exclude meta recipes from world buildsKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com>
2010-11-04metadata_scm: use rev-parse rather than show-refChris Larson
show-ref will show all matching refs, so a "show-ref HEAD" will show not just the local HEAD, but the fetched remote ones as well. This isn't what we want for this function, so change it to use rev-parse with --verify, and also change it to use --short, to shorten the hash to a more palatable length. Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Tim Harvey <harvey.tim@gmail.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-11-04srctree: don't merge tasks if using BChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>