From 62e8b843c82622a3027a28bc7baff919a26a0288 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 1 Nov 2017 21:01:53 +0800 Subject: [PATCH] [BSP] add -nostartfiles in lpc2148 bsp --- bsp/lpc2148/rtconfig.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/lpc2148/rtconfig.py b/bsp/lpc2148/rtconfig.py index 8951ea9111..2c44325803 100644 --- a/bsp/lpc2148/rtconfig.py +++ b/bsp/lpc2148/rtconfig.py @@ -39,9 +39,9 @@ if PLATFORM == 'gcc': OBJCPY = PREFIX + 'objcopy' DEVICE = ' -mcpu=arm7tdmi-s' - CFLAGS = DEVICE + ' -DRT_USING_MINILIBC' + CFLAGS = DEVICE AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' - LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lpc214x.map,-cref,-u,_start -T lpc2148_rom.ld' + LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lpc214x.map,-cref,-u,_start -T lpc2148_rom.ld -nostartfiles' CPATH = '' LPATH = ''