mirror of
https://github.com/flyingcys/realtek_ameba.git
synced 2026-07-13 05:45:39 +00:00
合并scons编译脚本
This commit is contained in:
parent
7f4971152a
commit
845e33bfaf
9 changed files with 89 additions and 207 deletions
|
|
@ -1,15 +0,0 @@
|
|||
# RT-Thread building script for bridge
|
||||
|
||||
import os
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
list = os.listdir(cwd)
|
||||
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
objs = objs + SConscript(os.path.join(d, 'SConscript'))
|
||||
|
||||
Return('objs')
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
# RT-Thread building script for bridge
|
||||
|
||||
import os
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
list = os.listdir(cwd)
|
||||
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
if os.path.isfile(os.path.join(path, 'SConscript')):
|
||||
objs = objs + SConscript(os.path.join(d, 'SConscript'))
|
||||
|
||||
Return('objs')
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
import rtconfig
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
# get current directory
|
||||
cwd = GetCurrentDir()
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
path =[cwd + '/platform',
|
||||
cwd + '/']
|
||||
|
||||
src = []
|
||||
if GetDepend(['RT_USING_LWIP']):
|
||||
src += Split('''
|
||||
wifi/wifi_ind.c
|
||||
wifi/wifi_util.c
|
||||
wifi/wifi_promisc.c
|
||||
wifi/rtw_wpa_supplicant/wpa_supplicant/wifi_eap_config.c
|
||||
''')
|
||||
|
||||
path += [cwd + '/wifi',
|
||||
cwd + '/wifi/rtw_wpa_supplicant/src',
|
||||
cwd + '/../drivers/wlan/realtek/include',
|
||||
cwd + '/../drivers/wlan/realtek/src/osdep',
|
||||
cwd + '/../drivers/wlan/realtek/wlan_ram_map/rom',
|
||||
cwd + '/../network/ssl/polarssl-1.3.8/include',
|
||||
cwd + '/../network/ssl/ssl_ram_map/rom']
|
||||
|
||||
group = DefineGroup('ameba_wifi', src, depend = [], CPPPATH = path)
|
||||
|
||||
Return('group')
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
import rtconfig
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
# get current directory
|
||||
cwd = GetCurrentDir()
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
src = Split('''
|
||||
targets/hal/rtl8711b/analogin_api.c
|
||||
targets/hal/rtl8711b/dma_api.c
|
||||
targets/hal/rtl8711b/efuse_api.c
|
||||
targets/hal/rtl8711b/flash_api.c
|
||||
targets/hal/rtl8711b/gpio_api.c
|
||||
targets/hal/rtl8711b/gpio_irq_api.c
|
||||
targets/hal/rtl8711b/i2c_api.c
|
||||
targets/hal/rtl8711b/i2s_api.c
|
||||
targets/hal/rtl8711b/nfc_api.c
|
||||
targets/hal/rtl8711b/pinmap.c
|
||||
targets/hal/rtl8711b/pinmap_common.c
|
||||
targets/hal/rtl8711b/port_api.c
|
||||
targets/hal/rtl8711b/pwmout_api.c
|
||||
targets/hal/rtl8711b/rtc_api.c
|
||||
targets/hal/rtl8711b/serial_api.c
|
||||
targets/hal/rtl8711b/sleep.c
|
||||
targets/hal/rtl8711b/spi_api.c
|
||||
targets/hal/rtl8711b/sys_api.c
|
||||
targets/hal/rtl8711b/timer_api.c
|
||||
targets/hal/rtl8711b/us_ticker.c
|
||||
targets/hal/rtl8711b/us_ticker_api.c
|
||||
targets/hal/rtl8711b/wait_api.c
|
||||
targets/hal/rtl8711b/wdt_api.c
|
||||
''')
|
||||
|
||||
path = [cwd + '/targets/hal/rtl8711b',
|
||||
cwd + '/hal',
|
||||
cwd + '/hal_ext',
|
||||
cwd + '/api']
|
||||
|
||||
group = DefineGroup('mbed', src, depend = [], CPPPATH = path,)
|
||||
|
||||
Return('group')
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
import rtconfig
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
# get current directory
|
||||
cwd = GetCurrentDir()
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
src = Split('''
|
||||
os_dep/osdep_service.c
|
||||
''')
|
||||
|
||||
path = [cwd + '/os_dep/include',
|
||||
cwd + '/freertos',
|
||||
cwd + '/freertos/freertos_v8.1.2/Source/include']
|
||||
|
||||
if rtconfig.CROSS_TOOL == 'gcc':
|
||||
path += [cwd + '/freertos/freertos_v8.1.2/Source/portable/GCC/ARM_CM4F']
|
||||
elif rtconfig.CROSS_TOOL == 'iar':
|
||||
path += [cwd + '/freertos/freertos_v8.1.2/Source/portable/IAR/ARM_CM4F']
|
||||
|
||||
group = DefineGroup('os_dep', src, depend = [''], CPPPATH = path)
|
||||
|
||||
Return('group')
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
import rtconfig
|
||||
Import('RTT_ROOT')
|
||||
from building import *
|
||||
|
||||
# get current directory
|
||||
cwd = GetCurrentDir()
|
||||
|
||||
# The set of source files associated with this SConscript file.
|
||||
src = Split("""
|
||||
realtek/8711b/cmsis/device/system_8195a.c
|
||||
realtek/8711b/fwlib/ram_lib/rtl8710b_pinmapcfg.c
|
||||
realtek/8711b/fwlib/ram_lib/rtl8710b_intfcfg.c
|
||||
realtek/8711b/app/monitor/ram/rtl_consol.c
|
||||
realtek/8711b/app/monitor/ram/monitor.c
|
||||
""")
|
||||
|
||||
path = [cwd,
|
||||
cwd + '/realtek/8711b/cmsis',
|
||||
cwd + '/realtek/8711b/misc',
|
||||
cwd + '/realtek/8711b/fwlib/include',
|
||||
cwd + '/realtek/8711b/cmsis/device',
|
||||
cwd + '/realtek/8711b/swlib/rtl_lib',
|
||||
cwd + '/realtek/8711b/app/monitor/include',
|
||||
cwd + '/realtek/8711b/swlib/std_lib/include',
|
||||
cwd + '/realtek/8711b/swlib/std_lib/libc/rom/string']
|
||||
|
||||
CPPDEFINES = ['CONFIG_PLATFORM_8711B']
|
||||
|
||||
LIB = ['lib_platform', 'lib_rtlstd', 'lib_wlan', 'lib_wps']
|
||||
if rtconfig.CROSS_TOOL == 'gcc':
|
||||
LIB_PATH = [cwd + '/realtek/8711b/misc/bsp/lib/common/GCC']
|
||||
LIB += ['lib_dct', '-lnosys']
|
||||
elif rtconfig.CROSS_TOOL == 'iar':
|
||||
LIB_PATH = [cwd + '/realtek/8711b/misc/bsp/lib/common/IAR']
|
||||
CPPDEFINES += ['__IEEE_LITTLE_ENDIAN']
|
||||
|
||||
group = DefineGroup('soc_8711b', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES, LIBS = LIB, LIBPATH = LIB_PATH)
|
||||
|
||||
Return('group')
|
||||
Loading…
Add table
Add a link
Reference in a new issue