diff options
author | Callaghan, Dan <dan.callaghan@opengear.com> | 2019-09-16 10:28:11 +1000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-09-16 18:24:48 -0700 |
commit | df10367ebd0a2432acb9ba4114c68dc0459d8fd8 (patch) | |
tree | 363e34f379ff9505b8afae92cb12ea317de245cf /meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb | |
parent | 9b2a48016aa9f204e739c205902d28e486f83585 (diff) | |
download | meta-openembedded-df10367ebd0a2432acb9ba4114c68dc0459d8fd8.tar.gz |
lmsensors: add a PACKAGECONFIG for sensord
We don't install the lmsensors-sensord subpackage in our images, but
our build process still has to build the subpackage and all its
dependencies, including rrdtool.
Adding a PACKAGECONFIG for sensord lets us entirely avoid building
rrdtool and its dependency chain, which reduces our image build process
by 141 tasks.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb')
-rw-r--r-- | meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb b/meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb index b0091d6574..b55bd51619 100644 --- a/meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb +++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb | |||
@@ -14,6 +14,9 @@ SRC_URI = "file://fancontrol \ | |||
14 | " | 14 | " |
15 | S = "${WORKDIR}" | 15 | S = "${WORKDIR}" |
16 | 16 | ||
17 | PACKAGECONFIG ??= "sensord" | ||
18 | PACKAGECONFIG[sensord] = ",," | ||
19 | |||
17 | RDEPENDS_${PN}-dev = "" | 20 | RDEPENDS_${PN}-dev = "" |
18 | 21 | ||
19 | do_install() { | 22 | do_install() { |
@@ -25,27 +28,29 @@ do_install() { | |||
25 | install -d ${D}${sysconfdir}/sensors.d | 28 | install -d ${D}${sysconfdir}/sensors.d |
26 | install -m 0644 ${WORKDIR}/sensors.conf ${D}${sysconfdir}/sensors.d | 29 | install -m 0644 ${WORKDIR}/sensors.conf ${D}${sysconfdir}/sensors.d |
27 | 30 | ||
28 | # Install sensord configuration file | 31 | if ${@bb.utils.contains('PACKAGECONFIG', 'sensord', 'true', 'false', d)}; then |
29 | install -m 0644 ${WORKDIR}/sensord.conf ${D}${sysconfdir} | 32 | # Install sensord configuration file |
33 | install -m 0644 ${WORKDIR}/sensord.conf ${D}${sysconfdir} | ||
30 | 34 | ||
31 | # Install sensord.cgi script and create world-writable | 35 | # Install sensord.cgi script and create world-writable |
32 | # web-accessible sensord directory | 36 | # web-accessible sensord directory |
33 | install -d ${D}/www/pages/cgi-bin | 37 | install -d ${D}/www/pages/cgi-bin |
34 | install -m 0755 ${WORKDIR}/sensord.cgi ${D}/www/pages/cgi-bin | 38 | install -m 0755 ${WORKDIR}/sensord.cgi ${D}/www/pages/cgi-bin |
35 | install -d -m a=rwxs ${D}/www/pages/sensord | 39 | install -d -m a=rwxs ${D}/www/pages/sensord |
40 | fi | ||
36 | } | 41 | } |
37 | 42 | ||
38 | # libsensors configuration | 43 | # libsensors configuration |
39 | PACKAGES =+ "${PN}-libsensors" | 44 | PACKAGES =+ "${PN}-libsensors" |
40 | 45 | ||
41 | # sensord logging daemon configuration | 46 | # sensord logging daemon configuration |
42 | PACKAGES =+ "${PN}-sensord" | 47 | PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-sensord', '', d)}" |
43 | 48 | ||
44 | # fancontrol script configuration | 49 | # fancontrol script configuration |
45 | PACKAGES =+ "${PN}-fancontrol" | 50 | PACKAGES =+ "${PN}-fancontrol" |
46 | 51 | ||
47 | # sensord web cgi support | 52 | # sensord web cgi support |
48 | PACKAGES =+ "${PN}-cgi" | 53 | PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-cgi', '', d)}" |
49 | RRECOMMENDS_${PN}-cgi = "lighttpd lighttpd-module-cgi" | 54 | RRECOMMENDS_${PN}-cgi = "lighttpd lighttpd-module-cgi" |
50 | RDEPENDS_${PN}-cgi = "${PN}-sensord rrdtool" | 55 | RDEPENDS_${PN}-cgi = "${PN}-sensord rrdtool" |
51 | FILES_${PN}-cgi = "/www/*" | 56 | FILES_${PN}-cgi = "/www/*" |