From 75bf0b0e0490c0f206bcfbc1f4162dadd0b8e972 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 29 Mar 2020 20:12:40 -0700 Subject: 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 --- .../recipes-kernel/wireguard/wireguard-tools_0.0.20191219.bb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'meta-networking') 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 c4ddbcb0e9..267124a294 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 @@ require wireguard.inc +LIC_FILES_CHKSUM = "file://../../COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" + inherit bash-completion systemd pkgconfig -DEPENDS = "wireguard-module libmnl" +DEPENDS += "wireguard-module libmnl" -do_compile_prepend () { - cd ${S}/tools -} +S = "${WORKDIR}/WireGuard-${PV}/src/tools" do_install () { - cd ${S}/tools oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \ SYSTEMDUNITDIR="${systemd_unitdir}" \ WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \ -- cgit v1.2.3-54-g00ecf