-
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
dist/tools: update serial boot loader script #5784
dist/tools: update serial boot loader script #5784
Conversation
@gebart why did you add the "in progress" label? And how??? Never seen it before. |
I don't understand. I haven't seen this PR until now. Is there some github hook setting something in my name? |
fails for python3, please add the python version explicitly at the top of the script |
please address our offline discussion (remove |
Works like a charm! Please squash. |
32dcb0a
to
5eafb07
Compare
Murdock is green. ACK&GO |
Uhmmm... just realised that this break support on my mac... |
Can someone with OSX can confirm? @emmanuelsearch @thomaseichinger @Yonezawa-T2 ? Just try |
@kYc0o I can confirm this. Python 2.x is still OS X standard, only custom Python 3.x installations have a |
Why it is
And the linked version to the Maybe if we want to enforce a Python version we should explicitly indicate which one? edit: just for the record, with only |
AFAIK it is a Linux naming convention to clearly separate Python 2.x and Python 3.x branch binaries. |
How do other Python 2 scripts handle this on OSX? |
Before this change only |
Yes, but this works only on systems where Python 2 is the default or for scripts that are compatible to both Python versions. There are many more scripts (outside RIOT) that only support Python 2 and I wonder how they deal with the special situation on OSX. |
Oh well I don't have experience on other python scripts... now my questions is: Should we (OS X users) create a symlink to a |
According to PEP394 |
@kYc0o, sure |
@thomaseichinger, "rather new" and 2012? Are you kidding me? Apple seems to change their power supply adapters every week, but do not manage to update their software within four years? |
@OlegHahm I forgot how hard it is to communicate sarcasm in written form. ;) |
No worries, message was received correctly. :) However, Apple still manages to surprise me. |
I just saw the messages here and had a look at the changes. To me, we should make it python 3 compatible, I think it's a good practice. |
@aabadie the script was adopted from [1]. I guess the problem is that if we are going to adapt it to |
@cgundogan, yeah I agree, I had the same idea in mind but in the mean time, I opened #5909, if you want to have a look. |
If we want to strictly follow upstream, shouldn't it be a submodule? Then it can be updated automatically from such upstream repo (thus our possible contributions to upstream would be reflected here). |
PR opened upstream. That would be great if someone could test it (I don't have a cc2538). |
Curious that their CI system is already configured to check python3... |
Indeed and also python 2.7. In fact, I changed a string formatting somewhere that fails with python 2.6, the other changes are only cosmetic (pep8). |
Thanks everyone for the updates on the script and the upstream PR. I will go over it and get it merged after testing with some HW. We wanted to make sure it was 2 and 3 compatible (I gave up on 2.6 at some point), so if there are problems with python3, please open an issue or PR. @kYc0o Embedding the script here as a submodule was also my idea and I tried this before: #4237 but it never got approved, feel free to re-open. |
Oh yeah I didn't know. Yeah it's true that submodules here are not really on the convention, and adding it as a package seems too much for a single file. Given that the script should work with all (rather new and used) versions of python, we maybe might consider to change it (again) for the use of the edit: sorry this last thing is already done on #5909 |
Updates the serial boot loader script for TI CC13xx/CC2538/CC26xx to version 2.1. Took code from here: https://github.com/JelmerT/cc2538-bsl
Hopefully replaces #5760. @cgundogan please test!