diff options
author | Changqing Li <changqing.li@windriver.com> | 2025-05-30 10:41:51 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-05-29 21:07:32 -0700 |
commit | bcaf917fa626263dfeb00396cd52a742567717aa (patch) | |
tree | cb338766a7fd58374dac6397286883814e92049c | |
parent | 5baf4b2341015eba921b149947e3e0d3ce979aa6 (diff) | |
download | meta-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.bb | 2 |
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} \ | |||
35 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" | 35 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
36 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" | 36 | PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,,systemd" |
37 | 37 | ||
38 | EXTRA_OEMAKE += 'libdir=${nonarch_libdir} LDLIBS="${LDLIBS}" enable_test=no' | 38 | EXTRA_OEMAKE += 'libdir=${nonarch_libdir} LDLIBS="${LDLIBS}" enable_test=no DRACUT_FULL_VERSION=${PV}' |
39 | 39 | ||
40 | CFLAGS:append = " -fPIC" | 40 | CFLAGS:append = " -fPIC" |
41 | LDLIBS:append:libc-musl = " -lfts" | 41 | LDLIBS:append:libc-musl = " -lfts" |