summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2025-05-30 10:41:51 +0800
committerKhem Raj <raj.khem@gmail.com>2025-05-29 21:07:32 -0700
commitbcaf917fa626263dfeb00396cd52a742567717aa (patch)
treecb338766a7fd58374dac6397286883814e92049c
parent5baf4b2341015eba921b149947e3e0d3ce979aa6 (diff)
downloadmeta-openembedded-bcaf917fa626263dfeb00396cd52a742567717aa.tar.gz
dracut: set DRACUT_FULL_VERSION to PV
RACUT_FULL_VERSION is conditional assigned in Makefile as below: DRACUT_FULL_VERSION ?= $(shell env GIT_CEILING_DIRECTORIES=$(CURDIR)/.. git describe --tags --always 2>/dev/null || :) When build from git shallow tarball, since tag info is not included, 956c087 is returned. This will make dracut version in dracut.pc different with build from git repo. Set DRACUT_FULL_VERSION to PV, to improve reproducibility for this recipe, and also fix the version mismatch warning Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-initramfs/recipes-devtools/dracut/dracut_106.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_106.bb b/meta-initramfs/recipes-devtools/dracut/dracut_106.bb
index b70ee4baeb..871119521f 100644
--- a/meta-initramfs/recipes-devtools/dracut/dracut_106.bb
+++ b/meta-initramfs/recipes-devtools/dracut/dracut_106.bb
@@ -35,7 +35,7 @@ EXTRA_OECONF = "--prefix=${prefix} \
35PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" 35PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
36PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" 36PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd"
37 37
38EXTRA_OEMAKE += 'libdir=${nonarch_libdir} LDLIBS="${LDLIBS}" enable_test=no' 38EXTRA_OEMAKE += 'libdir=${nonarch_libdir} LDLIBS="${LDLIBS}" enable_test=no DRACUT_FULL_VERSION=${PV}'
39 39
40CFLAGS:append = " -fPIC" 40CFLAGS:append = " -fPIC"
41LDLIBS:append:libc-musl = " -lfts" 41LDLIBS:append:libc-musl = " -lfts"