lmsensors: support package lmsensors

Recipe lmsensors has multiple packages, but do not provide package lmsensors.
The fix will allow package lmsensors empty, and it runtime depends on other
sub packages. It is convenience for Yocto new user to install all of them
by specifying one package, especially the package name is the same with
recipe name

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Hongxu Jia 2019-07-25 14:31:10 +08:00 committed by Khem Raj
parent f69833e658
commit 7aeac572de

View File

@ -70,6 +70,18 @@ do_install() {
RPROVIDES_${PN}-dbg += "${PN}-libsensors-dbg ${PN}-sensors-dbg ${PN}-sensord-dbg ${PN}-isatools-dbg"
ALLOW_EMPTY_${PN} = "1"
RDEPENDS_${PN} += " \
${PN}-libsensors \
${PN}-sensors \
${PN}-sensord \
${PN}-fancontrol \
${PN}-sensorsdetect \
${PN}-sensorsconfconvert \
${PN}-pwmconfig \
${PN}-isatools \
"
# libsensors packages
PACKAGES =+ "${PN}-libsensors ${PN}-libsensors-dev ${PN}-libsensors-staticdev ${PN}-libsensors-doc"