mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-05 05:24:13 +00:00
e7e7893f22
The driver falls in line with the previous 'legacy_wifi_drv' component where the ported wireless LAN stack and device driver is encapsulated in a library. This library in return is used by the 'Libc::Component' providing the necessary environment for the 'wpa_supplicant'. In constrast to the old driver a 'wifi' VFS plugin is in charge of initalizing the 'Lx_kit::Env' prior to executing any static constructors. Fixes #4455.
49 lines
1.1 KiB
PHP
49 lines
1.1 KiB
PHP
REQUIRES := x86
|
|
|
|
TARGET_LIB_DIR := $(REP_DIR)/src/lib/wifi
|
|
|
|
SHARED_LIB := yes
|
|
|
|
LD_OPT += --version-script=$(TARGET_LIB_DIR)/symbol.map
|
|
|
|
LIBS += base pc_linux_generated pc_lx_emul
|
|
INC_DIR := $(TARGET_LIB_DIR)
|
|
SRC_CC += wlan.cc
|
|
SRC_CC += misc.cc
|
|
SRC_CC += time.cc
|
|
SRC_CC += firmware.cc
|
|
SRC_CC += socket_call.cc
|
|
SRC_CC += random.cc
|
|
|
|
SRC_C += dummies.c
|
|
SRC_C += lx_emul.c
|
|
SRC_C += uplink.c
|
|
|
|
CC_OPT_lx_socket_call += -DKBUILD_MODNAME='"lx_socket_call"'
|
|
SRC_C += lx_socket_call.c
|
|
|
|
SRC_C += $(notdir $(wildcard $(TARGET_LIB_DIR)/generated_dummies.c))
|
|
SRC_C += pc/lx_emul/common_dummies.c
|
|
SRC_C += lx_emul/spec/x86/pci.c
|
|
|
|
CC_C_OPT += -I$(LX_SRC_DIR)/drivers/net/wireless/intel/iwlwifi
|
|
CC_C_OPT += -I$(LX_SRC_DIR)/include/linux
|
|
|
|
CC_C_OPT += -Wno-address-of-packed-member
|
|
|
|
#CC_OPT += -DCONFIG_IWLWIFI_DEBUG
|
|
|
|
vpath %.c $(TARGET_LIB_DIR)
|
|
vpath %.cc $(TARGET_LIB_DIR)
|
|
vpath pc/lx_emul/common_dummies.c $(REP_DIR)/src/lib
|
|
|
|
CUSTOM_TARGET_DEPS += $(TARGET_LIB_DIR)/symbol.map
|
|
|
|
#
|
|
# Genode C-API backends
|
|
#
|
|
|
|
SRC_CC += genode_c_api/uplink.cc
|
|
|
|
vpath genode_c_api/uplink.cc $(subst /genode_c_api,,$(call select_from_repositories,src/lib/genode_c_api))
|