mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
format Kconfig and sconscript
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
f4b285dc9c
commit
9bc68d26a4
+5
-5
@@ -1,13 +1,13 @@
|
||||
menu "RT-Thread Components"
|
||||
|
||||
config RT_USING_COMPONENTS_INIT
|
||||
bool
|
||||
bool
|
||||
default n
|
||||
|
||||
|
||||
config RT_USING_USER_MAIN
|
||||
bool
|
||||
bool
|
||||
default n
|
||||
|
||||
|
||||
if RT_USING_USER_MAIN
|
||||
config RT_MAIN_THREAD_STACK_SIZE
|
||||
int "Set main thread stack size"
|
||||
@@ -15,7 +15,7 @@ config RT_USING_USER_MAIN
|
||||
default 2048
|
||||
|
||||
config RT_MAIN_THREAD_PRIORITY
|
||||
int "Set main thread priority"
|
||||
int "Set main thread priority"
|
||||
default 4 if RT_THREAD_PRIORITY_8
|
||||
default 10 if RT_THREAD_PRIORITY_32
|
||||
default 85 if RT_THREAD_PRIORITY_256
|
||||
|
||||
@@ -225,9 +225,9 @@ config RT_USING_FDT
|
||||
config FDT_USING_DEBUG
|
||||
bool "Using fdt debug function "
|
||||
default n
|
||||
|
||||
|
||||
endif
|
||||
|
||||
|
||||
config RT_USING_RTC
|
||||
bool "Using RTC device drivers"
|
||||
default n
|
||||
@@ -310,7 +310,7 @@ config RT_USING_SPI
|
||||
config RT_SFUD_USING_FLASH_INFO_TABLE
|
||||
bool "Using defined supported flash chip information table"
|
||||
default y
|
||||
|
||||
|
||||
config RT_SFUD_USING_QSPI
|
||||
bool "Using QSPI mode support"
|
||||
select RT_USING_QSPI
|
||||
@@ -346,7 +346,7 @@ config RT_USING_WDT
|
||||
config RT_USING_AUDIO
|
||||
bool "Using Audio device drivers"
|
||||
default n
|
||||
|
||||
|
||||
if RT_USING_AUDIO
|
||||
config RT_AUDIO_REPLAY_MP_BLOCK_SIZE
|
||||
int "Replay memory pool block size"
|
||||
|
||||
@@ -7,4 +7,4 @@ CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('FDT', src, depend = ['FDT_USING_DEBUG'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
Return('group')
|
||||
|
||||
@@ -7,4 +7,4 @@ CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('FDT', src, depend = ['RT_USING_FDTLIB'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
Return('group')
|
||||
|
||||
@@ -14,4 +14,4 @@ for d in list:
|
||||
objs = objs + SConscript(os.path.join(d, 'SConscript'))
|
||||
objs = objs + group
|
||||
|
||||
Return('objs')
|
||||
Return('objs')
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c')
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [cwd + '/../include']
|
||||
|
||||
if not GetDepend('RT_USING_HEAP'):
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
src = []
|
||||
CPPPATH = [cwd + '/../include']
|
||||
group = []
|
||||
|
||||
if GetDepend(['RT_USING_PIN']):
|
||||
src = src + ['pin.c']
|
||||
|
||||
|
||||
if GetDepend(['RT_USING_ADC']):
|
||||
src = src + ['adc.c']
|
||||
|
||||
|
||||
if GetDepend(['RT_USING_DAC']):
|
||||
src = src + ['dac.c']
|
||||
|
||||
if GetDepend(['RT_USING_PWM']):
|
||||
src = src + ['rt_drv_pwm.c']
|
||||
|
||||
|
||||
if GetDepend(['RT_USING_PULSE_ENCODER']):
|
||||
src = src + ['pulse_encoder.c']
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c')
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [cwd + '/../include']
|
||||
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_PHY'], CPPPATH = CPPPATH)
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = []
|
||||
src = []
|
||||
|
||||
CPPPATH = [cwd + '/../include']
|
||||
group = []
|
||||
|
||||
if GetDepend(['RT_USING_RTC']):
|
||||
src = src + ['rtc.c']
|
||||
if GetDepend(['RT_USING_ALARM']):
|
||||
if GetDepend(['RT_USING_ALARM']):
|
||||
src = src + ['alarm.c']
|
||||
if GetDepend(['RT_USING_SOFT_RTC']):
|
||||
if GetDepend(['RT_USING_SOFT_RTC']):
|
||||
src = src + ['soft_rtc.c']
|
||||
|
||||
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
Return('group')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# SConscript for sensor framework
|
||||
# SConscript for sensor framework
|
||||
|
||||
from building import *
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# SConscript for touch framework
|
||||
# SConscript for touch framework
|
||||
|
||||
from building import *
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ import os
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
objs = []
|
||||
list = os.listdir(cwd)
|
||||
objs = []
|
||||
list = os.listdir(cwd)
|
||||
|
||||
for d in list:
|
||||
path = os.path.join(cwd, d)
|
||||
|
||||
@@ -8,28 +8,28 @@ core/usbdevice.c
|
||||
""")
|
||||
|
||||
if GetDepend('RT_USB_DEVICE_CDC'):
|
||||
src += Glob('class/cdc_vcom.c')
|
||||
|
||||
src += Glob('class/cdc_vcom.c')
|
||||
|
||||
if GetDepend('RT_USB_DEVICE_HID'):
|
||||
src += Glob('class/hid.c')
|
||||
|
||||
if GetDepend('RT_USB_DEVICE_MSTORAGE'):
|
||||
src += Glob('class/mstorage.c')
|
||||
src += Glob('class/mstorage.c')
|
||||
|
||||
if GetDepend('RT_USB_DEVICE_ECM'):
|
||||
src += Glob('class/ecm.c')
|
||||
src += Glob('class/ecm.c')
|
||||
|
||||
if GetDepend('RT_USB_DEVICE_RNDIS'):
|
||||
src += Glob('class/rndis.c')
|
||||
src += Glob('class/rndis.c')
|
||||
|
||||
if GetDepend('RT_USB_DEVICE_WINUSB'):
|
||||
src += Glob('class/winusb.c')
|
||||
|
||||
src += Glob('class/winusb.c')
|
||||
|
||||
if GetDepend('RT_USB_DEVICE_AUDIO_MIC'):
|
||||
src += Glob('class/audio_mic.c')
|
||||
src += Glob('class/audio_mic.c')
|
||||
|
||||
if GetDepend('RT_USB_DEVICE_AUDIO_SPEAKER'):
|
||||
src += Glob('class/audio_speaker.c')
|
||||
src += Glob('class/audio_speaker.c')
|
||||
|
||||
CPPPATH = [cwd]
|
||||
|
||||
|
||||
@@ -10,24 +10,24 @@ core/hub.c
|
||||
""")
|
||||
|
||||
if GetDepend('RT_USBH_ADK'):
|
||||
src += Glob('class/adk.c')
|
||||
src += Glob('class/adkapp.c')
|
||||
src += Glob('class/adk.c')
|
||||
src += Glob('class/adkapp.c')
|
||||
|
||||
if GetDepend('RT_USBH_MSTORAGE'):
|
||||
src += Glob('class/mass.c')
|
||||
src += Glob('class/udisk.c')
|
||||
src += Glob('class/mass.c')
|
||||
src += Glob('class/udisk.c')
|
||||
|
||||
if GetDepend('RT_USBH_HID'):
|
||||
src += Glob('class/hid.c')
|
||||
src += Glob('class/hid.c')
|
||||
|
||||
if GetDepend('RT_USBH_HID_MOUSE'):
|
||||
src += Glob('class/umouse.c')
|
||||
src += Glob('class/umouse.c')
|
||||
|
||||
if GetDepend('RT_USBH_HID_KEYBOARD'):
|
||||
src += Glob('class/ukbd.c')
|
||||
src += Glob('class/ukbd.c')
|
||||
|
||||
CPPPATH = [cwd, cwd + '/class', cwd + '/core', \
|
||||
cwd + '/include', cwd + '../../../include']
|
||||
cwd + '/include', cwd + '../../../include']
|
||||
|
||||
group = DefineGroup('rt_usbh', src, depend = ['RT_USING_USB_HOST'], CPPPATH = CPPPATH)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
from building import *
|
||||
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c')
|
||||
src = Glob('*.c')
|
||||
CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_VIRTIO'], CPPPATH = CPPPATH)
|
||||
|
||||
@@ -18,4 +18,4 @@ if GetDepend('RT_USING_CPLUSPLUS11'):
|
||||
|
||||
group = DefineGroup('CPlusPlus', src, depend = ['RT_USING_CPLUSPLUS'], CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
Return('group')
|
||||
|
||||
@@ -6,8 +6,8 @@ cwd = GetCurrentDir()
|
||||
src = Glob('*.c') + Glob('*.cpp')
|
||||
CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('POSIX', src,
|
||||
depend = ['RT_USING_SIGNALS', 'RT_USING_PTHREADS'],
|
||||
group = DefineGroup('POSIX', src,
|
||||
depend = ['RT_USING_SIGNALS', 'RT_USING_PTHREADS'],
|
||||
CPPPATH = CPPPATH)
|
||||
|
||||
Return('group')
|
||||
|
||||
@@ -56,11 +56,11 @@ if RT_USING_LWP
|
||||
int "The unix98 PTY input buffer size"
|
||||
default 1024
|
||||
|
||||
config LWP_PTY_PTS_SIZE
|
||||
config LWP_PTY_PTS_SIZE
|
||||
int "The unix98 PTY device max num"
|
||||
default 3
|
||||
|
||||
config LWP_PTY_USING_DEBUG
|
||||
config LWP_PTY_USING_DEBUG
|
||||
bool "The unix98 PTY debug output"
|
||||
default n
|
||||
endif
|
||||
|
||||
@@ -24,7 +24,7 @@ if arch == 'risc-v':
|
||||
|
||||
if GetDepend('LWP_UNIX98_PTY'):
|
||||
# print("LWP_UNIX98_PTY")
|
||||
src += Glob('unix98pty/*.c')
|
||||
src += Glob('unix98pty/*.c')
|
||||
CPPPATH += ['unix98pty/']
|
||||
|
||||
if platform in platform_file.keys(): # support platforms
|
||||
|
||||
@@ -5,7 +5,7 @@ objs = []
|
||||
|
||||
if GetDepend('ARCH_MM_MMU'):
|
||||
cwd = GetCurrentDir()
|
||||
src = Glob('*.c') + Glob('*_gcc.S')
|
||||
src = Glob('*.c') + Glob('*_gcc.S')
|
||||
CPPPATH = [cwd]
|
||||
|
||||
group = DefineGroup('mm', src, depend = [''], CPPPATH = CPPPATH)
|
||||
|
||||
@@ -7,7 +7,7 @@ if RT_USING_RT_LINK
|
||||
choice
|
||||
prompt"use hw crc device or not"
|
||||
default RT_LINK_USING_SF_CRC
|
||||
|
||||
|
||||
config RT_LINK_USING_SF_CRC
|
||||
bool "use software crc table"
|
||||
config RT_LINK_USING_HW_CRC
|
||||
|
||||
@@ -4,7 +4,7 @@ cwd = GetCurrentDir()
|
||||
src = Split('''
|
||||
ymodem.c
|
||||
''')
|
||||
|
||||
|
||||
CPPPATH = [cwd]
|
||||
|
||||
if GetDepend('YMODEM_USING_FILE_TRANSFER'):
|
||||
|
||||
Reference in New Issue
Block a user