2009-12-11 17:42:01 +08:00
|
|
|
# component options
|
2009-12-18 13:25:41 +08:00
|
|
|
|
|
|
|
# finsh shell option
|
2009-12-11 17:42:01 +08:00
|
|
|
RT_USING_FINSH = True
|
2009-12-18 13:25:41 +08:00
|
|
|
|
|
|
|
# device file system options
|
2010-01-03 17:25:33 +08:00
|
|
|
RT_USING_DFS = False
|
2009-12-11 17:42:01 +08:00
|
|
|
RT_USING_DFS_EFSL = True
|
2009-12-18 13:25:41 +08:00
|
|
|
RT_USING_DFS_ELMFAT = False
|
|
|
|
RT_USING_DFS_YAFFS2 = False
|
|
|
|
|
|
|
|
# lwip options
|
2009-12-25 20:20:04 +08:00
|
|
|
RT_USING_LWIP = False
|
2009-12-11 17:42:01 +08:00
|
|
|
|
2009-12-18 13:25:41 +08:00
|
|
|
# rtgui options
|
2010-01-03 17:25:33 +08:00
|
|
|
RT_USING_RTGUI = False
|
2009-12-29 23:08:26 +08:00
|
|
|
|
|
|
|
# panel options
|
2010-01-01 17:11:09 +08:00
|
|
|
# 'PNL_A70','PNL_N35', 'PNL_T35'
|
|
|
|
RT_USING_LCD_TYPE = 'PNL_T35'
|
2009-12-29 23:08:26 +08:00
|
|
|
|
2009-12-18 13:25:41 +08:00
|
|
|
|
2009-12-11 17:42:01 +08:00
|
|
|
# toolchains options
|
|
|
|
ARCH='arm'
|
|
|
|
CPU='s3c24x0'
|
2009-12-18 13:25:41 +08:00
|
|
|
TextBase='0x30000000'
|
|
|
|
|
|
|
|
#PLATFORM = 'gcc'
|
|
|
|
#EXEC_PATH = 'd:/SourceryGCC/bin'
|
|
|
|
PLATFORM = 'armcc'
|
2009-12-25 20:20:04 +08:00
|
|
|
EXEC_PATH = 'E:/Keil'
|
2009-12-11 17:42:01 +08:00
|
|
|
BUILD = 'debug'
|
|
|
|
|
|
|
|
if PLATFORM == 'gcc':
|
|
|
|
# toolchains
|
|
|
|
PREFIX = 'arm-none-eabi-'
|
|
|
|
CC = PREFIX + 'gcc'
|
|
|
|
AS = PREFIX + 'gcc'
|
|
|
|
AR = PREFIX + 'ar'
|
|
|
|
LINK = PREFIX + 'gcc'
|
|
|
|
TARGET_EXT = 'elf'
|
|
|
|
SIZE = PREFIX + 'size'
|
|
|
|
OBJDUMP = PREFIX + 'objdump'
|
|
|
|
OBJCPY = PREFIX + 'objcopy'
|
|
|
|
|
|
|
|
DEVICE = ' -mcpu=arm920t'
|
|
|
|
CFLAGS = DEVICE + ' -DRT_USING_MINILIBC'
|
|
|
|
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
|
|
|
|
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=main.elf.map,-cref,-u,Reset_Handler -T mini2440_rom.ld'
|
|
|
|
|
|
|
|
CPATH = ''
|
|
|
|
LPATH = ''
|
|
|
|
|
|
|
|
if BUILD == 'debug':
|
|
|
|
CFLAGS += ' -O0 -gdwarf-2'
|
|
|
|
AFLAGS += ' -gdwarf-2'
|
|
|
|
else:
|
|
|
|
CFLAGS += ' -O2'
|
|
|
|
|
|
|
|
RT_USING_MINILIBC = True
|
|
|
|
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
|
|
|
|
|
|
|
|
elif PLATFORM == 'armcc':
|
|
|
|
# toolchains
|
|
|
|
CC = 'armcc'
|
|
|
|
AS = 'armasm'
|
|
|
|
AR = 'armar'
|
|
|
|
LINK = 'armlink'
|
|
|
|
TARGET_EXT = 'axf'
|
|
|
|
|
2009-12-18 13:25:41 +08:00
|
|
|
DEVICE = ' --device DARMSS9'
|
2009-12-11 17:42:01 +08:00
|
|
|
CFLAGS = DEVICE + ' --apcs=interwork'
|
|
|
|
AFLAGS = DEVICE
|
2009-12-18 13:25:41 +08:00
|
|
|
LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-mini2440.map --ro-base 0x30000000 --entry Entry_Point --first Entry_Point'
|
2009-12-11 17:42:01 +08:00
|
|
|
|
2009-12-18 13:39:46 +08:00
|
|
|
CFLAGS += ' -I"' + EXEC_PATH + '/ARM/RV31/INC"'
|
|
|
|
LFLAGS += ' --libpath "' + EXEC_PATH + '/ARM/RV31/LIB"'
|
2009-12-11 17:42:01 +08:00
|
|
|
|
|
|
|
EXEC_PATH += '/arm/bin40/'
|
|
|
|
|
|
|
|
if BUILD == 'debug':
|
|
|
|
CFLAGS += ' -g -O0'
|
|
|
|
AFLAGS += ' -g'
|
|
|
|
else:
|
|
|
|
CFLAGS += ' -O2'
|
|
|
|
|
|
|
|
RT_USING_MINILIBC = False
|
|
|
|
if RT_USING_FINSH:
|
|
|
|
LFLAGS += ' --keep __fsym_* --keep __vsym_*'
|
|
|
|
POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
|
|
|
|
|
|
|
|
elif PLATFORM == 'iar':
|
|
|
|
# toolchains
|
|
|
|
CC = 'armcc'
|
|
|
|
AS = 'armasm'
|
|
|
|
AR = 'armar'
|
|
|
|
LINK = 'armlink'
|
|
|
|
|
|
|
|
CFLAGS = ''
|
|
|
|
AFLAGS = ''
|
|
|
|
LFLAGS = ''
|