mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 23:12:24 +00:00
8ae5ae76fb
This commit introduces support for building the WLAN driver for ARM platforms. It makes the WPA supplicant and its support libraries available for all platforms. It also seperates the PCI parts to accommodate platforms where other bus protocols are used. Issue #4813
41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
LIB_DIR := $(REP_DIR)/src/lib/wpa_driver_nl80211
|
|
LIB_INC_DIR := $(LIB_DIR)/include
|
|
INC_DIR += $(LIB_INC_DIR)
|
|
|
|
LIBS += libc libnl libnl_include
|
|
|
|
SHARED_LIB = yes
|
|
LD_OPT += --version-script=$(LIB_DIR)/symbol.map
|
|
|
|
SRC_CC += dummies.cc ioctl.cc
|
|
SRC_CC += rfkill_genode.cc
|
|
|
|
WS_CONTRIB_DIR := $(call select_from_ports,wpa_supplicant)/src/app/wpa_supplicant
|
|
|
|
# l2_packet
|
|
SRC_C += src/l2_packet/l2_packet_linux.c
|
|
INC_DIR += $(WS_CONTRIB_DIR)/src/l2_packet
|
|
|
|
# nl80211 driver
|
|
SRC_C_drivers = drivers.c \
|
|
driver_nl80211.c \
|
|
driver_nl80211_capa.c \
|
|
driver_nl80211_event.c \
|
|
driver_nl80211_monitor.c \
|
|
driver_nl80211_scan.c \
|
|
netlink.c
|
|
|
|
SRC_C += $(addprefix src/drivers/, $(SRC_C_drivers))
|
|
INC_DIR += $(WS_CONTRIB_DIR)/src/drivers \
|
|
$(WS_CONTRIB_DIR)/src/utils \
|
|
$(WS_CONTRIB_DIR)/src
|
|
|
|
CC_OPT += -DCONFIG_DRIVER_NL80211
|
|
CC_OPT += -DCONFIG_LIBNL20
|
|
CC_OPT += -D_LINUX_SOCKET_H
|
|
|
|
vpath %.c $(WS_CONTRIB_DIR)
|
|
vpath %.cc $(LIB_DIR)
|
|
|
|
CC_CXX_WARN_STRICT =
|