Skip to content

Commit

Permalink
Added workaround for building vector.c
Browse files Browse the repository at this point in the history
  • Loading branch information
nesos committed Oct 23, 2019
1 parent f726122 commit fa54ac3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/build_script_generator/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ def common_source_files(env):

for repo in files_to_build:
files_to_build[repo].sort()

#Workaround to add the vector table which is build in a post-build step (only for the cortex processors)
device = env["modm:target"]
core = device.get_driver("core")["type"]
if "cortex" in core:
files_to_build["modm"].append("modm/src/modm/platform/core/vectors.c")

return files_to_build

def common_target(env):
Expand Down

0 comments on commit fa54ac3

Please sign in to comment.