-
Hi folks, My main dev work will be on the generated source code - which I will detach and 'run with' separate from the lbuild / templates directories. This detached code will get fixes and changes specific to my project. I'm happy to feed fixes and relevant improvments back into the template code, realistically my future colleagues may not. I can't open source changes specific to the product without getting slapped by my scary boss. But - I'm not working on the template code in Github, only the generated code (basically a copy with bits chopped out!) Again, thanks to @salkinium & all for the many hours of free time put into this project. Its been a great learning experience if nothing else can come of it. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
You're welcome, I've also learned so much myself and always appreciate feedback! IANAL, however I've had some basic training while working at ARM regarding copyright:
The MPLv2 license applies to the generated code. The C preprocessor is a code generator too (in fact very similiar to Jinja2 for basic use), and it doesn't change the license terms either of course. In particular, modm adds significant "original work" to the modm-devices data, thus the threshold of originality is met.
We chose the MPLv2 specifically because it only applies to the modm files only, and not all project files like the "greedy" GPL license. My recommended workflow:
Note that the code in So basically:
|
Beta Was this translation helpful? Give feedback.
-
Thanks @salkinium for the useful guidance. What to do with these as I'll need to adapt to support a bootloader: Can you see any pitfalls? Thank you kindly! |
Beta Was this translation helpful? Give feedback.
-
Yes, that will fully comply with the MPLv2 terms (and the BSD, MIT etc terms in
Hm, that's a good point I haven't considered before. These files are supposed to be adapted for the specific project, it's a bit dumb to have licensed them with MPLv2 🤦♂️. I'll check if I can relicense these files to BSD (but I'm not the sole author).
I want to point out that #568 has a new CMake implementation, that better than what we have right now, with more IDE integration (written by someone who actually knows how CMake works). It needs some minor polish before merge, but it's basically done. |
Beta Was this translation helpful? Give feedback.
-
All top-level build scripts are now BSD 2-clause licensed, incl. the new CMake generator. |
Beta Was this translation helpful? Give feedback.
You're welcome, I've also learned so much myself and always appreciate feedback!
IANAL, however I've had some basic training while working at ARM regarding copyright:
The MPLv2 license applies to the generated code. The C preprocessor is a code generator too (in fact very similiar to Jinja2 for basic use), and it doesn't change the license terms either of course. In particul…