aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/classes
AgeCommit message (Collapse)Author
2012-09-02systemd.bbclass: remove unused codeAndreas Müller
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Eric Bénard <eric@eukrea.com>
2012-07-13kernel.bbclass: pass KERNEL_VERSION to depmod calls in postinstMartin Jansa
* without this, kernel upgrades where KERNEL_VERSION is changed e.g. 3.4.2 -> 3.4.3 generate .dep for running 3.4.2 and after reboot user ends up without any module loaded to make it worse after reboot nothing is upgraded to trigger another kernel(-module) postinst to generate .dep for now running 3.4.3 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Eric Bénard <eric@eukrea.com>
2012-05-09kernel.bbclass: move kernel-vmlinux up in PACKAGESChristopher Larson
If KERNEL_IMAGETYPE is vmlinux, the expectation is most likely that there will be no kernel image package, but we still want a vmlinux package for debugging, so move kernel-vmlinux in front of kernel-image in PACKAGES. Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Eric Bénard <eric@eukrea.com>
2012-04-27kernel bbclass: recreate uImage unless KEEPUIMAGE is setKoen Kooi
The intent of the uImage code in this class includes the following 1) be able to specify custom load addresses without needing to patch the kernel 2) add better information to the uImage description field The current state is a NOP anyway, the kernel will always build a uImage when you tell it to 'make uImage'. Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-04-26systemd.bbclass: allow recipe to inherit systemd with empty SYSTEMD_SERVICEMartin Jansa
* I have use case where common recipe does inherit systemd and only some BSP's are bbappending some SERVICEs to it * install was moved intentionaly, so that /lib/systemd/system is not created if there is no .service file (causing QA Warning about unpackaged dir) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26kernel: Fix packaging issueSaul Wold
Remove /etc since it is empty, when creating a machine that does not deliver any module config files, the /etc is empty and is then warned about not being shipped, so we remove it. This occurs in the routerstationpro with the following warning: WARNING: For recipe linux-yocto, the following files/directories were installed but not shipped in any package: WARNING: /etc Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26{kernel, module}.bbclass: don't run depmod for module packages during do_rootfsAndreas Oberritter
* depmod already gets executed by pkg_postinst_kernel-image. * If you build a module using module.bbclass, pkg_postinst returns 1 in do_rootfs, causing pkg_postinst to run again on first boot. To improve this situation, I copied pkg_postinst from kernel.bbclass to module.bbclass. This was rejected by Koen, because he doesn't like the code from kernel.bblcass, which uses ${STAGING_DIR_KERNEL}. Richard then suggested that calling depmod during do_rootfs wasn't necessary at all, because it already gets done by kernel-image. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-26kernel.bbclass: resync with oe-core versionMartin Jansa
* 4 spaces for anonymous python * don't recreate uImage if it already exists Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-04-18systemd bbclass: allow recipes to silence WARNING during parsing when ↵Koen Kooi
${PN}-systemd is unwanted Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-29kernel.bbclass: unify white spacesMartin Jansa
* indentation was with spaces and tabs, unify to use tabs instead of spaces, because "python populate_packages" expects tabs (or 8 spaces) and we're doing populate_packages_preppend here Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-03-29kernel.bbclass: Allow do_compile_kernelmodules to use PARALLEL_MAKERichard Purdie
Without this we don't take advantage of any configured multiple CPU cores which seems a shame. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-03-29kernel.bbclass: touch .scmversion also in ${S}Martin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-03-26kernel.bbclass: don't create /etc/modutils/*Martin Jansa
* update-modules was updated to read /etc/modules-load.d/*.conf Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-03-26kernel.bbclass: use symlinks for modutils filesMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-03-26kernel.bbclass: fix extra + in kernelreleaseMartin Jansa
* see http://lists.linuxtogo.org/pipermail/openembedded-core/2011-December/014308.html Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-03-26kernel.bbclass: use better number for KERNEL_PRIORITYMartin Jansa
* there is no upgrade from 2.6.X to 3.X.Y last part of PV is used as kernel priority for u-a, but X is usually higher then Y in 3.x.x so use all 3 parts in one bigger number * and make it weak assignment if this scheme doesn't work for some recipe Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-03-23kernel.bbclass: populate /etc/modules-load.d/ with module_autoload entries tooMartin Jansa
* /etc/modules-load.d/foo.conf is used by systemd like /etc/modutils/foo was with sysvinit Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-23kernel.bbclass: import QA warning fix for unpackaged files from oe-coreMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-23kernel.bbclass: import s/1/True/ changes from oe-core versionMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-03-23systemd.bbclass: remove systemd_unitdir it is set in oe-coreAndreas Müller
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-25systemd.bbclass: fix regression caused by c9f5703adedOtavio Salvador
The parsing condition was broken causing the packages not being expanded to include <PN>-systemd packages automatically. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-24systemd.bbclass: do not mangle PACKAGES variable in native, nativesdk and crossOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23systemd.bbclass: automatically extend RDEPENDS for *-systemd packagesAndreas Müller
* append systemd functionalty moved into systemd_add_rdepends * append base-pgk in case receipe does not set RDEPENDS for *-systemd package Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23systemd.bbclass: automatically extend FILES_* for systemd packagesAndreas Müller
* Add files found in SYSTEMD_SERVICE and add service files referenced by 'Also=' (and 'Conflicts=' in case of one service for links to /dev/null) recursively. * For *.socket files the corresponding '*.service' and '*@.service are packed * In case a file set in SYSTEMD_SERVICE does not exist, build is aborted with an error message. Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23systemd.bbclass: run code in populate_packages_prepend only if ${D} existsAndreas Müller
All further manipulations need to be performed only once. This modication avoids unwanted behaviour when inheriting rm_work.bbclass [1] [1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-February/038067.html Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23systemd.bbclass: automatically install all *.service and *.socket supplied ↵Andreas Müller
in recipe's SRC_URI Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23systemd.bbclass: automatically create packages set in SYSTEMD_PACKAGESAndreas Müller
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23systemd.bbclass: cosmeticsAndreas Müller
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and SYSTEMD_SERVICEAndreas Müller
after recipe parsing the following plausibilities are checked: * ERROR if empty SYSTEMD_PACKAGES * ERROR if SYSTEMD_PACKAGES entry does not contain '-systemd' AND package_name != ${PN} * ERROR if SYSTEMD_PACKAGES entry contains '-systemd' but entry without '-systemd' (base pkg) does not exist * WARNING if SYSTEMD_PACKAGES containing ${PN} to force package maintainers to split out systemd-specific files into *-systemd * error if SYSTEMD_SERVICE(_<systemd-package>) is empty for one or more entries in SYSTEMD_PACKAGES The code in populate_packages_prepend to set SYSTEMD_PACKAGES to ${PN} as default was removed. Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-23systemd.bbclass: introduce systemd_unitdirAndreas Müller
Follow suggestion in [1] [1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-February/038018.html Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-22meta-initramfs: import klibc recipe and bbclass from meta-oeAndrea Adami
Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-02-20Revert "systemd.bbclass: depends on systemd"Otavio Salvador
This reverts commit c029d4a268de1ac7076fbeb9e337e96fdb1b226d.
2012-02-01systemd.bbclass: depends on systemdOtavio Salvador
Packages that uses the systemd class need to have systemd build otherwise they might fail to detect systemd as available or fail to generate rootfs. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-09kernel.bbclass: fix pkg_postinst and pkg_postrm (from oe-core)Andrea Adami
* Symptom: kernel symlink in /boot is not created. * Rename in order to create the expected files: * /var/lib/opkg/info/kernel-3.1.4.postinst * /var/lib/opkg/info/kernel-3.1.4.postrm Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-12-11kernel bbclass: sync with OE-coreKoen Kooi
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-12-06testlab: only use basename for license info to avoid diff churnKoen Kooi
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-25testlab bbclass: output version info on all layersKoen Kooi
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-12classes: remove duplicate classesKoen Kooi
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-08systemd.bbclass: stop using SYSTEMDPN to rdepends additionOtavio Salvador
The systemd runtime dependency needs to be add dynamically onto each package that has the postinst generate thus removing the SYSTEMDPN use et all. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-04systemd.bbclass: make easier handle service enablingOtavio Salvador
This generates the postinst/prerm/postrm routines for the package specified in SYSTEMD_PACKAGES avoding code duplication and centralizing the handling of it for easy maintainence work. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-02mime.bbclass: Add --disable-update-mimedb to EXTRA_OECONFAndreas Müller
keep recipes from building files not intended to pack and causing QA warnings [1] [1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-November/035954.html Signed-off-by: Andreas Müller <schnitzeltony@gmx.de> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-12glx-use-tls: moved to oe-core with mesa recipesMartin Jansa
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-09-04gitpkgv: add support SRCREV_FORMATOtavio Salvador
In case of multiple GIT repositories are used, SRCREV_FORMAT will be respected while filling it with the proper GIT information to each revision. This new feature needed heavy changes in the code so basically it was a rewrote version that keeps compatibility with previous usage. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-22kernel.bbclass: save kernel image name into $kerneldirOtavio Salvador
Save the kernel image name into sysroot so it can be used during image build if need. This is used by O.S. Systems products and probably useful to others. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-08-22kernel.bbclass: fix spacing to reduce delta between oe-core and meta-oeOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-08-17klibc.bbclass: shared include for building against klibcAndrea Adami
* from org.openembedded.dev * reworked in meta-zaurus * added missing quotes * explain more clearly why the compiler/linker flags are reset Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-05kernel: copy defconfig to {B} vs {S}Bruce Ashfield
For kernel's that use a split source/object build the copy of defconfig to {S} in the base kernel class is problematic. The previous solution for this was to override the do_configure of the base kernel class in a subclass. While this is still a viable/valid option, it does mean that changes to the base do_configure will be missed. The solution to this is to copy a defconfig to {B} which is typically the same as {S}, so most kernel recipes won't see or care about this change. With this change in place, linux-yocto.bbclass can drop its override of do_configure. Tested with linux-yocto and oe linux recipes. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-05kernel,module-base.bbclass: Improve KERNEL_LD & KERNEL_AR variablesNitin A Kamble
KERNEL_LD was using ${LD} in it's definition, which is not correct for different ABIs such as x32 or i386 on x86_64 machine. This brings it into sync with the corresponding gcc settings, likewise the same with the KERNEL_AR variable. [RP: Updated commit message] Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-05kernel.bbcalss: Added do_savedefconfig task.Noor, Ahsan
* Added do_savedefconfig task to kernel.bbclass. Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-05kernel,cml1.bbclass: Move menuconfig to cml1Noor, Ahsan
* The menuconfig target exists in places other than the kernel that use kernel style config. Signed-off-by: Noor, Ahsan <noor_ahsan@mentor.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>