summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)AuthorFiles
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>
2010-08-03rootfs_ipk.bbclass: install the package manager in a separate pass from the ↵Chris Larson1
other packages It seems that installing opkg/opkg-collateral blows away the configuration we need to install more packages, so lets make that explicit by installing those things last. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-08-03bitbake.conf,cmake.bbclass,cross.bbclass,icecc.bbclass: Point the toolchain ↵Khem Raj3
paths to new multi-machine friendly toolchain install location. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Koen Kooi <k-kooi@ti.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-08-03distribute_license: added class to copy license filesChase Maupin1
* This class can be used to copy license files from package sources into the deploy directory so they can be distributed. * By default it searches the top-level source directory for files matching COPYING* or LICENSE* * Search depth and pattern can be modified using the LICENSE_SEARCH_DEPTH and LICENSE_FILES variables respectively. * Thanks to Koen Kooi and Bernhard Reutner-Fischer for their inputs and suggestions. Signed-off-by: Chase Maupin <chase.maupin@ti.com> Signed-off-by: Koen Kooi <k-kooi@ti.com>
2010-07-28sanity.bbclass: kill usage of 'print'Chris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-07-28packaged-staging, native{,sdk}: Rework OVERRIDES to check PSTAGING_DISABLEDTom Rini3
When the function to set PSTAGING_ACTIVE is an anon python function OVERRIDES is not set so we cannot set things to disabled in the context of BBCLASSEXTEND recipes. To fix this we need to have native/nativesdk set OVERRIDES outside of the anon function context. We then make a COW of the data at this point in packaged-staging's anon function and evaluate so we know what will be in OVERRIDES and check. While we're in here drop a duplicate test in populate_sysroot_postamble and check nativesdk along with the rest of the classes that need mangling. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-07-28sourceipk: use ar to package ipk instead of tarChase Maupin1
* Changed the command that packages the contents of the source ipk to ar instead of tar to match how other ipks are built. Signed-off-by: Chase Maupin <chase.maupin@ti.com> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-07-28sourceipk: add license to control fileChase Maupin1
* Added License field to the control file. Signed-off-by: Chase Maupin <chase.maupin@ti.com> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-07-27Revert "packaged-staging: Make setting PSTAGING_ACTIVE be a named python func"Tom Rini1
This has some unintended consequences, revert for now. This reverts commit 9a0e95f37639d9856ad41b8fc301f9b00369a797.
2010-07-27packaged-staging: Make setting PSTAGING_ACTIVE be a named python funcTom Rini1
When the function to set PSTAGING_ACTIVE is an anon python function overrides are not set so we cannot set things to disabled in the context of BBCLASSEXTEND recipes. Call this function before we check PSTAGING_ACTIVE. In the case of packagedstaging_fastpath it's cleaner to convert to a full python function. While we're in here drop a duplicate test in populate_sysroot_postamble and make do_package_stage check PSTAGING_ACTIVE for == 0 rather than != 1, like the rest of the functions do. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-07-27packaged-staging: Place cross/native/etc into the normal pathTom Rini2
With the changes to move ${CROSS_DIR} into sysroots/ we now $ORIGIN-mangle cross packages (and already were native) so change the comment from cross.bbclass while we're at this and then put these recipes into the usual packaged-staging cache. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-07-26Siteinfo cleanup v2Chris Larson4
- Don't supply site files for native. - Split up the site information, so we don't need to add every single combination of os and architecture to the siteinfo.bbclass. - Drop the ${FILE_DIRNAME}/site-<bits> stuff, there are other ways to do it. - SITEINFO_ENDIANESS -> SITEINFO_ENDIANNESS. Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-07-26Revert "Siteinfo cleanup"Chris Larson3
Will revisit. This reverts commit 87dc166bade8722af4076c8644cac6a0a437826f.
2010-07-26Siteinfo cleanupChris Larson3
- Don't supply site files for native - Split up the site information, so we don't need to add every single combination of os and architecture to the siteinfo.bbclass - Instead of specifically looking for '${FILE_DIRNAME}/site-${PV}/<sitefile>', leverage FILESPATH. Now it searches the paths in both BBPATH and FILESPATH for "site/<sitefile>". - SITEINFO_ENDIANESS -> SITEINFO_ENDIANNESS Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-07-26cpan.bbclass: removed legacy stagingFrans Meulenbroeks1
bumped PR for the main perl recipes so this change takes effect Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Roman I Khimov <khimov@altell.ru>
2010-07-26sanity.bbclass: Run our checking at BuildStarted, not ConfigParsedChris Larson1
ConfigParsed is often utilized to do programmatic changes to the configuration metadata. If these other event handlers set any variables which sanity.bbclass needs to check, there's a problem, since we can't ensure those handlers run before this one. So, we move the sanity checking to when the build is about to start, this ensures that the configuration metadata is entirely ready to go. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-07-22sanity.bbclass, abi_version.conf: Bump the ABI to inform that cross has died.Khem Raj1
* tmpdir layout is changed bump ABI version to force a rebuild. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com> Acked-by: Richard Purdie <rpurdie@rpsys.net> Ackef-by: Chris Larson <clarson@kergoth.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@openembedded.org>
2010-07-22classes,bitbake.conf: Remove CROSS_DIR, install cross-packages into native ↵Khem Raj6
sysroot * Update references to CROSS_DIR in classes and bitbake.conf. * This patch is based on Joshua Lock's work in poky. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com> Acked-by: Richard Purdie <rpurdie@rpsys.net> Ackef-by: Chris Larson <clarson@kergoth.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@openembedded.org>
2010-07-20base.bbclass: base_do_compile() accepts GNUmakefile as MakefileVitus Jensen1
GNU make will look for GNUmakefile, makefile and Makefile. GNUmakefile isn't recommended but used by some programs, e.g. canutils. Signed-off-by: Vitus Jensen <vjensen@gmx.de> Acked-by: Chris Larson <chris_larson@mentor.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-07-14pkconfig.bbclass: Add -R... to the regex, and reindent.Tom Rini1
clamav 0.96.1 makes use of this flag Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-07-14base.bbclass: introduce COMPATIBLE_TARGET_SYSFrans Meulenbroeks1
This patch introduces COMPATIBLE_TARGET_SYS It is similar to COMPATIBLE_MACHINE but where COMPATIBLE_MACHINE is used to specify that a certain recipe is for a certain machine COMPATIBLE_TARGET_SYS can be used to specify that a certain recipe is for a certain architecture. Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-07-07relocatible.bbclass: Call oe.path.relative in try/exceptTom Rini1
Some programs such as libxml-parser-perl-native can have junky RPATH directories. Found by Khem Raj. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-07-07base.bbclass: re-add backward compatibility with bitbake w.r.t decodeurl fix ↵Khem Raj1
in bitbake Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
2010-07-07relocatible.bbclass: Switch to using oe.path.relativeTom Rini1
Rather than calculate the relative path ourself use a helper function we've got. This also results in shorter rpaths being used. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-07-07utils.bbclass: base_chk_file_checksum uses strick_checksums as a booleanTom Rini1
Signed-off-by: Tom Rini <tom_rini@mentor.com>