Subversion Repositories idreammicro-avr

Compare Revisions

Ignore whitespace Rev 7 → Rev 8

/trunk/projects/input_to_output/SConscript
9,31 → 9,11
'digital_io'
]
 
# Build libraries.
for library in libraries:
SConscript(
'#libraries/' + library + '/SConscript',
exports = { 'env_target' : env_target },
duplicate = 0
)
 
# Set source file.
sources = 'input_to_output.c'
 
# Build program.
env_target.Program(target = TARGET + '.elf', source = sources)
# Build project and libraries.
env_target.BuildProject(libraries, sources, TARGET)
 
# Create hex binary file.
env_target.Command(
TARGET + '.hex',
TARGET + '.elf',
env_target['OBJCOPY'] + ' -O ihex $SOURCE $TARGET'
)
 
# Compute memory usage.
env_target.Command(
None,
TARGET + '.elf',
env_target['SIZE'] + ' -C --mcu=' + env_target['MCU'] + ' $SOURCE'
)
 
env_target.ComputeMemoryUsage(TARGET)
/trunk/projects/SConscript
1,7 → 1,7
# Define projects to build.
projects = [
'helloworld/',
#'input_to_output/'
'input_to_output/'
]
 
# Build each project.