summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-03-29 20:12:40 -0700
committerKhem Raj <raj.khem@gmail.com>2020-03-29 20:15:18 -0700
commit75bf0b0e0490c0f206bcfbc1f4162dadd0b8e972 (patch)
tree59ce65a3dbccd8ccc06e18d7e004e7ffe18f2f81 /meta-networking
parent4cb98122778521aac4274099772a20448b051a07 (diff)
downloadmeta-openembedded-75bf0b0e0490c0f206bcfbc1f4162dadd0b8e972.tar.gz
wireguard-tools: Ensure make clean target is run properly
When S is pointing to a level up, it calls clean target which also tries to clean the module build objects, which causes make clean to misnehave since the env is not set to build module and it tries to reach out to /lib/modules dir on host Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-kernel/wireguard/wireguard-tools_0.0.20191219.bb9
1 files changed, 4 insertions, 5 deletions
diff --git a/meta-networking/recipes-kernel/wireguard/wireguard-tools_0.0.20191219.bb b/meta-networking/recipes-kernel/wireguard/wireguard-tools_0.0.20191219.bb
index c4ddbcb0e..267124a29 100644
--- a/meta-networking/recipes-kernel/wireguard/wireguard-tools_0.0.20191219.bb
+++ b/meta-networking/recipes-kernel/wireguard/wireguard-tools_0.0.20191219.bb
@@ -1,15 +1,14 @@
1require wireguard.inc 1require wireguard.inc
2 2
3LIC_FILES_CHKSUM = "file://../../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4
3inherit bash-completion systemd pkgconfig 5inherit bash-completion systemd pkgconfig
4 6
5DEPENDS = "wireguard-module libmnl" 7DEPENDS += "wireguard-module libmnl"
6 8
7do_compile_prepend () { 9S = "${WORKDIR}/WireGuard-${PV}/src/tools"
8 cd ${S}/tools
9}
10 10
11do_install () { 11do_install () {
12 cd ${S}/tools
13 oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ 12 oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
14 SYSTEMDUNITDIR="${systemd_unitdir}" \ 13 SYSTEMDUNITDIR="${systemd_unitdir}" \
15 WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \ 14 WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \