mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-19 03:14:05 -05:00
drivers: Set CONFIG_LIBNL32=y automatically based on pkg-config
If the libnl version is not specified explicitly with CONFIG_LIBNL*, try to check for the most likely case today with pkg-config. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
41b747522e
commit
6bcbda4082
@ -160,6 +160,18 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef NEED_LIBNL
|
ifdef NEED_LIBNL
|
||||||
|
ifndef CONFIG_LIBNL32
|
||||||
|
ifndef CONFIG_LIBNL20
|
||||||
|
ifndef CONFIG_LIBNL_TINY
|
||||||
|
PKG_CONFIG ?= pkg-config
|
||||||
|
HAVE_LIBNL3 := $(shell $(PKG_CONFIG) --exists libnl-3.0; echo $$?)
|
||||||
|
ifeq ($(HAVE_LIBNL3),0)
|
||||||
|
CONFIG_LIBNL32=y
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_LIBNL32
|
ifdef CONFIG_LIBNL32
|
||||||
DRV_LIBS += -lnl-3
|
DRV_LIBS += -lnl-3
|
||||||
DRV_LIBS += -lnl-genl-3
|
DRV_LIBS += -lnl-genl-3
|
||||||
|
Loading…
Reference in New Issue
Block a user