aboutsummaryrefslogtreecommitdiffstats
path: root/classes
Commit message (Collapse)AuthorAgeFilesLines
* packaged-staging: Fix libtool-cross stagingTom Rini2010-09-131-10/+23
| | | | | | | | 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>
* packaged-staging: When taking ipks use PKGV not PVTom Rini2010-09-131-1/+1
| | | | | | | | 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>
* base.bbclass: fix soc-family testFrans Meulenbroeks2010-09-121-1/+1
| | | | | | | | | | | 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.
* packaged-staging: add missing debug levelChris Larson2010-09-101-1/+1
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Fix unpack issue with bitbake 1.10Chris Larson2010-09-101-1/+1
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* sourceipk: make extra files inclusion optionalChase Maupin2010-09-091-3/+12
| | | | | | | | | * 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>
* packaged-staging: use oe_run rather than os.systemChris Larson2010-09-091-35/+38
| | | | | | | 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>
* insane.bbclass: run qa_staging before do_package_stage, rather than do_buildChris Larson2010-09-091-1/+1
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Per the TSC decision, make packaged-staging defaultChris Larson2010-09-091-0/+1
| | | | | | | 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>
* java-library.bbclass: do_stage is not needed anymoreKhem Raj2010-09-071-4/+0
| | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Robert Schuster <robertschuster@fsfe.org>
* do_unpack, do_patch: shift some responsibility around, clean things upChris Larson2010-09-022-125/+69
| | | | | | | | | | | | | | | | | - 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>
* package_ipk.bbclass: remove redundant dependencies upon opkg/opkg-collateral.Graham Gower2010-09-011-1/+0
| | | | | Signed-off-by: Graham Gower <graham.gower@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* base.bbclass: fix bug with absolute file:// urisChris Larson2010-08-311-4/+4
| | | | | | | | | | | | | | 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>
* Revert "base.bbclass: fix bug with absolute file:// uris"Chris Larson2010-08-311-2/+2
| | | | | | | | 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.
* base.bbclass: fix bug with absolute file:// urisChris Larson2010-08-301-2/+2
| | | | | | | | | | 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>
* oe.utils: add oe_run convenience functionChris Larson2010-08-251-0/+18
| | | | | | | 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>
* base: use a variable for the modules to import/injectChris Larson2010-08-231-13/+9
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* Revert "base: use a variable for the modules to import/inject"Chris Larson2010-08-231-8/+13
| | | | This reverts commit 5678affd4e1b6453d6802b8cfb7823fec6f47269.
* base: use a variable for the modules to import/injectChris Larson2010-08-231-13/+8
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* patch: allow importing patches into other dirsChris Larson2010-08-231-3/+16
| | | | | | | | 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>
* cross.bbclass: Override STAGING_* paths to match cross installationKhem Raj2010-08-212-1/+5
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* klibc.bbclass: add new class to follow klibc refactoringAndrea Adami2010-08-211-0/+9
|
* pkgconfig.bbclass: also remove -isystem flagRoman I Khimov2010-08-211-0/+1
| | | | | | First seen in libclamav.pc, may be relevant for other packages too Signed-off-by: Roman I Khimov <khimov@altell.ru>
* shr: add shr-mirrors.bbclass and make use of itKrzysztof Koroscik2010-08-211-0/+13
| | | | | Signed-off-by: Krzysztof Koroscik <soltys@szluug.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Fix the package_arch=machine_arch logic to use FILESPATH*Chris Larson2010-08-202-17/+22
| | | | | | | | | - 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>
* staging, packaged-staging.bbclass: Update call to fastpathTom Rini2010-08-202-5/+4
| | | | | | | 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>
* magicbox-image.bbclass: Call uboot-mkimage not mkimage, add DEPENDSTom Rini2010-08-201-2/+4
| | | | Signed-off-by: Tom Rini <tom_rini@mentor.com>
* amend.bbclass: work with all versions of bitbakeChris Larson2010-08-191-13/+25
| | | | | | | 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>
* rootfs_ipk.bbclass: Fix BAD_RECOMMENDATIONS.Graham Gower2010-08-191-1/+1
| | | | | | | | | | 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>
* cmake.bbclass: add CMAKE_SYSTEM_PROCESSOR into generated toolchain fileDavid Kozub2010-08-191-0/+1
| | | | | | | 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>
* rootfs_ipk.bbclass: remove host's lists in /var/lib/opkg/*Graham Gower2010-08-191-2/+6
| | | | | | 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>
* srctree.bbclass: Also account fot deptaskKhem Raj2010-08-121-13/+18
| | | | | | | * Use exec_func instead of exec_task * Use a new name for meta task Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cross.bbclass: Drop automatic stage function and associated gcc dummy stubRichard Purdie2010-08-061-4/+0
| | | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Revert "rootfs_ipk.bbclass: install the package manager in a separate pass ↵Martin Jansa2010-08-061-2/+2
| | | | | | | | | | | | | | | 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>
* package_ipk.bbclass: add lists_dir to sysroots' /etc/opkg.confGraham Gower2010-08-061-0/+3
| | | | | | | | | | | | | | | | | | | 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>
* autotools_stage.bbclass: DeleteKhem Raj2010-08-052-6/+1
| | | | | | | | * 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>
* java-library.bbclass: workaround for staging when BBCLASSEXTENDED is usedHenning Heinold2010-08-051-0/+1
| | | | | * when BBCLASSEXTENDED is used, do_stage is not called for target stuff, so workaround it with the oejarinstall in do_install too
* xilinx-bsp: Rewrite to handle xilinx virtex4 virtex5 targetsAdrian Alonso2010-08-041-28/+91
| | | | | | | | | | | | | | | | | | * 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>
* base.bbclass: add support for SOC_FAMILY in COMPATIBLE_MACHINESChase Maupin2010-08-041-1/+3
| | | | | | | | | | | | | * 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>
* Recipe fixups for package_dbg usageChris Larson2010-08-031-1/+2
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* rootfs_ipk.bbclass: add support for PACKAGE_INSTALL_ATTEMPTONLYChris Larson2010-08-031-0/+5
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* rootfs_ipk.bbclass: install the package manager in a separate pass from the ↵Chris Larson2010-08-031-2/+2
| | | | | | | | | | 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>
* bitbake.conf,cmake.bbclass,cross.bbclass,icecc.bbclass: Point the toolchain ↵Khem Raj2010-08-033-6/+6
| | | | | | | | 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>
* distribute_license: added class to copy license filesChase Maupin2010-08-031-0/+51
| | | | | | | | | | | | | | | * 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>
* sanity.bbclass: kill usage of 'print'Chris Larson2010-07-281-2/+3
| | | | Signed-off-by: Chris Larson <chris_larson@mentor.com>
* packaged-staging, native{,sdk}: Rework OVERRIDES to check PSTAGING_DISABLEDTom Rini2010-07-283-17/+19
| | | | | | | | | | | | | 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>
* sourceipk: use ar to package ipk instead of tarChase Maupin2010-07-281-1/+1
| | | | | | | | | * 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>
* sourceipk: add license to control fileChase Maupin2010-07-281-0/+1
| | | | | | | * Added License field to the control file. Signed-off-by: Chase Maupin <chase.maupin@ti.com> Signed-off-by: Koen Kooi <koen@openembedded.org>
* Revert "packaged-staging: Make setting PSTAGING_ACTIVE be a named python func"Tom Rini2010-07-271-14/+11
| | | | | | This has some unintended consequences, revert for now. This reverts commit 9a0e95f37639d9856ad41b8fc301f9b00369a797.
* packaged-staging: Make setting PSTAGING_ACTIVE be a named python funcTom Rini2010-07-271-11/+14
| | | | | | | | | | | | | 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>