arch(env): move rt-thread into env_support folder (#3025)

This commit is contained in:
Man, Jianting (Meco) 2022-01-19 16:10:54 -05:00 committed by GitHub
parent 10866ce3f0
commit bd243f3124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 2 deletions

View File

@ -6,6 +6,6 @@ from building import *
objs = []
cwd = GetCurrentDir()
objs = objs + SConscript(cwd + '/rt-thread/SConscript')
objs = objs + SConscript(cwd + '/env_support/rt-thread/SConscript')
Return('objs')

View File

@ -9,7 +9,7 @@ cwd = GetCurrentDir()
src = []
inc = []
lvgl_cwd = cwd + '/../'
lvgl_cwd = cwd + '/../../'
lvgl_src_cwd = lvgl_cwd + 'src/'
inc = inc + [lvgl_src_cwd]
@ -26,6 +26,14 @@ if GetDepend('PKG_USING_LVGL_EXAMPLES'):
src = src + Glob(os.path.join(root,dir,'*.c'))
inc = inc + [os.path.join(root,dir)]
if GetDepend('PKG_USING_LVGL_DEMOS'):
lvgl_src_cwd = lvgl_cwd + 'demos/'
inc = inc + [lvgl_src_cwd]
for root, dirs, files in os.walk(lvgl_src_cwd):
for dir in dirs:
src = src + Glob(os.path.join(root,dir,'*.c'))
inc = inc + [os.path.join(root,dir)]
LOCAL_CCFLAGS = ''
if rtconfig.PLATFORM == 'gcc': # GCC
LOCAL_CCFLAGS += ' -std=c99'