The lshw Makefile defaults to a git describe if the version
variable isn't set. This may cause it to use the version
of a parent git repository like DistroKit, as lshw is extracted from a
tarball.

Signed-off-by: Sven Püschel <[email protected]>
---
 rules/lshw.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/lshw.make b/rules/lshw.make
index 1feb82dba..dbc911dfe 100644
--- a/rules/lshw.make
+++ b/rules/lshw.make
@@ -35,7 +35,7 @@ LSHW_CONF_TOOL                := NO
 # the "src" subdir avoids this.
 LSHW_SUBDIR            := src
 
-LSHW_MAKE_ENV          := $(CROSS_ENV)
+LSHW_MAKE_ENV          := $(CROSS_ENV) VERSION=$(LSHW_VERSION)
 LSHW_MAKE_OPT          := all
 LSHW_INSTALL_OPT       := install
 
-- 
2.30.2


Reply via email to