aboutsummaryrefslogtreecommitdiffstats
path: root/classes
AgeCommit message (Collapse)Author
2010-10-09image.bbclass: implement IMAGE_FEATURESChris Larson
IMAGE_FEATURES, as with the other _FEATURES variables, is a space separated list of words which identify pieces of functionality to be included / supported. Currently, any defined package group may be included (see the oe.packagegroup python module). Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-09Move packagedata code into oe.packagedataChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-09image.bbclass: don't export PACKAGE_INSTALLChris Larson
It doesn't need to be exported, as the rootfs classes use the bitbake variable directly, not the shell variable created from it. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-09image.bbclass: add LINGUAS_INSTALL to PACKAGE_INSTALL.Chris Larson
They aren't a special case, no reason to handle them that way, as we can leverage overrides. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-09image.bbclass: use PACKAGE_INSTALL in RDEPENDSChris Larson
Don't Repeat Yourself. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-09image.bbclass: apply package renaming to optionalChris Larson
Runs runtime_mapping_rename against PACKAGE_INSTALL_ATTEMPTONLY, which has packages we'd like to install, but which are optional. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-09oe.packagegroup: add code for package groupsChris Larson
This includes some utility functions for dealing with groups of packages defined in the metadata. Metadata syntax: PACKAGE_GROUP_<group> = "<list of packages>" If the packages in the group are optional: PACKAGE_GROUP_<group>[optional] = "1" Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-09oe.package: add 'files' functionChris Larson
This function obtains a list of files to be included in a package, using the globs in FILES_<pkg> and the files installed in ${D}. Currently, the only user is package_dbg, but I can see this being useful in package.bbclass as well. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-09oe.path: add 'find' convenience functionChris Larson
find is simply an os.walk in generator form, yielding the absolute path to each file. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-08image.bbclass: revert the RDEPENDS changeChris Larson
Image recipes don't emit packages, so it doesn't make any sense to make the RDEPENDS package specific. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-08module.bbclass: RDEPENDS -> RDEPENDS_${PN}testing_2010-10-08Frans Meulenbroeks
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-10-08mage.bbclass: RDEPENDS -> RDEPENDS_${PN}Frans Meulenbroeks
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-10-08distutils-base.bbclass: RDEPENDS -> RDEPENDS_${PN}Frans Meulenbroeks
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-10-08rubyextension.bbclass: RDEPENDS -> RDEPENDS_${PN}Frans Meulenbroeks
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-10-07RDEPENDS -> RDEPENDS_${PN}Frans Meulenbroeks
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-10-05distutils-base: Only RDEPEND python-core on target packagesTom Rini
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-10-05vala.bbclass: export XDG_DATA_DIRS to point upstream vala to where the vapis areMichael 'Mickey' Lauer
2010-10-05Adjust rdep/rrec for gtk+* and gtk-icon-cache.bbclassChris Larson
Drop the runtime dependencies / recommendations unless the recipe is for the target. This is necessary because right now bitbake obeys *_${PN}, even if ${PN} is not in PACKAGES. This should kill the unnecessary build of the crosscompiler when doing 'bitbake gtk+-native'. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-04insane.bbclass: Skip '.pc' in qa_configureTom Rini
The files in the .pc directory won't have anything useful in them and are often unreadable so lets just skip them. Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-10-04module_strip bbclass: inherit class to get the kernel version methodKoen Kooi
2010-10-04kernel.bbclass: set kerneldirFrans Meulenbroeks
commit b6cc4bc217e695801db060a1366915a870cab5db moved work from kernel_do_install to sysroot_stage_all_append This change changed kerneldir and staged directy from ${SYSROOT_DESTDIR}${STAGING_KERNEL_DIR}. This works fine but the patch removed the line kerneldir=${D}/kernel/ from do_install. However, some kernel recipes have a do_install_append which references ${kerneldir}. This patch adds setting kerneldir to the end of do_install so the value is available for everyone who appends Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-10-03create_wrapper: wrappers are more useful if they pass args *coughs*Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-02gtk-icon-cache: don't use RDEPENDS, use RDEPENDS_${PN}Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-02create_wrapper: check syntax of argumentsChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-01utils.bbclass: add wrapper script generatorChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-10-01eglibc/glibc: Kill off (again) zoneinfoTom Rini
We want to get zoneinfo from the tzdata package. Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-09-30kernel.bbclass: avoid NOTE messages for files that are staged but not packagedFrans Meulenbroeks
copy the files directly from the work area to staging. That way there are no unpackaged files in image/ so no NOTE messages. Additional advantage is that it is faster as we save the copy to the image dir. See also http://thread.gmane.org/gmane.comp.handhelds.openembedded/37487 Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Roman I Khimov <khimov@altell.ru> Tested-by: Petr Stetiar <ynezz@true.cz> Acked-by: Eric Benard <eric@eukrea.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Tested-by: Paul Menzel <paulepanter@users.sourceforge.net>
2010-09-30Revert "wpa-supplicant : moved unused files to obsolete dir"Frans Meulenbroeks
This reverts commit 9a5382aad4e5a3e52fa52722cf5587fdba958e9f. This one accidentally also dragged in classes/kernel.bbclass I will redo the commit for wpa-supplicant later. classes/kernel.bbclass will be se a separate commit Thanks for Paul Menzel for spotting this Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-09-29wpa-supplicant : moved unused files to obsolete dirFrans Meulenbroeks
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-09-27kernel-arch.bbclass: Add logic to account for mips64/mips64el in map_kernel_archKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-09-27siteinfo.bbclass, site/: Add mips64/mips64el to siteinfo dataKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-09-27insane.bbclass: Recognise mips64 and mips64elKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-09-27native.bbclass,package.bbclass,bitbake.conf: Make provisions for system ↵Khem Raj
libdir to be something else than '/lib' * Add base_libdir_native as target libdir could be different e.g. lib32 lib64 * Dont assume lib to be system libdir during packaging. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com>
2010-09-27base.bbclass: not use bb.fetch.urldata in do_unpack() for traversing SRC_URIsDenys Dmytriyenko
bb.fetch.urldata contains cached SRC_URIs, but in case SRC_URI is altered by amend.inc or machine override, the original SRC_URI is not removed from the cache, leading to calling do_unpack() multiple times on original and modified versions of the file. Don't rely on bb.fetch.urldata and traverse SRC_URIs directly. Some background and details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/36703 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-09-27amend.bbclass: kill override specificChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-25utility-tasks.bbclass: drop mrproper taskChris Larson
This task is misleading and potentially quite harmful, as it wipes the entire DL_DIR, yet tasks are supposed to be recipe specific. We have the proper distclean task to wipe sources for a recipe + run do_clean, and the user can always wipe all of DL_DIR manually if necessary. Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Holger Hans Peter Freyther <holger@moiji-mobile.com> Acked-by: Eric Bénard <eric@eukrea.com>
2010-09-24staging.bbclass: Use sysroot_stage_dir instead of autotools_stage_dirKhem Raj
Some packages like package-stagemanager-native dont use autoools and autotools_stage_dir can not be found for such recipes. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Chris Larson <chris_larson@mentor.com>
2010-09-24classes/update-rc.d.bbclass: move update-rc after postinstEric Bénard
without this, launching a daemon can fail if postinst is supposed, for example, to fix permissions of directories used by the daemon. Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Henning Heinold <heinold@inf.fu-berlin.de>
2010-09-23testlab bbclass: add a switch to log testlab results to a git repoKoen Kooi
To use it add the following to your local.conf: TESTLABLOG = "remote" TESTLABREMOTEDIR = "/OE/angstrom-testlab" See http://gitorious.org/angstrom/angstrom-testlab/ for an example of the expected results
2010-09-23sdk.bbclass: allow virtclass-sdk overrideEric Bénard
Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-09-21utils.bbclass: fix is_machine_specificEric Bénard
* base.bbclass can set a package's PACKAGE_ARCH to MACHINE_ARCH if it finds file:// in the SRC_URI and the corresponding file is machine specific (recipes/foo/foo-1.0/<some machine>/) * but is_machine_specific actually fails to detect these files as urldata.path is used instead of urldata.localpath thus preventing the comparison of the file's path with machinepaths * tested with bitbake HEAD & 1.8.18, with OE's tree alone and OE's tree plus an overlay. Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Chris Larson <clarson@kergoth.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-09-20qt4-embedded: avoid circular dependencies for reciped providing qt4-embeddedtesting_2010-09-20Björn Krombholz
* qt4e.bbclass did add a dependency on qt4-embedded for recipes providing qt4-embedded. This breaks building of qt4-embedded-gles in 2 ways: 1. PREFERRED_PROVIDER_qt4-embedded = qt4-embedded-gles adds a circular dependency. 2. bitbake qt4-embedded-gles first builds and installs qt4-embedded to sysroots/ and then fails to link the qt4-embedded-gles build against the libs in sysroots which don't provide the gl specific symbols * The fix avoids adding the dependency for package names _beginning_ with 'qt4-embedded' (as it is done in the x11 version). Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-09-15openmoko2.bbclass, openmoko-base.bbclass: Fix openmoko_two_get_license and ↵Khem Raj
openmoko_two_get_subdir Usually openmoko inheriting recipes have SECTION like openmoko/libs etc then the code works well but for packages e.g. -dev -dbg same section is not true and the functions fail File "openmoko2.bbclass", line 2, in openmoko_two_get_subdir ValueError: need more than 1 value to unpack This patch makes sure to split the string only if SECTION contains '/' Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-09-15kernel.bbclass: Fix INITRAMFS_IMAGE logicTom Rini
Due to a bitbake bug to be fixed in 1.10.1, EXPORT_FUNCTIONS isn't remapping kernel_do_compile[depends] to do_compile[depends], so make a comment about cleaning this up once we depend on a working bitbake. Next, it needs to add to do_configure (like the users have manually set a dependancy on) rather than do_compile so that the initramfs is copied into place in time. Since we're fixing the logic in kernel.bbclass, we can drop the workarounds that linux-kexecboot and linux-preboot have added. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-09-13packaged-staging: Fix libtool-cross stagingTom Rini
libtool-cross must not inherit cross, so wasn't getting the right mangling and saving done. In addition, we want a slightly broader grep to be used in these cases. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-09-13packaged-staging: When taking ipks use PKGV not PVTom Rini
This fixes a problem where ncurses 5.7 (and readline) wasn't having ipks stored. package_ipk.bbclass uses PKGV not PV which means packaged-staging should too. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-09-12base.bbclass: fix soc-family testFrans Meulenbroeks
for now pushed this patch as it fixes the breakage. If it is decided not to have SOC_FAMILY we can always revert or overwrite see http://lists.linuxtogo.org/pipermail/openembedded-devel/2010-September/023680.html Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Chase Maupin <chase.maupin@ti.com> and got a looks good from Phil.
2010-09-10packaged-staging: add missing debug levelChris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-10Fix unpack issue with bitbake 1.10Chris Larson
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-09sourceipk: make extra files inclusion optionalChase Maupin
* Make the inclusion of the README and recipe files optional for source ipks. For some packages the sources owner may not want these additional files added to their sources. Signed-off-by: Chase Maupin <chase.maupin@ti.com> Signed-off-by: Denys Dmytriyenko <denis@denix.org>