genode/repos/pc/lib/mk/pc_wifi.inc
Josef Söntgen d5710d9de3 Move 'wifi' driver to dde_linux repository
The bulk of the driver code now lives in the 'dde_linux' repository,
which is available on all platforms, from where it can be referenced by
other repositories.

The 'wifi_drv' binary was delegated to a generic harness that includes
all configuration and management functionality shared by all wireless
device driver components, e.g., the wpa_supplicant. The code of the
device driver emulation environment is located in 'src/lib/wifi'. It
is referenced by the platform-specific driver library that resides in
the corresponding platform repository. The runtime configuration needs
to point the driver to proper driver library.

The platform-specific library is in charge of orchestrating the contrib
source utilized by the driver as well as providing the 'source.list'
and 'dep.list' files. It must include the generic library snippet
'repos/dde_linux/lib/wifi.inc' that deals with managing the emulation
environment code.

The 'repos/dde_linux/src/drivers/wifi/README' file contains more
detailed information on how to deploy the driver.

Issue #4861.
2023-05-30 12:03:32 +02:00

32 lines
919 B
PHP

REQUIRES := x86
include $(call select_from_repositories,lib/mk/wifi.inc)
TARGET_LIB_DIR := $(REP_DIR)/src/lib/pc_wifi
LIBS += pc_linux_generated pc_lx_emul
INC_DIR += $(TARGET_LIB_DIR)
SRC_CC += dtb_helper_no_dtb.cc
SRC_C += lx_emul_pci.c
SRC_CC += lx_emul/random.cc
SRC_C += $(notdir $(wildcard $(TARGET_LIB_DIR)/generated_dummies.c))
SRC_C += lx_emul/common_dummies.c
SRC_C += lx_emul/shadow/lib/kobject_uevent.c
CC_C_OPT += -I$(LX_SRC_DIR)/drivers/net/wireless/intel/iwlwifi
CC_C_OPT += -I$(LX_SRC_DIR)/drivers/net/wireless/realtek/rtlwifi
CC_C_OPT += -I$(LX_SRC_DIR)/drivers/net/wireless/realtek/rtlwifi/rtl8188ee
CC_C_OPT += -I$(LX_SRC_DIR)/drivers/net/wireless/ath/
CC_C_OPT += -I$(LX_SRC_DIR)/drivers/net/wireless/ath/ath9k
CC_C_OPT += -I$(LX_SRC_DIR)/include/linux
vpath %.c $(REP_DIR)/src/lib/pc
vpath %.cc $(REP_DIR)/src/lib/pc
vpath %.c $(TARGET_LIB_DIR)
vpath %.cc $(TARGET_LIB_DIR)