Files
luban-lite/bsp/peripheral/wireless/realtek/SConscript

56 lines
1.6 KiB
Python
Raw Normal View History

2023-08-30 16:21:18 +08:00
Import('AIC_ROOT')
Import('PRJ_KERNEL')
Import('rtconfig')
from building import *
cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = []
2024-01-27 08:47:24 +08:00
wifi_name = ''
2023-08-30 16:21:18 +08:00
CPPPATH.append(cwd + '/../../../../kernel/freertos/include/')
CPPPATH.append(cwd + '/../../../../packages/third-party/lwip/src/include/')
CPPPATH.append(cwd + '/../../../../packages/third-party/lwip/')
CPPPATH.append(cwd + '/../../../../packages/third-party/lwip/contrib/ports/rt-thread/include')
CPPPATH.append(cwd + '/include/')
CPPPATH.append(cwd + '/api/')
CPPPATH.append(cwd + '/os/customer_rtos/')
CPPPATH.append(cwd + '/os/os_dep/include/')
CPPPATH.append(cwd + '/os/wlan_lwip/')
CPPPATH.append(cwd + '/platform/include/')
CPPPATH.append(cwd + '/platform/rtwlan_bsp/')
2024-01-27 08:47:24 +08:00
if GetDepend('REALTEK_WLAN_INTF_SDIO'):
2023-08-30 16:21:18 +08:00
CPPPATH.append(cwd + '/platform/sdio/include/')
CPPPATH.append(cwd + '/platform/sdio/')
src += Glob('api/*.c')
src += Glob('api/wifi/*.c')
src += Glob('os/customer_rtos/customer_rtt_service.c')
src += Glob('os/os_dep/*.c')
src += Glob('os/wlan_lwip/*.c')
src += Glob('platform/rtwlan_bsp/*.c')
2024-01-27 08:47:24 +08:00
if GetDepend('REALTEK_WLAN_INTF_SDIO'):
2023-08-30 16:21:18 +08:00
src += Glob('platform/sdio/*.c')
src += Glob('platform/sdio/core/*.c')
2024-01-27 08:47:24 +08:00
if GetDepend('REALTEK_WLAN_INTF_USB'):
2023-08-30 16:21:18 +08:00
src += Glob('platform/usb /*.c')
2024-01-27 08:47:24 +08:00
if GetDepend('AIC_USING_RTL8733_WLAN0'):
wifi_name = 'rtl8733'
if GetDepend('AIC_USING_RTL8189_WLAN0'):
wifi_name = 'rtl8189'
lib_name = 'wlan_' + wifi_name + '_'+ rtconfig.CPUNAME
2023-08-30 16:21:18 +08:00
LIBS = [lib_name]
LIBPATH = [cwd + "/wlan_lib/"]
2024-01-27 08:47:24 +08:00
myccflags = (' -w')
group = DefineGroup(wifi_name, src, depend = ['AIC_WLAN_REALTEK'], CPPPATH = CPPPATH, LIBS=LIBS, LIBPATH=LIBPATH, LOCAL_CFLAGS=myccflags)
2023-08-30 16:21:18 +08:00
Return('group')