summaryrefslogtreecommitdiff
path: root/bsp/xuantie/xiaohui/c908/applications/SConscript
blob: 122b9f178e54fdcc2e9cc165e141abb2489ea996 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from building import *
import os

cwd     = GetCurrentDir()
CPPPATH = [cwd]
src = ['main.c', 'mnt.c',  'mmu_demo.c']

if GetDepend('RT_USING_SMP'):
    src += ['smp_test.c']

# romfs_data.c is generated by tools/mkromfs.py.
# Fall back to the placeholder image when it is absent.
if os.path.exists(os.path.join(cwd, 'romfs_data.c')):
    src += ['romfs_data.c']
else:
    src += ['romfs.c']

group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH)

Return('group')