-
-
Notifications
You must be signed in to change notification settings - Fork 771
boards/Makefile: remove relative libtock-c path assumptions #2585
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
boards/Makefile: remove relative libtock-c path assumptions #2585
Conversation
Don't assume a particular relative path to the libtock-c installation to look for TBFs (compiled application). Instead, when programming a kernel together with one or more applications, pass the path to the TBF applications file in the APP variable. Furthermore, these changes will cause the combined kernel+application binary to be rebuilt even if the kernel binary does not change, whereas previously the `app.elf` file was only dependant on the kernel elf. Lastly, the filename of all generated files is prefixed with the platform name, which is important to avoid collisions in the target directory. Signed-off-by: Leon Schuermann <[email protected]>
Signed-off-by: Leon Schuermann <[email protected]>
Looks good, look forward to the remaining change |
To give an update why this has been pending for so long: I'm not really confident to make these changes to the |
Removes assumptions about relative libtock-c paths in the imxrt1050-evkb's Makefile. Furthermore, it fixes some path assumptions to a macOS-based MCUXpresso installation and uses proper target names (e.g. not program for compiling, flash for actually flashing). It removes the debug targets from the Makefile, in accordance with other boards in upstream Tock. Signed-off-by: Leon Schuermann <[email protected]>
To accomodate changes to the Makefile and flashing targets, this updates the README to guide users to the correct make targets. Signed-off-by: Leon Schuermann <[email protected]>
I couldn't test the actual flashing process on the |
bors r+ |
Pull Request Overview
Removes any assumptions about application TBFs or
libtock-c
trees using relative paths outside of the Tock repository. In the cases where Tockloader is not supported (yet), the TBF file to include should be passed using theAPP
variable instead, as done inclue_nrf52840
.Testing Strategy
This pull request was tested by running make targets.
TODO or Help Wanted
N/A
Documentation Updated
Updated the relevant files inor no updates are required./docs
,Formatting
make prepush
.