aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
AgeCommit message (Collapse)Author
2011-10-24useradd.bbclass: check if a group already exists manuallyOtavio Salvador
The use of groupadd -f makes much more difficult to figure when a group is not add. This was the case of the class not working for our usage and this being caused by the lack of '/etc/group' file but unnoticed as groupadd wasn't failing according. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-10-24bootimg.bbclass: add support to disable HDD image buildingOtavio Salvador
If an image sets NOHDD = "1" the HDD image won't be build. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-10-20module.bbclass: add lock to prevent error bulding ext modulesAnders Darander
When external modules are built, files in $STAGING_KERNEL_DIR/scripts/basic will/can get rebuilt. This raises a potential race condition. Prevent this by adding a lock around the do_make_scripts() function. Further, make sure that the kernel has been installed to the sysroot, prior to executing this new task. Signed-off-by: Anders Darander <anders@chargestorm.se>
2011-10-19insane.bbclass: print full path on invalid LICENSE_FILES_CHKSUMDarren Hart
Currently only the basename is printed when os.path.isfile() returns a failure for the license file. If the file is present, but in the wrong directory, this can be non-obvious to debug. Use the full path instead. Make a minor grammatical correction in the error message while we're at it. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2011-10-19src_distribute.bbclass, src_distribute_local.bbclass: mostly rewrittenOtavio Salvador
The code used to reference unavailable variables and mistakenly define the tasks so fully demonstrating this have not been in use for a while. During the code rewrite, it was extended to copy also the patches into the source distribution directory but using the PF as prefix to avoid name colision among other recipes. As 'distsrcall' task was not properly defined and noone noticed it, until now, it got renamed to 'distribute_sources_all' as it is a better and more meanful name for the task. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-10-19poky: fix broken ubifs link in deploy folderLauri Hintsala
Fix broken rootfs image link when ubifs is used. Function runimagecmd is using image name "${IMAGE_NAME}.rootfs.${type}". Let's use the same name in IMAGE_CMD_ubifs. Signed-off-by: Lauri Hintsala <lauri.hintsala@bluegiga.com>
2011-10-14image-live.bbclass: allow override of initrd imageOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-10-14autotools: fix multi-word arguments for EXTRA_OECONFChristopher Larson
This is needed to better support things like the following (with a multi-word BUILD_CC): EXTRA_OECONF += '"ac_cv_prog_CC_FOR_BUILD=${BUILD_CC}"' Signed-off-by: Christopher Larson <kergoth@gmail.com>
2011-10-14autotools: Enhance gettext handling to better work with SCM versions of codeRichard Purdie
If we pull SCM based code using gettext, Makefile.in.in in the po directory can be missing. We therefore need to add this if its not already present. We could use gettextize if it wasn't so broken (for example requiring user input on stdin and installing way more files that we ever care about such as the m4 files). We also have a problem if a recipe sets a different AUX dir, for now fix this by allowing recipes to specify when this is being done using the AUTOTOOLS_AUXDIR variable. Ultimately we could likely figure this out automatically. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-10libc-package.bbclass: Use a makefile for locale gernation to increase ↵Richard Purdie
parallelization We can generate the locales in parallel. The easiest way to do this is generate a Makefile and then run this with our usual parallel make options. [YOCTO #1554] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-06native.bbclass: Ensure native recipes have a deterministic baselib valueRichard Purdie
Changes to baselib by specific machine configuration were resulting in sstate cache invalidation, particularly in multilib configurations. This patch ensures this doesn't happen and native sstate cache files are reusable. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-06sstate.bbclass: Ensure machine specific stamps are only wiped for the ↵Richard Purdie
current task sstate was being a little too ethusiastic about removing stamp files and was removing stamp files for other machines when it shouldn't have been. This patch teaches sstate about machine specific stamp extensions and allows it to only remove the current task's stampfiles. Based on a patch from Phil Blundell <philb@gnu.org> with some tweaks from me. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-06image.bbclass: No need to run most tasks except do_rootfsRichard Purdie
Running fetch/unpack/patch/compile/install etc. is pointless since the only image task that does anything is the rootfs task. Hence mark the useless tasks as noexec so we don't bother running them. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-06base.bbclass: Implement PACKAGECONFIGRichard Purdie
These enabled options to be specified in the form: PACKAGECONFIG ?? = "<default options>" PACKAGECONFIG[foo] = "--enable-foo,--disable-foo,foo_depends,foo_runtime_depends" So that DEPENDS, RDEPENDS_${PN} and EXTRA_OECONF can be automatically built from specific options. Those options can easily be customised by the distro config or the user. Based on some ideas from Chris Elston <celston@katalix.com> but with an improved easier to use one line interface. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-06base.bbclass: Minor cleanupRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-05autotools.bbclass: Allow dependency tracking option to be easily overriddenRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-04bootimg.bbclass: fix comment typoOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-10-04image-live.bbclass: allow images to override ROOTFS and INITRDOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-10-04image.bbclass: improve comments regarding exported functionsOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-10-04populate_sdk_rpm: Add missing /bin/sh from rpm ignore list for the SDKRichard Purdie
The target SDK packages don't need to fulfil a shell dependency so add /bin/sh to the list of packages we don't need to resolve. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-04package_rpm: Ensure multilib code is only called in the multilib caseRichard Purdie
This fixes some error messages in the do_rootfs logs of non-multilib builds. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-30base.bbclass: Drop unneeded dependencyRichard Purdie
patch depends on unpack configure depends on patch We simply don't need a configure dependency on unpack. This simplifies the dependencies of every recipe slightly and should make bitbake slightly faster at resovling dependency graphs. It also makes the .dot dependency graphs slightly more readable by removing noise. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-30autotools: Disable dependency trackingRichard Purdie
There is no point in us spending time generating a ton of dependency information in source directories when we don't actually use it for our one off builds. We might as well disable the option and take the speed up. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-30Remove help2man dependencyRichard Purdie
The help2man script is pretty useless to us. It requires to run the target binary to extract help information which is not possible for any of our cross compiled target binaries. We're not interested in man pages for -cross/-native tools. It therefore makes no sense to have this as a core build dependency. This patch removes the dependeny and replaces it with a script returning false. This will trigger autotool's missing utility to use the copy of the man page included with the sources which is what would already happen when we tried to run cross compiled binaries anyway. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-29Add support for generating ext2.lzma{, .u-boot} imagesMatthew McClintock
Machines can now add ext2.lzma and ext2.lzma.u-boot images as a generated image type. Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-29Add support for generating ext2.bz2{, .u-boot} imagesMatthew McClintock
Machines can now add ext2.bz2 and ext2.bz2.u-boot images as a generated image type. This also adds an extra parameter to oe_mkimage which is the image compression type for mkimage Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-29insane: Promote most warnings into QA errors by defaultRichard Purdie
We agreed a while back that we'd start ERRORing on QA issues, not just WARNING about them. This patch changes the default QA levels to error on everything except ldflag and useless rpath issues. It also stops giving out QA warnings about desktop files since it adds noise to the build and until someone plans to seriously tackle that problem, its pointless. We can promote the ldflag and rpath warnings too, when the issues in OE-Core are resolved (they're mostly there now, just a few more to go). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-28multilib: add MLPREFIX to deploy folderDongxiao Xu
Add MLPREFIX to multilib deploy forlder to avoid the confliction between multilib and normal package deploy directory. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-28cmake.bbclass: adding extendable extra variable to root pathAndrew Gabbasov
Introducing a hook variable for various .conf files to add extra path elements to cmake. For example, it can be used in external toolchain conf file to add ${TOOLCHAIN_PATH} to cmake root path search. Signed-off-by: Andrew Gabbasov <andrew_gabbasov@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-28scripts: use OE_TMPDIR instead of TMPDIR external variablePaul Eggleton
On OpenSUSE within an X session, TMPDIR is set to the system temporary directory (/tmp) which is incorrect for these scripts. Thus, change runqemu and oe-setup-rpmrepo to use OE_TMPDIR from the external environment rather than TMPDIR. Fixes [YOCTO #1530] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-28Fixed a typo for setting up OECORE_ACLOCAL_OPTS for adt-installer caseJessica Zhang
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-28kernel.bbclass: remove unshipped files in do_installDmitry Eremin-Solenikov
Drop two unsed files (modules.order and modules.builtin) in do_install to stop the "unshipped files" warning. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-28kernel.bbclass: handle .cis firmwareDmitry Eremin-Solenikov
.cis firmware files are used by kernel to patch incorrect CIS fir PCMCIA cards. Create respective packages. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-28kernel.bbclass: blacklist 'perf-dbg' as well for the modules metapackageDmitry Eremin-Solenikov
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-28libc-package.bbclass: add MLPREFIX when set values to PACKAGESDongxiao Xu
There are some places that PACKAGES are dynamically set. To support multilib, we need to add MLPREFIX before the package name in those settings. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2011-09-28package_rpm: combine normal and multilib solution manifest togetherDongxiao Xu
When RPM does the real install, if the first manifest file is empty, the installation will stop without handling the second manifest file. Merge the two manifest files together to fix this issue. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2011-09-28multilib: remove the multilib handling to allarchDongxiao Xu
currently we have allarch type of recipes, which may still have architecture dependency, like x11-common. So we need to drop the handling to allarch in multilib case. Also remove the PV postfix in python-pygobject DEPENDS, since multilib code will treat a native package multilib capable. [YOCTO #1497] [YOCTO #1498] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2011-09-28multilib.bbclass: map RDEPENDS and LINGUAS_INSTALL for image recipesDongxiao Xu
RDEPENDS of image type recipe needs to be mapped to make sure that the packages included in the image should be multilib version. Also add LINGUAS_INSTALL into MULTILIB_PACKAGE_INSTALL list. [YOCTO #1496] [YOCTO #1527] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2011-09-26sstate: No need to spew out a debug message per file, summarise insteadRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-26base.bbclass: Drop legacy code that is no longer useful/usedRichard Purdie
The code displaying console events has been handled by the bitbake UI since 1.8 so the legacy code path can be removed. If a log event is wanted, there are much better (and more complete) ways to do this so remove the EVENTLOG code too. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-26autotools.bbclass: Set the dynamic linker search path for libtool correctlyRichard Purdie
libtool obtains the search path from /etc/ld.so.conf and hardcodes /usr/lib and /lib. This results in host contamination and variable sets of RPATH values ending up in binaries. By exporting the correct values for all autotools recipes we avoid this. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-23populate_sdk_rpm: add pkgconfig(pkg-config) to the listRichard Purdie
Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-23populate_sdk_rpm: add items to the INSTALL_PROVIDESNAME_RPM listSaul Wold
This fixes a problem when building meta-toolchain-gmae, by adding items that will be provided by the host system, such as /bin/bash, /usr/bin/env and libGL.so Signed-off-by: Saul Wold <sgw@linux.intel.com> RP: libGL.so() -> libGL.so Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-22multilib.bbclass: Partially fix multlib image targetsRichard Purdie
This patch partially fixes problems when building multilib extended images such as libXX-core-image-minimal. Its not a perfect/complete solution but works much better than any previous code did. [YOCTO #1496] (partial) [YOCTO #1497] (partial) [YOCTO #1498] (partial) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-22insane.bbclass: don't warn on .so files in -nativesdk packagesDmitry Eremin-Solenikov
There is no point in warning against .so symlinks in -nativesdk packages. They have to contain such links, so shut up the warning. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-22icecc.bbclass: fix handling of nativesdk and cross-canadian packagesDmitry Eremin-Solenikov
icecc.bbclass assumed that nativesdk and cross-canadian packages should use local icecc version. Instead those packages should use target-like scheme for toolchain tarball generation. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-22icecc-create-env: rename to -nativeDmitry Eremin-Solenikov
icecc-create-env(-native) is a native package. But if it doesn't have the -native suffix, some dependency tracking stuff in oe-core (in nativesdk.bbclass) get's crazy about it, trying to generate dependencies to icecc-create-env-native packages. To fix that simply add -native suffix to this package. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-22linux-yocto: simplify kernel configuration check expressionBruce Ashfield
kernel configuration validation takes place between two files. An unprocessed configuration file (which is all the options found in the various configuration fragments) and the final .config produced by the lkc. The unprocessed configuration file's name historically is based on the name of the branch that was used to build the BSP. But with the ability to map machine names to arbitrary branches, this is no longer always true. Searching for the pattern *-config-* in the meta subdirectory will only match the config file, and frees the config validation phase from being concerned with what branch was used to build the BSP. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-22rootfs_rpm: two step installationDongxiao Xu
Firstly we install a base image. Then install those multilib packages listed in MULTILIB_IMAGE_INSTALL. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Acked-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-21debian.bbclass: Fix hardcoded "lib" referenceRichard Purdie
This patch removes a hardcoded "lib" reference from debian.bbclass allowing libdirs like "lib64" to be used. Whilst working on this area of code, a similar assumption about "bin" is removed and the regular expression compilation is moved to the parent function since it doesn't change and this will improve the speed of the code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>