Browse Source

Merge pull request #1763 from uestczyh222/nuvoton_nuc472

[Bsp][nuvoton_nuc472]fix gcc build with gcc
Bernard Xiong 7 years ago
parent
commit
388fc1d80b
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .travis.yml
  2. 1 1
      bsp/nuvoton_nuc472/rtconfig.py

+ 1 - 0
.travis.yml

@@ -58,6 +58,7 @@ env:
   - RTT_BSP='mini2440' RTT_TOOL_CHAIN='sourcery-arm' 
 #  - RTT_BSP='mini4020' # no scons
 #  - RTT_BSP='nios_ii' # no scons
+  - RTT_BSP='nuvoton_nuc472' RTT_TOOL_CHAIN='sourcery-arm'
   - RTT_BSP='nuvoton_m05x' RTT_TOOL_CHAIN='sourcery-arm'
 #  - RTT_BSP='pic32ethernet' # no scons
   - RTT_BSP='qemu-vexpress-a9' RTT_TOOL_CHAIN='sourcery-arm'

+ 1 - 1
bsp/nuvoton_nuc472/rtconfig.py

@@ -41,7 +41,7 @@ if PLATFORM == 'gcc':
     DEVICE = ' -mcpu=cortex-m4 -mthumb -ffunction-sections -fdata-sections'
     CFLAGS = DEVICE
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
-    LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread-nuc472.map -T ldscripts/mem.ld -T ldscripts/libs.ld -T ldscripts/sections.ld '
+    LFLAGS = DEVICE + ' -nostartfiles -Wl,--gc-sections,-Map=rtthread-nuc472.map -T ldscripts/sections.ld '
 
     CPATH = ''
     LPATH = ''