diff options
| -rw-r--r-- | meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-systemd-Fix-out-of-tree-builds.patch | 28 | ||||
| -rw-r--r-- | meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb | 3 |
2 files changed, 30 insertions, 1 deletions
diff --git a/meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-systemd-Fix-out-of-tree-builds.patch b/meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-systemd-Fix-out-of-tree-builds.patch new file mode 100644 index 0000000000..a5a46ea8d3 --- /dev/null +++ b/meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-systemd-Fix-out-of-tree-builds.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 496b0ffd7cd685a1adb48b150157fdea14f5f159 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 9 Dec 2025 08:53:53 -0800 | ||
| 4 | Subject: [PATCH] systemd: Fix out-of-tree builds | ||
| 5 | |||
| 6 | The systemd unit file installation does not work when the build directory | ||
| 7 | differs from the source directory because cp cannot find the source file. | ||
| 8 | Prefix the unit files with $(srcdir) to reference files from the source tree. | ||
| 9 | |||
| 10 | This fixes out-of-tree builds which use separate build directories (B != S). | ||
| 11 | |||
| 12 | Upstream-Status: Submitted [https://github.com/oracle/ktls-utils/pull/134] | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | systemd/Makefile.am | 2 +- | ||
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 17 | |||
| 18 | diff --git a/systemd/Makefile.am b/systemd/Makefile.am | ||
| 19 | index d2f8e25..d6435ad 100644 | ||
| 20 | --- a/systemd/Makefile.am | ||
| 21 | +++ b/systemd/Makefile.am | ||
| 22 | @@ -24,5 +24,5 @@ MAINTAINERCLEANFILES = Makefile.in | ||
| 23 | if INSTALL_SYSTEMD | ||
| 24 | install-data-hook: $(unit_files) | ||
| 25 | mkdir -p $(DESTDIR)/$(unitdir) | ||
| 26 | - cp $(unit_files) $(DESTDIR)/$(unitdir) | ||
| 27 | + cp $(addprefix $(srcdir)/,$(unit_files)) $(DESTDIR)/$(unitdir) | ||
| 28 | endif | ||
diff --git a/meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb b/meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb index 748e1cae99..47e1f7f091 100644 --- a/meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb +++ b/meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb | |||
| @@ -8,10 +8,11 @@ LICENSE = "GPL-2.0-only" | |||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=d568123389d9a12625cca2b089b1728b" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=d568123389d9a12625cca2b089b1728b" |
| 9 | 9 | ||
| 10 | SRC_URI = "https://github.com/oracle/ktls-utils/releases/download/${BP}/${BP}.tar.gz \ | 10 | SRC_URI = "https://github.com/oracle/ktls-utils/releases/download/${BP}/${BP}.tar.gz \ |
| 11 | file://0001-systemd-Fix-out-of-tree-builds.patch \ | ||
| 11 | " | 12 | " |
| 12 | SRC_URI[sha256sum] = "8ee295b26b608450bc0c47ba199b34cf92f7f9ec4c81a62363e6450da76b6739" | 13 | SRC_URI[sha256sum] = "8ee295b26b608450bc0c47ba199b34cf92f7f9ec4c81a62363e6450da76b6739" |
| 13 | 14 | ||
| 14 | inherit autotools-brokensep pkgconfig systemd | 15 | inherit autotools pkgconfig systemd |
| 15 | 16 | ||
| 16 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | 17 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" |
| 17 | 18 | ||
