Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve build system. #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tyalie
Copy link
Collaborator

@tyalie tyalie commented Jan 15, 2024

So yeah. This improves our build system by allowing to build from multiple files / using an include directory.

I suspect in the long run this will help is with code organization as we can put the low-level register manipulating stuff into their own file(s), condensing the main file quite a bit.

For that the makefile now also creates a build folder, which makes cleanup (and building the .gitignore) significantly easier.

Additional change:

  • fixed bug in makefile which meant that only STVP would be used for flashing
  • debug build (elf) that can be used with stm8-gdb

The makefile command `$(command …)` did not work as expected and
returned always nothing. Only by appending `shell` the command gets
actually executed and is able to return a path if the command is
available.

Signed-off-by: Sophie 'Tyalie' Friedrich <[email protected]>
This allows us to have multiple files and a build directory, which makes
cleaning significantly easier in the long run.

Also introduced debug build which generates a .elf file

Signed-off-by: Sophie 'Tyalie' Friedrich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant