2022-02-10 17:09:17 +00:00
|
|
|
REQUIRES := x86
|
|
|
|
|
|
|
|
TARGET_LIB_DIR := $(REP_DIR)/src/lib/wifi
|
|
|
|
|
|
|
|
SHARED_LIB := yes
|
|
|
|
|
|
|
|
LD_OPT += --version-script=$(TARGET_LIB_DIR)/symbol.map
|
|
|
|
|
2022-05-19 14:54:36 +00:00
|
|
|
LIBS += base jitterentropy pc_linux_generated pc_lx_emul
|
2022-02-10 17:09:17 +00:00
|
|
|
INC_DIR := $(TARGET_LIB_DIR)
|
|
|
|
SRC_CC += wlan.cc
|
|
|
|
SRC_CC += misc.cc
|
|
|
|
SRC_CC += firmware.cc
|
|
|
|
SRC_CC += socket_call.cc
|
2022-05-19 14:54:36 +00:00
|
|
|
SRC_CC += lx_emul/random.cc
|
2022-05-03 16:32:20 +00:00
|
|
|
SRC_CC += time.cc
|
2022-02-10 17:09:17 +00:00
|
|
|
|
|
|
|
SRC_C += dummies.c
|
|
|
|
SRC_C += lx_emul.c
|
2022-05-13 11:07:28 +00:00
|
|
|
SRC_C += lx_user.c
|
2022-02-10 17:09:17 +00:00
|
|
|
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))
|
2022-05-03 16:32:20 +00:00
|
|
|
SRC_C += lx_emul/common_dummies.c
|
2022-02-10 17:09:17 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2022-04-04 15:15:59 +00:00
|
|
|
# need net/rfkill/rfkill.h
|
|
|
|
CC_OPT_lx_emul += -I$(LX_SRC_DIR)
|
|
|
|
|
|
|
|
CC_C_OPT += -DCONFIG_RFKILL_INPUT
|
|
|
|
|
2022-02-10 17:09:17 +00:00
|
|
|
#CC_OPT += -DCONFIG_IWLWIFI_DEBUG
|
|
|
|
|
2022-05-03 16:32:20 +00:00
|
|
|
|
|
|
|
SRC_C += lx_emul/shadow/lib/kobject_uevent.c
|
|
|
|
vpath %.c $(REP_DIR)/src/lib/pc
|
|
|
|
vpath %.cc $(REP_DIR)/src/lib/pc
|
|
|
|
|
2022-02-10 17:09:17 +00:00
|
|
|
vpath %.c $(TARGET_LIB_DIR)
|
|
|
|
vpath %.cc $(TARGET_LIB_DIR)
|
|
|
|
|
2022-06-02 07:23:35 +00:00
|
|
|
$(LIB).lib.so: $(TARGET_LIB_DIR)/symbol.map
|
2022-02-10 17:09:17 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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))
|