summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-kernel/ktls-utils/ktls-utils/0001-systemd-Fix-out-of-tree-builds.patch28
-rw-r--r--meta-oe/recipes-kernel/ktls-utils/ktls-utils_1.3.0.bb3
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 @@
1From 496b0ffd7cd685a1adb48b150157fdea14f5f159 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 9 Dec 2025 08:53:53 -0800
4Subject: [PATCH] systemd: Fix out-of-tree builds
5
6The systemd unit file installation does not work when the build directory
7differs from the source directory because cp cannot find the source file.
8Prefix the unit files with $(srcdir) to reference files from the source tree.
9
10This fixes out-of-tree builds which use separate build directories (B != S).
11
12Upstream-Status: Submitted [https://github.com/oracle/ktls-utils/pull/134]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 systemd/Makefile.am | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/systemd/Makefile.am b/systemd/Makefile.am
19index 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"
8LIC_FILES_CHKSUM = "file://COPYING;md5=d568123389d9a12625cca2b089b1728b" 8LIC_FILES_CHKSUM = "file://COPYING;md5=d568123389d9a12625cca2b089b1728b"
9 9
10SRC_URI = "https://github.com/oracle/ktls-utils/releases/download/${BP}/${BP}.tar.gz \ 10SRC_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 "
12SRC_URI[sha256sum] = "8ee295b26b608450bc0c47ba199b34cf92f7f9ec4c81a62363e6450da76b6739" 13SRC_URI[sha256sum] = "8ee295b26b608450bc0c47ba199b34cf92f7f9ec4c81a62363e6450da76b6739"
13 14
14inherit autotools-brokensep pkgconfig systemd 15inherit autotools pkgconfig systemd
15 16
16PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" 17PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
17 18