aboutsummaryrefslogtreecommitdiffstats
path: root/classes
AgeCommit message (Collapse)Author
2011-02-02sourceipk: fix race condition with compileconfigs/multi-kernelchase maupin
* This patch adds an empty compileconfigs function to the sourceipk class. * This is required because when making a sourceipk of a package using the multi-kernel.inc functionality you will have a race condition between the compileconfigs of the multi-kernel file building the kernel and sourceipk trying to copy and patch the sources. The resulting conditions can then occur: - You will package some interim build files, yielding a sourceipk that is not consistent between builds - You will try to copy interim build files as they are being deleted which will result in an error and break the build. * The empty compileconfigs function is overwritten by the real compileconfigs function when the multi-kernel.inc file is used. Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Signed-off-by: Denys Dmytriyenko <denis@denix.org>
2011-01-31qmake_base.bbclass: Add cases for linux-gnuspe/linux-uclibcspeTom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-01-31kernel.bbclass: Add kernel-* to PACKAGES_DYNAMICAndreas Oberritter
* Use it as a hint for BitBake to know that packages inheriting kernel.bbclass do provide kernel-x.y.z-localversion. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: Paul Menzel <paulepanter@users.sourceforge.net> for `omap3-sgx-modules` with `angstrom-2008.1`
2011-01-29e-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-29base.bbclass: Update build_summary for bitbake 1.8.xTom Rini
bitbake 1.8.x has a broken bb.plain. This means that our build simply blows up before we can tell the user to upgrade to BB_MIN_VERSION. Reported by Christian Poessinger. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-01-29module.bbclass: depend on kernel-${KERNEL_VERSION} instead of kernel (= ↵Andreas Oberritter
${KERNEL_VERSION}) * As a special case, kernel modules must depend on kernel-${KERNEL_VERSION}, which gets runtime provided by the kernel package. The reason is, that the package version can be different from ${KERNEL_VERSION}, because the latter depends on the kernel configuration, e.g. CONFIG_LOCALVERSION. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
2011-01-28module.bbclass: fix RDEPENDS version syntaxAndreas Oberritter
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
2011-01-28e-base: bump EFL_SRCREV a bitMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-01-27siteinfo: add linux-gnu osChris Larson
Aside: should really shift most of the bits from this class into a python module in the oe package, which would make it possible to manipulate the data from the metadata if necessary. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-27cml1: fix the case of the variables in menuconfigChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-26Add install wrapper rather than coreutils-nativeChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Eric Bénard <eric@eukrea.com> Acked-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-01-26Move stage-manager-* into bin/ rather than a recipeChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Eric Bénard <eric@eukrea.com>
2011-01-25classes: 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>
2011-01-25classes/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>
2011-01-22SlugOS: nslu2-image.bbclass - use overrides to enable only for nslu2Mike Westerhof
This change effectively makes inheriting nslu2-image a no-op unless MACHINE == nslu2, making it much easier and neater to support other machine types with SlugOS.
2011-01-22insane bbclass: extend RPATH check to cover sysroots as wellKoen Kooi
* Having rpath to sysroot is just as bad as one to workdir Based on insane.bbclass from yocto Signed-off-by: Koen Kooi <koen@openembedded.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-01-20bug-image.class: Update version infoStefan Schmidt
2011-01-18jni-library.bbclass: Add helper class for jni librariesStefan Schmidt
Signed-off-by: Stefan Schmidt <stefan@buglabs.net>
2011-01-18bug-image.bbclass: Add class for bug imagesStefan Schmidt
Signed-off-by: Stefan Schmidt <stefan@buglabs.net>
2011-01-18bug-java-library.bbclass: Add a class to install jar files without symlinksStefan Schmidt
Signed-off-by: Stefan Schmidt <stefan@buglabs.net>
2011-01-17kernel.bbclass: Drop comment about kernel_do_configureTom Rini
After talking with Chris more, the way this is done now is best. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-01-17kernel,cml1.bbclass: Move menuconfig to cml1Tom Rini
The menuconfig target exists in places other than the kernel that use kernel style config. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-01-15unpack.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>
2011-01-13autotools.bbclass: use grep -qBernhard Reutner-Fischer
-q is a required arg so use it instead of redirecting to /dev/null Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-01-13autotools.bblass: mkdir also AC_CONFIG_MACRO_DIRBernhard Reutner-Fischer
Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-01-13autotools.bbclass: pass distro_imposed_configure_flagsBernhard Reutner-Fischer
Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-01-12packaged-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>
2011-01-12e-base: bump EFL SRCREV a bit again to drop libeflvala patchMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-01-11patch.bbclass: conditional patch-tool dependencyBernhard Reutner-Fischer
only depend do_patch on patch-tool if recipe references any patch The whole of do_patch should be gated through a facility to determine if there is any patch at all. TODO. Acked-by: Leon Woestenberg <leon@sidebranch.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2011-01-11scons: add EXTRA_OESCONSVíctor Manuel Jáquez Leal
It's similar to EXTRA_OEMAKE, which appends arguments to the scons command v2: * initialise the EXTRA_OECONS if it is not defined Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com> Signed-off-by: Koen Kooi <koen@openembedded.org>
2011-01-10e-base: bump EFL_SRCREVMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-01-07image.bbclass: rm symlink destination via lnBernhard Reutner-Fischer
Rather than rm'ing the destination-file manually, do ln -f Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Acked-by: Roman I Khimov <khimov@altell.ru> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-01-07qmake_base.bbclass patch to lookup for *.pro within ${S} instead of ${B}Denis Dydychkin
qmake_base.bbclass from release-2010.12 has ability to lookup for QMAKE_PROFILES if none specified by recipe. Unfortunately it does that in ${B} directory instead of ${S}, thus it does not work if they differ. Here is suggested patch: Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-01-06distro/slugos: Upgrade to use gcc 4.5 and libtool 2.4Khem Raj
* Depend on sane-toolchain * Upgrade few old pinned versions * Inherit own-mirrors to define slug src mirror * nslu2-mirrors.bbclass is not needed anymore Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-01-06cpan.bbclass: Perform more mangling for perl pathTom Rini
On hosts where we may already be past the #! limit this is required and this is safe on the target as well. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-01-06kernel class: stage ocf directoryChase Maupin
* Added the crypto/ocf directory to the list of directories to be staged when building the kernel (if it is present) * This is required when building OCF modules that allow access to crypto hardware outside of the kernel tree. Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Signed-off-by: Koen Kooi <k-kooi@ti.com>
2011-01-03classes/gitpkgv.bbclass: add GITPKGVTAG that uses 'git describe'Otavio Salvador
Using ${GITPKGVTAG} allows for automatic versioning based on the repository tags. For those that doesn't want to use it, ${GITPKGV} is still available. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-12-30classes/cpan: fix bin/script/man1/man3 installation dirsRoman I Khimov
Strange that it wasn't done before, but if some perl module wants to install man pages or some binaries or scripts they all were installed with wrong prefix. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-12-28perl: fix PERLCONFIGTARGET for multimach builds, move cpan varsRoman I Khimov
Multimachine builds race staging Config_heavy-target.pl to native directory. Solve that by changing PERLCONFIGTARGET variable semantics, now it will contain $TARGET_SYS. Change perl patch and stage functions accordingly. Also, move PERLCONFIGTARGET and other target-specific variable settings from cpan to cpan-base as I think they're also useful for cpan_build and anywhere else cpan-base is needed. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-12-28base: start leveraging oe.typesChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-28Add flags for variable typingChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-12-28Implement 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>
2010-12-21sourceipk: copy over hidden files and dirschase maupin
* Copy hidden files and directories such as eclipse project files. Currently these files are not copied for the top-level directory which makes applications with eclipse project files not usable with eclipse. * Only need to copy hidden files for the top-level directory since subdirectories do not experience this problem Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
2010-12-21package 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>
2010-12-19package.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>
2010-12-16libc-package.bbclass: Add missing TARGET_ARCH to locale_arch_optionsKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-12-16base: resurrect messages for bitbake 1.8Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.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-15eglibc: Do not install /etc/localtimeKhem Raj
* /etc/localtime is installed by separate time zone package * Pack libcidn properly into separate package, currently the library is in separate package but symlink is in libc6 * pack nscd related files into nscd package Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-12-14eglibc/glibc: Use/add cross-localedef to generate localesKhem Raj
* Add recipe for cross-localedef-native * Consolidate eglibc/glibc to share common contructs in bbclass * Move common code in eglibc to eglibc.inc * By default use cross-locaedef to generate locales now instead of qemu Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com>