Skip to content

Commit

Permalink
AVR build: fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
PetteriAimonen committed Feb 1, 2020
1 parent 766a5ef commit ed21273
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/site_scons/platforms/avr/avr.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ def set_avr_platform(env):
'__ASSERT_USE_STDERR': 1, 'MAX_REALLOC_SIZE': '4096',
'FUZZTEST_BUFSIZE': 2048})
env.Append(LINKFLAGS = "-mmcu=atmega1284")
env.Append(LINKFLAGS = "build/avr_io.o -Wl,-Map,avr.map")
avr_io = env.Object("build/avr_io.o", "site_scons/platforms/avr/avr_io.c")

# These fake defines just ensure that the needed platform files get built.
env.Depends("build/common/pb_common.o", runner)
env.Depends("build/common/pb_common.o", avr_io)
env.Append(LINKFLAGS = "-Wl,-Map,build/avr.map")

# Build library for communicating with test runner
avr_io = env.Library("build/avr_io.o", "site_scons/platforms/avr/avr_io.c")
env.Append(LIBS = avr_io)

# This fake define just ensures that the test runner gets build also
env.Depends(avr_io, runner)

0 comments on commit ed21273

Please sign in to comment.