mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

Fixes build with linux kernel 4.12+ Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
28 lines
603 B
BlitzBasic
28 lines
603 B
BlitzBasic
require wireguard.inc
|
|
|
|
inherit bash-completion systemd pkgconfig
|
|
|
|
DEPENDS = "wireguard-module libmnl"
|
|
|
|
do_compile_prepend () {
|
|
cd ${S}/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)} \
|
|
WITH_BASHCOMPLETION=yes \
|
|
WITH_WGQUICK=yes \
|
|
install
|
|
}
|
|
|
|
FILES_${PN} = " \
|
|
${sysconfdir} \
|
|
${systemd_unitdir} \
|
|
${bindir} \
|
|
"
|
|
|
|
RDEPENDS_${PN} = "wireguard-module bash"
|