summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb
diff options
context:
space:
mode:
authorCallaghan, Dan <dan.callaghan@opengear.com>2019-09-16 10:28:11 +1000
committerKhem Raj <raj.khem@gmail.com>2019-09-16 18:24:48 -0700
commitdf10367ebd0a2432acb9ba4114c68dc0459d8fd8 (patch)
tree363e34f379ff9505b8afae92cb12ea317de245cf /meta-oe/recipes-bsp/lm_sensors/lmsensors-config_1.0.bb
parent9b2a48016aa9f204e739c205902d28e486f83585 (diff)
downloadmeta-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.bb23
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"
15S = "${WORKDIR}" 15S = "${WORKDIR}"
16 16
17PACKAGECONFIG ??= "sensord"
18PACKAGECONFIG[sensord] = ",,"
19
17RDEPENDS_${PN}-dev = "" 20RDEPENDS_${PN}-dev = ""
18 21
19do_install() { 22do_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
39PACKAGES =+ "${PN}-libsensors" 44PACKAGES =+ "${PN}-libsensors"
40 45
41# sensord logging daemon configuration 46# sensord logging daemon configuration
42PACKAGES =+ "${PN}-sensord" 47PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-sensord', '', d)}"
43 48
44# fancontrol script configuration 49# fancontrol script configuration
45PACKAGES =+ "${PN}-fancontrol" 50PACKAGES =+ "${PN}-fancontrol"
46 51
47# sensord web cgi support 52# sensord web cgi support
48PACKAGES =+ "${PN}-cgi" 53PACKAGES =+ "${@bb.utils.contains('PACKAGECONFIG', 'sensord', '${PN}-cgi', '', d)}"
49RRECOMMENDS_${PN}-cgi = "lighttpd lighttpd-module-cgi" 54RRECOMMENDS_${PN}-cgi = "lighttpd lighttpd-module-cgi"
50RDEPENDS_${PN}-cgi = "${PN}-sensord rrdtool" 55RDEPENDS_${PN}-cgi = "${PN}-sensord rrdtool"
51FILES_${PN}-cgi = "/www/*" 56FILES_${PN}-cgi = "/www/*"