Update build to include main files in pycom firmware base#112
Update build to include main files in pycom firmware base#112CrispyCrafter wants to merge 2 commits intohiveeyes:mainfrom
Conversation
|
Perhaps this could be included as a build flag? |
|
Dear Bernard, thank you very much for submitting this patch. At first, I want to appreciate to hear back from you, because it tells us that there are actually active users of Terkin out there. The project where it was originally conceived for has ended in 2020 already and we haven't been able to put in much time in terms of continued maintenance beyond a short stunt together with @Tonkenfo where we improved compatibility with Dragino and compatibility with CPython in general. In this spirit, we would very much like to hear about where Terkin is used within other projects, specifically on MicroPython, which would be a very motivating factor for us to keep the project going, at least in maintenance mode. If you like, let us continue an eventual discussion about this topic elsewhere. With respect to your patch, without wrapping my mind into the details and consequences too much right now, I think it would be a good idea to bring it in, specifically if that supports your workflow better. A build flag would be perfect to be able to handle both situations, feel free to make it that way to handle your case as the default one. With kind regards, |
|
Hi Andreas Excited to finally make contact with you and the terkin community. With respect to the PR, I'm concerned that some the proposed approach would be problematic without additional changes. I've addressed this on my side with the following behaviour: |
|
Dear Bernard, apologies for the late reply.
It is very sweet to hear back from users of Terkin. We appreciate it and look forward to a call.
I see.
That looks very reasonable. We will definitively take it into consideration within the next development cycle. Thanks again for your contribution! With kind regards, |
This PR simply serves to automatically include
boot.pyandmain.pyin the base folder path of pycom firmware builds.This simplifies the configuration effort by no longer needing to manually include these files during device provisioning.
Obviously this has side effects where
_main.pyis executed prior to running the userspace version ofmain.py.As such I include this PR simply as a POC in case other users of the community wish to solve a similar issue.
I don't anticipate all users to want to make use of this approach.