summaryrefslogtreecommitdiffstats
path: root/meta-oe/classes/systemd.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* systemd.bbclass: move to meta-systemdAndreas Müller2012-07-161-207/+0
|
* systemd.bbclass: extract SYSTEMD_SERVICE properlyAndreas Müller2012-06-051-5/+9
| | | | | | | | | | | | | | | | | | | To set service files the following syntax is allowed: SYSTEMD_SERVICE = <service_file> or SYSTEMD_SERVICE_{<systemd_package_name>} = <service_file> A function get_package_var was introduced to handle all use-cases [1] properly. Build tested / buildhistory checks [1] http://lists.linuxtogo.org/pipermail/openembedded-devel/2012-May/039870.html Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Acked-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
* systemd.bbclass: remove unused codeAndreas Müller2012-06-051-5/+0
| | | | | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
* Revert "systemd.bbclass: drop postrm, use prerm instead"Koen Kooi2012-05-211-2/+13
| | | | | | This removed the $D check, which should stay This reverts commit 637cb7e3d2cfdc74d239a4257e6f3477aa17da4e.
* systemd.bbclass: drop postrm, use prerm insteadAndreas Oberritter2012-05-171-13/+2
| | | | | | | | | | | | | * Calling "systemctl disable" from postrm is too late and causes the following error: | Failed to issue method call: No such file or directory * Messing with $D is not needed in *rm scripts. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
* systemd.bbclass: allow recipe to inherit systemd with empty SYSTEMD_SERVICEMartin Jansa2012-04-261-6/+5
| | | | | | | | | * 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>
* systemd bbclass: allow recipes to silence WARNING during parsing when ↵Koen Kooi2012-04-181-1/+4
| | | | | | ${PN}-systemd is unwanted Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
* systemd.bbclass: remove systemd_unitdir it is set in oe-coreAndreas Müller2012-03-231-2/+0
| | | | | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
* systemd.bbclass: fix regression caused by c9f5703adedOtavio Salvador2012-02-251-5/+6
| | | | | | | | 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>
* systemd.bbclass: do not mangle PACKAGES variable in native, nativesdk and crossOtavio Salvador2012-02-241-36/+36
| | | | | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
* systemd.bbclass: automatically extend RDEPENDS for *-systemd packagesAndreas Müller2012-02-231-4/+17
| | | | | | | | * 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>
* systemd.bbclass: automatically extend FILES_* for systemd packagesAndreas Müller2012-02-231-0/+60
| | | | | | | | | | | * 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>
* systemd.bbclass: run code in populate_packages_prepend only if ${D} existsAndreas Müller2012-02-231-2/+4
| | | | | | | | | | 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>
* systemd.bbclass: automatically install all *.service and *.socket supplied ↵Andreas Müller2012-02-231-0/+11
| | | | | | | in recipe's SRC_URI Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
* systemd.bbclass: automatically create packages set in SYSTEMD_PACKAGESAndreas Müller2012-02-231-0/+9
| | | | | | 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>
* systemd.bbclass: cosmeticsAndreas Müller2012-02-231-8/+7
| | | | | | 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>
* systemd.bbclass: enhance checks for SYSTEMD_PACKAGES and SYSTEMD_SERVICEAndreas Müller2012-02-231-8/+39
| | | | | | | | | | | | | | | | | | | | 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>
* systemd.bbclass: introduce systemd_unitdirAndreas Müller2012-02-231-0/+2
| | | | | | | | | 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>
* Revert "systemd.bbclass: depends on systemd"Otavio Salvador2012-02-201-1/+1
| | | | This reverts commit c029d4a268de1ac7076fbeb9e337e96fdb1b226d.
* systemd.bbclass: depends on systemdOtavio Salvador2012-02-011-1/+1
| | | | | | | | | 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>
* systemd.bbclass: stop using SYSTEMDPN to rdepends additionOtavio Salvador2011-11-081-4/+6
| | | | | | | | | 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>
* systemd.bbclass: make easier handle service enablingOtavio Salvador2011-11-041-0/+78
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>