diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-03-29 20:12:40 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-03-29 20:15:18 -0700 |
commit | 75bf0b0e0490c0f206bcfbc1f4162dadd0b8e972 (patch) | |
tree | 59ce65a3dbccd8ccc06e18d7e004e7ffe18f2f81 /meta-networking | |
parent | 4cb98122778521aac4274099772a20448b051a07 (diff) | |
download | meta-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.bb | 9 |
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 @@ | |||
1 | require wireguard.inc | 1 | require wireguard.inc |
2 | 2 | ||
3 | LIC_FILES_CHKSUM = "file://../../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
4 | |||
3 | inherit bash-completion systemd pkgconfig | 5 | inherit bash-completion systemd pkgconfig |
4 | 6 | ||
5 | DEPENDS = "wireguard-module libmnl" | 7 | DEPENDS += "wireguard-module libmnl" |
6 | 8 | ||
7 | do_compile_prepend () { | 9 | S = "${WORKDIR}/WireGuard-${PV}/src/tools" |
8 | cd ${S}/tools | ||
9 | } | ||
10 | 10 | ||
11 | do_install () { | 11 | do_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)} \ |