-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cpu/kinetis: allow flashing without toolchain #11545
cpu/kinetis: allow flashing without toolchain #11545
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested ACK, with BOARD pba-d-01-kw2x
(aka PhyNode/Wave) everything still works fine!
Also fixes the issue when using docker. Nice job 👍
rebase after #11547 is merged |
I noticed |
f71328c
to
e8fa26e
Compare
e8fa26e
to
d765103
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the first commit now that #11547 is merged. I'm blocking to prevent accidental merge.
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
Rebased to master, and I fixed a typo in the commit message |
tested reACK for PhyNode board |
@jcarrano are we good here? |
Thank you for the review. |
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
kinetis
board that useswdog-disable.bin
to test the whole pull request. Likepba-d-01-kw2x
ormulle
flashing a kinetis board usingUSE_OLD_OPENOCD=1
.With this pull request it can flash without any
arm
toolchain (onlyobjdump
necessary)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/ flash
In master it fails already when compiling the watchdog.
Makefile:5: recipe for target 'wdog-disable.o' failed
With the first commit only, it fails on
check-fcield
.cpu/kinetis/dist/check-fcfield-elf.sh: arm-none-eabi-objdump: not found
Abort 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