SConscript 829 字节
Newer Older
A
abbcc 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import os
import rtconfig
from building import *

Import('SDK_LIB')

cwd = GetCurrentDir()

# add general drivers
src = Split('''
board.c
''')

path =  [cwd]

startup_path_prefix = SDK_LIB

A
Aligagago 已提交
18
if rtconfig.PLATFORM in ['armcc', 'armclang']:
19 20
    src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/arm/startup_apm32f10x_hd.s']

A
Aligagago 已提交
21
if rtconfig.PLATFORM in ['iccarm']:
22 23
    src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/iar/startup_apm32f10x_hd.s']

A
Aligagago 已提交
24
if rtconfig.PLATFORM in ['gcc']:
25
    src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/gcc/startup_apm32f10x_hd.S']
A
abbcc 已提交
26 27

# You can select chips from the list above
28
CPPDEFINES = ['APM32F10X_HD']
A
abbcc 已提交
29 30
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
Return('group')