summaryrefslogtreecommitdiff
path: root/classes/base.bbclass
AgeCommit message (Collapse)AuthorFiles
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-10Fix unpack issue with bitbake 1.10Chris 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-02do_unpack, do_patch: shift some responsibility around, clean things upChris Larson1
- 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-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-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-20Fix the package_arch=machine_arch logic to use FILESPATH*Chris Larson1
- 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-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-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-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-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-05base.bbclass: Fix oe_unpack_file to unpack files to match new bitbake ↵Khem Raj1
bb.decodeurl() * This patch now uses the path which essentially is the path and filename relative to recipe dir. It will create the directories as expected. Suppose if the is says file://pam.d/login in the SRC_URI then it will be copied to $WORKDIR/pam.d/login as it was happening before the fix to decodeurl in bitbake. * Do not copy the .patch and .diff files into $WORKDIR they are already symlinked in patches/ dir which will be used by quilt. Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Roman I Khimov <khimov@altell.ru> Acked-by: Chris Larson <clarson@kergoth.com>
2010-06-24Rename base_dep_prepend and autotools_dep_prependChris Larson1
When we start including methodpool funcs in the metadata, these blow up, since the _prepend gets evaluated at finalize time. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-06-16linux-libc-headers-native: Add, make it a dependency for most native recipesTom Rini1
On some host distributions the provided linux kernel headers are too old to compile utilities we need. Given that we need these utilities to run things on the target the best solution is to provide linux-libc-headers-native. Rather than get things into an inconsistent state, we make linux-libc-headers-native be a default dependency. Acked-by: Leon Woestenberg <leon@sidebranch.com> Signed-off-by: Tom Rini <tom_rini@mentor.com>
2010-05-27base.bbclass: fix issue with unpack of patches with apply=noChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-05-27Revert "base.bbclass: fixed 'apply=no' behavior"Chris Larson1
This reverts commit eb8ad2af3a59dc7b4c64814815fc13977efaec6b.
2010-05-27base.bbclass: fixed 'apply=no' behaviorEnrico Scholz1
After the recent change to autodetect patchfiles in SRC_URI's, files with 'apply=no' were not copied to workdir anymore. This broke e.g. dropbear which marks a patch as 'apply=no' and applies it manually. This patch evaluates content of 'apply' parameter and copies files to workdir when it is not a patch or the parameter is false. Slightly altered to use oe.utils -kergoth Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-05-26base.bbclass: make do_unpack also not unpack when 'apply' url parameter is setChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-05-05bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the ↵Joshua Lock1
populate_staging task to populate_sysroot This change, pulled from Poky, makes the purpose of the staging directory more obvious and the taskname more true to what it now actually does. The layout version number is increased due to the change in layout but code to convert existing directories and insert a symlink for backwards compatibility is included. This patch also includes fixes for all recipes which reference the directory. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-05base.bbclass: Stage etc directory for native packages and add a ↵Richard Purdie1
use_do_install_for_stage special staging hint (from poky) Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-05base.bbclass: Remove pointless data expand call (from Poky)Richard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-04-25Revert "do_unpack: shift some responsibility around, clean things up"Chris Larson1
Revert "base.bbclass: unbork oe_unpack_file" I give up. Will revisit later, after more testing, and after removing the unnecessary glob usages in SRC_UR in the metadata. This reverts commit 5c8bfd6873939024d57278343035cfab0257bdb3. This reverts commit 757ec3d76d258c15828de2d85dd8ce9abb4c1323.
2010-04-24base.bbclass: unbork oe_unpack_fileChris Larson1
I accidentally messed up the merge, sorry about that. Signed-off-by: Chris Larson <clarson@kergoth.com>
2010-04-23Initial move of common python bits into modules of the 'oe' python packageChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-23base.bbclass: add <dir>/lib for each dir in BBPATH to the python search pathChris Larson1
Also makes the os, time, and bb package availability explicit. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-23do_unpack: shift some responsibility around, clean things upChris Larson1
- 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 - Only display the unpack destdir to the user when debugging is enabled, as we all know they unpack into WORKDIR Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-04-22Use the python modules for checksum generation where we canChris Larson1
Based on df32920678d15c86897b50b752b937210a01edea. Signed-off-by: Chris Larson <chris_larson@mentor.com> Tested-by: Khem Raj <raj.khem@gmail.com> Acked-by: Khem Raj <raj.khem@gmail.com>
2010-04-12utils.bbclass: simplify checksum check, prepare for checksums.ini removalMartin Jansa1
* show note, when there are checksums only in checksums.ini (prepare for script for moving all to recipes) * parse checksums.ini only when there is no checksum in recipe (could be faster, but for more checked items in SRC_URI it is parsed repeatedly) * if one checksum doesn't match then count and show both (md5 as well as sha256) - usefull for copy&paste checksums for new recipe. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-04-08Using NotHandled/Handled in event handlers is deprecatedChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-27Fixed concurrency problem for ZIP packed recipes.Ihar Hrachyshka1
The problem occured when unzip-native is not yet staged, and ZIP archive unpacking already started resulting in failed do_unpack task. Added NEED_UNZIP_FOR_UNPACK variable to use in recipes which do_unpack with unzip utility but doesn't have '.zip' in SRC_URI (f.e. .EXE windows self-extraction binaries). Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com> Signed-off-by: Koen Kooi <koen@openembedded.org>
2010-03-23base.bbclass: add missing import of metadata_scmAntonio Ospite1
In commit 89b7e433719f43f1c36c76cb8856d559014e99bc metadata_scm.bbclass functions were factored out from base.bbclass, but the new file was not included. This prevented METADATA_SCM, METADATA_REVISION, METADATA_BRANCH to be set; for instance this caused oestats-client stop working. Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-21base.bbclass: add popen/system convenience functionsChristopher Larson1
Provides oe_popen, which is a subprocess.Popen wrapper that automatically provides our exported variables in the environment, including the PATH, and oe_system, which is just a wrapper that acts like system. Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Tom Rini <tom_rini@mentor.com>
2010-03-19base: erk, don't remove do_setscene from EXPORT_FUNCTIONS, sillyChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-19Initial split of base.bbclassChris Larson1
Acked-by: Richard Purdie <rpurdie@linux.intel.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-19Don't inherit siteinfo in base.bbclassChris Larson1
Acked-by: Richard Purdie <rpurdie@linux.intel.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-19base.bbclass: Add note about base_path_relativeChris Larson1
Signed-off-by: Chris Larson <chris_larson@mentor.com>
2010-03-15base.bbclass: fix quoting for md5/sha256 checksums checkingMarcin Juszkiewicz1
Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-03-15base.bbclass/bitbake.conf: Fix some string quoting to handle more unusual ↵Richard Purdie1
URLs (from Poky)
2010-03-11base: don't write to system /etc dir, use new STAGING_ETCDIR insteadMartin Jansa1
* ETCDIR instead SYSCONFDIR, because there already was STAGING_ETCDIR_NATIVE Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2010-03-11base: also stage ${sysconfdir}Phil Blundell1
2010-03-08base.bbclass: provide shortcut syntax for first anonymous entry in SRC_URIBernhard Reutner-Fischer1
2010-03-03qemu: Move gcc version check, qemu-TARGET logic into qemu.bbclassTom Rini1
Move the logic to determine what qemu-TARGET to run into qemu.bbclass so we can check for the right binary in sanity.bbclass. This code was duplicated by glibc-package and eglibc-package anyhow and with the new fn we can clean up the usage in these classes a bit. Now that we have a class for qemu stuff, and the gcc check is just for qemu, move it there.
2010-03-02qemu: Perform our sanity checks based on ENABLE_BINARY_LOCALE_GENERATIONTom Rini1
Perform qemu-related checks not based on if we're ARM but based on if we'll be using qemu for binary locale generation. Clarify what the first of these sanity checks does. Next, change the check for a provided qemu binary to be generic enough to work on all arches (and catch distribution or user built versions of qemu). While we're in here, correct the gcc version check code in base.bbclass. Signed-off-by: Tom Rini <tom_rini@mentor.com> Acked-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Chris Larson <chris_larson@mentor.com>
2010-03-02base.bbclass: create tmp/legacy-staging.log file with names of recipes which ↵Marcin Juszkiewicz1
need work Signed-off-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
2010-02-25Revert "base.bbclass: use bb.utils.*_sum instead of calling md5/sha sum ↵Chris Larson1
commands" Back this out for the time being, things are exploding now. This reverts commit df32920678d15c86897b50b752b937210a01edea.
2010-02-25base.bbclass: use bb.utils.*_sum instead of calling md5/sha sum commandsRoss Burton1
Patch courtesy the Poky project. Signed-off-by: Chris Larson <clarson@mvista.com> Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> Acked-by: Tom Rini <tom_rini@mentor.com>