summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)AuthorFiles
2010-09-25utility-tasks.bbclass: drop mrproper taskChris Larson1
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 Raj1
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énard1
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 Kooi1
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énard1
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énard1
* 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-embeddedtestingBjörn Krombholz1
* 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 Raj2
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 Rini1
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 Rini1
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 Rini1
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 Meulenbroeks1
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 Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-10Fix unpack issue with bitbake 1.10Chris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-09sourceipk: make extra files inclusion optionalChase Maupin1
* 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>
2010-09-09packaged-staging: use oe_run rather than os.systemChris Larson1
This ensures that the output of the stage manager is swallowed, rather than shown unnecessarily to the user. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-09insane.bbclass: run qa_staging before do_package_stage, rather than do_buildChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-09Per the TSC decision, make packaged-staging defaultChris Larson1
For now, just ensures its inherited. In the future, we can merge / simplify staging.bbclass with packaged-staging.bbclass as appropriate. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-09-07java-library.bbclass: do_stage is not needed anymoreKhem Raj1
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Robert Schuster <robertschuster@fsfe.org>
2010-09-02do_unpack, do_patch: shift some responsibility around, clean things upChris Larson2
- Consolidate 'is this file a patch' logic - Move unpack functions from classes into oe.unpack - Move the unpacking message printing into do_unpack - Move the destination directory determination into do_unpack - Use subprocess's ability to pass in PATH and cwd rather than mangling the cmd - Use shutil.copy2/copytree for ordinary file "unpack" - Use the existing urldata from bb.fetch.init rather than re-decodeurl'ing the urls - Make handling of globs in url paths explicit rather than implicit, calling oe_unpack on each one, so showing an unpacking message to the user for each globbed file, rather than the entirety Signed-off-by: Chris Larson <chris_larson@mentor.com> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-09-01package_ipk.bbclass: remove redundant dependencies upon opkg/opkg-collateral.Graham Gower1
Signed-off-by: Graham Gower <graham.gower@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-08-31base.bbclass: fix bug with absolute file:// urisChris Larson1
The code which used host/path from the url to construct the destination of the copy was using os.path.join. os.path.join treats a "/" in an element as an indication to drop all previous elements, so the full path resulted in a destination exactly the same as the source, resulting in a no-op unpack. Fixed by using oe.path.join instead. The previous fix missed two instances of os.path.join -- there's code duplication in oe_unpack_file, really need to resurrect my do_unpack cleanup branch. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-31Revert "base.bbclass: fix bug with absolute file:// uris"Chris Larson1
Drop this for now, as it breaks other things. Of course, without this, you once again can no longer have absolute file:// paths the way we used to be able to. Will look into it further. This reverts commit 599b03fe999d41114d124ce663b6c59fa57256d8.
2010-08-30base.bbclass: fix bug with absolute file:// urisChris Larson1
The code which used host/path from the url to construct the destination of the copy was using os.path.join. os.path.join treats a "/" in an element as an indication to drop all previous elements, so the full path resulted in a destination exactly the same as the source, resulting in a no-op unpack. Fixed by using oe.path.join instead. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-25oe.utils: add oe_run convenience functionChris Larson1
This one is intended to be used from python snippets in variables. It returns the stdout of the subprocess and raises an exception if the exit code isn't 0. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-23base: use a variable for the modules to import/injectChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-23Revert "base: use a variable for the modules to import/inject"Chris Larson1
This reverts commit 5678affd4e1b6453d6802b8cfb7823fec6f47269.
2010-08-23base: use a variable for the modules to import/injectChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-23patch: allow importing patches into other dirsChris Larson1
Use the 'patchdir' flag. If relative, it's assumed to be relative to ${S}. It creates a patchset class per patch directory, so for quilt this results in multiple .pc/patches directories to manage each of the patchsets. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-21cross.bbclass: Override STAGING_* paths to match cross installationKhem Raj2
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-08-21klibc.bbclass: add new class to follow klibc refactoringAndrea Adami1
2010-08-21pkgconfig.bbclass: also remove -isystem flagRoman I Khimov1
First seen in libclamav.pc, may be relevant for other packages too Signed-off-by: Roman I Khimov <khimov@altell.ru>
2010-08-21shr: add shr-mirrors.bbclass and make use of itKrzysztof Koroscik1
Signed-off-by: Krzysztof Koroscik <soltys@szluug.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-08-20Fix the package_arch=machine_arch logic to use FILESPATH*Chris Larson2
- Use FILESPATHPKG and FILESPATHBASE to locate the machine specific dirs - Use the fetch urldata rather than poking at urls ourselves - Move the logic into utils.bbclass as def'd python functions - Simplify Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-20staging, packaged-staging.bbclass: Update call to fastpathTom Rini2
Call fastpath if pstageactive, and don't need to check it again in pstaging's fastpath. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-08-20magicbox-image.bbclass: Call uboot-mkimage not mkimage, add DEPENDSTom Rini1
Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-08-19amend.bbclass: work with all versions of bitbakeChris Larson1
Latest bitbake uses a set for __depends, rather than a list, so handle that when we add the nonexistent files. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-19rootfs_ipk.bbclass: Fix BAD_RECOMMENDATIONS.Graham Gower1
See http://code.google.com/p/opkg/source/detail?r=553 And previous discussions: http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg01423.html http://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg04051.html Signed-off-by: Graham Gower <graham.gower@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-08-19cmake.bbclass: add CMAKE_SYSTEM_PROCESSOR into generated toolchain fileDavid Kozub1
Needed for packages that check this value, e.g. recent webkit. Signed-off-by: David Kozub <zub@linux.fjfi.cvut.cz> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-08-19rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/*Graham Gower1
Signed-off-by: Graham Gower <graham.gower@gmail.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-08-12srctree.bbclass: Also account fot deptaskKhem Raj1
* Use exec_func instead of exec_task * Use a new name for meta task Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-08-06cross.bbclass: Drop automatic stage function and associated gcc dummy stubRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2010-08-06Revert "rootfs_ipk.bbclass: install the package manager in a separate pass ↵Martin Jansa1
from the other packages" * This reverts commit acc720fa80227d08fd15764117e0c34e2387e804. * Graham already has a proper fix for this. * This breaks rootfs with ${ONLINE_PACKAGE_MANAGEMENT}" == "none" Conflicts: classes/rootfs_ipk.bbclass Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-By: Chris Larson <clarson@mvista.com>
2010-08-06package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg.confGraham Gower1
This makes the sysroots' /etc/opkg.conf agree with opkg-collateral on where the package lists database should be found. Fixes a problem whereby opkg cannot find the package lists after opkg-collateral is installed. This fixes the same problem as acc720fa80227d08fd15764117e0c34e2387e804. But since that doesn't take into account other dependencies bringing opkg-collateral into the image, it doesn't solve the problem in all cases and could probably be reverted. This is a bit messy, having hardcoded /var/lib/opkg as the lists_dir in multiple locations. Other suggestions welcome. I'm not sure its all that necessary to be using /usr/lib/opkg other than for backwards compatibility with existing installations. Signed-off-by: Graham Gower <graham.gower@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-08-05autotools_stage.bbclass: DeleteKhem Raj2
* This class should not be needed anymore Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Richard Purdie <rpurdie@linux.intel.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-08-05java-library.bbclass: workaround for staging when BBCLASSEXTENDED is usedHenning Heinold1
* when BBCLASSEXTENDED is used, do_stage is not called for target stuff, so workaround it with the oejarinstall in do_install too
2010-08-04xilinx-bsp: Rewrite to handle xilinx virtex4 virtex5 targetsAdrian Alonso1
* Rewrite for handling most xilinx target virtex4 and virtex5 based * Add helper functions for configuring the target board * User must add in local.conf: XILINX_BOARD = "ml401" | "ml403" | "ml405" | "ml410" | "ml507" | "ml510" XILINX_BSP_PATH = "Xilinx XPS hardware project dir" with this variables u-boot and the linux kernel gets configured for a selected board. * xilinx-bsp exits when there is no hardware project or when parameters header or the linux kernel device tree haven't been generated in Xilinx XPS [1] in order to match hardware/software model * Only tested for powerpc based hardware projects * [1] Xilinx XPS -> Xilinx Platform Studio * v2 add additional comments Signed-off-by: Adrian Alonso <aalonso00@gmail.com>
2010-08-04base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINESChase Maupin1
* Add support for using SOC_FAMILY in the COMPATIBLE_MACHINES setting for a recipe. * This will allow recipes to work for entire families of devices without having to maintain/update the compatible devices as new devices are added into a family Signed-off-by: Chase Maupin <chase.maupin@ti.com> Acked-by: Denys Dmytriyenko <denys@ti.com> Acked-by: Koen Kooi <k-kooi@ti.com> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-08-03Recipe fixups for package_dbg usageChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-03rootfs_ipk.bbclass: add support for PACKAGE_INSTALL_ATTEMPTONLYChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>