summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-05-28 16:15:15 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-05-28 16:15:15 +0200
commitd2e75eee1d017a7632faf017f40780a5255897f5 (patch)
tree0bca544eb7ec4a8da4da6c3ed6faaf0d02411bca /SConstruct
parent422a7785c423d64b97f9ae06baf19921a859e380 (diff)
Started rewrite from scratch.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 4 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index e95673e..a13059a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -13,7 +13,7 @@ env = Environment(
#CPPDEFINES = [],
LINK = 'arm-none-eabi-gcc',
- LINKFLAGS = '-Wall -mcpu=cortex-m3 -mthumb -Wl,-Tch.ld', # -Wl,--gc-sections
+ LINKFLAGS = '-Wall -mcpu=cortex-m3 -mthumb -nostartfiles -Wl,-Tsuzumebachi.ld', # -Wl,--gc-sections
AR = 'arm-none-eabi-ar',
RANLIB = 'arm-none-eabi-ranlib',
@@ -33,8 +33,9 @@ sources = \
Glob('chibios/os/hal/src/*.c') + \
Glob('chibios/os/hal/platforms/STM32/*.c')
-firmware = env.Program('suzumebachi.elf', Glob('*.cpp') + Glob('*.c') + sources)
-env.Depends(firmware, 'ch.ld')
+#firmware = env.Program('suzumebachi.elf', Glob('*.cpp') + Glob('*.c') + sources)
+firmware = env.Program('suzumebachi.elf', ['main.cpp', 'entry.cpp', 'rcc.cpp'])
+env.Depends(firmware, 'suzumebachi.ld')
env.Command('prog', ['suzumebachi.elf'], 'openocd -f openocd.cfg -c flash_chip')