From: Leonard Anderweit <l.anderweit@phytec.de>
To: <openembedded-devel@lists.openembedded.org>
Cc: <Haixiao.Yan.CN@windriver.com>, <y.moog@phytec.de>,
<upstream@lists.phytec.de>
Subject: [meta-oe][PATCH] lmsensors: Fix build without sensord
Date: Thu, 24 Apr 2025 14:50:34 +0200 [thread overview]
Message-ID: <20250424125034.73053-1-l.anderweit@phytec.de> (raw)
When building with sensord disabled (PACKAGECONFIG = ""), do_install
would fail because it tried to build sensord which was skiped in
do_compile.
Error log:
make: *** No rule to make target 'rrd.h', needed by 'prog/sensord/rrd.rd'. Stop.
Avoid building sensord in do_install by explicitly setting PROG_EXTRA.
Fixes: 86b20b84ec27 (lmsensors: Clean stale files for sensord to avoid
incorrect GCC header dependencies)
Signed-off-by: Leonard Anderweit <l.anderweit@phytec.de>
---
meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
index 9b072d70b20e..4df03420ae8f 100644
--- a/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
+++ b/meta-oe/recipes-bsp/lm_sensors/lmsensors_3.6.0.bb
@@ -49,7 +49,8 @@ S = "${WORKDIR}/git"
EXTRA_OEMAKE = 'EXLDFLAGS="${LDFLAGS}" \
MACHINE=${TARGET_ARCH} PREFIX=${prefix} MANDIR=${mandir} \
LIBDIR=${libdir} \
- CC="${CC}" AR="${AR}"'
+ CC="${CC}" AR="${AR}" \
+ PROG_EXTRA="sensors ${PACKAGECONFIG_CONFARGS}"'
do_configure:prepend() {
sed -i -e 's:^#\(PROG_EXTRA\):\1:' ${S}/Makefile
@@ -60,7 +61,7 @@ do_compile() {
sed -i -e 's/\$(LIBDIR)$/\$(LIBDIR) \$(LDFLAGS)/g' ${S}/Makefile
sed -i -e 's/\$(LIBSHSONAME) -o/$(LIBSHSONAME) \$(LDFLAGS) -o/g' \
${S}/lib/Module.mk
- oe_runmake user PROG_EXTRA="sensors ${PACKAGECONFIG_CONFARGS}"
+ oe_runmake user
}
do_install() {
--
2.43.0
next reply other threads:[~2025-04-24 12:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-24 12:50 Leonard Anderweit [this message]
2025-04-28 7:03 ` [meta-oe][PATCH] lmsensors: Fix build without sensord Haixiao Yan
2025-04-29 8:56 ` Jonas Gorski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250424125034.73053-1-l.anderweit@phytec.de \
--to=l.anderweit@phytec.de \
--cc=Haixiao.Yan.CN@windriver.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=upstream@lists.phytec.de \
--cc=y.moog@phytec.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.