summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-07-03 15:34:29 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-07-03 15:35:28 +0200
commit0f390b743634ef4cdda03da8cb3f175524d59bd0 (patch)
tree829dd7907fdf11190cb8b153d76bab0a3e8d1c1a /SConstruct
parent1a8771c5d0e23fb91cb926614933405f39049d63 (diff)
Removed old stuff.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct14
1 files changed, 2 insertions, 12 deletions
diff --git a/SConstruct b/SConstruct
index 6d3566a..08229f4 100644
--- a/SConstruct
+++ b/SConstruct
@@ -18,23 +18,13 @@ env = Environment(
AR = 'arm-none-eabi-ar',
RANLIB = 'arm-none-eabi-ranlib',
- CPPPATH = ['.',
- 'chibios/os/kernel/include', 'chibios/os/ports/GCC/ARMCMx', 'chibios/os/ports/GCC/ARMCMx/STM32',
- 'chibios/os/hal/include', 'chibios/os/hal/platforms/STM32',
- ],
+ #CPPPATH = [],
#LIBPATH = [],
LIBS = ['m'],
)
-sources = \
- Glob('chibios/os/kernel/src/*.c') + \
- ['chibios/os/ports/GCC/ARMCMx/' + i for i in ('STM32/vectors.c', 'chcore.c', 'chcore_v7m.c', 'nvic.c', 'crt0_v7m.s')] + \
- Glob('chibios/os/hal/src/*.c') + \
- Glob('chibios/os/hal/platforms/STM32/*.c')
-
-#firmware = env.Program('suzumebachi.elf', Glob('*.cpp') + Glob('*.c') + sources)
-firmware = env.Program('suzumebachi.elf', ['main.cpp', 'entry.cpp', 'interrupt.cpp', 'rcc.cpp'])
+firmware = env.Program('suzumebachi.elf', Glob('*.cpp'))
env.Depends(firmware, 'suzumebachi.ld')
env.Command('prog', ['suzumebachi.elf'], 'openocd -f openocd.cfg -c flash_chip')