cpu/kinetis: allow flashing without toolchain#11545
Merged
jcarrano merged 2 commits intoRIOT-OS:masterfrom May 29, 2019
Merged
Conversation
This was referenced May 20, 2019
smlng
approved these changes
May 23, 2019
Member
smlng
left a comment
There was a problem hiding this comment.
tested ACK, with BOARD pba-d-01-kw2x (aka PhyNode/Wave) everything still works fine!
Also fixes the issue when using docker. Nice job 👍
Member
|
rebase after #11547 is merged |
Contributor
Author
|
I noticed |
f71328c to
e8fa26e
Compare
Contributor
Author
e8fa26e to
d765103
Compare
Get OBJDUMP from the environment instead of hardwriting the value. This is a prerequisite to allow using `objdump` when building from docker when not having the `arm` toolchain installed.
Keep the compiled '.bin' file to remove the need to compile it when flashing. This remove the need to have the toolchain when flashing so allow compiling and flashing with `BUILD_IN_DOCKER=1` without a local toolchain. Even if it ends up storing a binary, the file is only 34 bytes.
d765103 to
e40d569
Compare
Contributor
Author
|
Rebased to master, and I fixed a typo in the commit message |
Member
|
tested reACK for PhyNode board |
Member
|
@jcarrano are we good here? |
jcarrano
approved these changes
May 29, 2019
Contributor
Author
|
Thank you for the review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This pull request allows to flash the kinetis boards without relying on a local target specific toolchain. A native one is still required for objdump.
This allows only having the toolchain in docker.
Testing procedure
Flashing any
kinetisboard that useswdog-disable.binto test the whole pull request. Likepba-d-01-kw2xormulleflashing a kinetis board usingUSE_OLD_OPENOCD=1.With this pull request it can flash without any
armtoolchain (onlyobjdumpnecessary)PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" DOCKER="sudo docker" BUILD_IN_DOCKER=1 RIOT_CI_BUILD=1 BOARD=pba-d-01-kw2x make -C examples/default/ flashIn master it fails already when compiling the watchdog.
Makefile:5: recipe for target 'wdog-disable.o' failedWith the first commit only, it fails on
check-fcield.cpu/kinetis/dist/check-fcfield-elf.sh: arm-none-eabi-objdump: not foundAbort flash procedure!
pre-flash checks failed, status=1
Issues/PRs references
This is part of compiling and flashing boards with only docker toolchain #10870
Separate pull request for objdump #11547