is MIT but any permissive license is fine. Please consider that people using
UPM may want to write proprietary programs with your sensors so we like to
avoid GPL. (LGPL is fine). If your license is not MIT please include a
- LICENSE file in src/<mymodule>/
+ LICENSE file in src/mymodule/
- Please test your module builds before contributing and make sure it works on
the latest version of mraa. If you tested on a specific board/platform please
tell us what this was in your PR.
~~~~~~~~~~~
Note you dont have to rebuild everything, cmake keeps target lists so if you
-named your example target <modulename>-example you can simply do make
+named your example target modulename-example you can simply do make
max31855-example and both the library & example will build.
### Adding a new module to UPM
1. Choose a name for your module (see @ref naming)
-2. Make a new folder in src/<modulename>
-3. Create a CMakeLists.txt file inside src/<modulename>
+2. Make a new folder in src/modulename
+3. Create a CMakeLists.txt file inside src/modulename
### CmakeLists.txt
-By default you need a header called <modulename>.h and a C++ file called
-<modulename>.cxx. You can have multiple headers and source files. Only public
+By default you need a header called modulename.h and a C++ file called
+modulename.cxx. You can have multiple headers and source files. Only public
headers need to be added to module_h and all source files need to be in
module_src.
request! We'd love to include your sensor in our repository.
If you don't like github you can also send brendan.le.foll@intel.com a git
-formatted patch if your sensor. More details are on @ref contributing and on
+formatted patch if your sensor. More details are on @ref contributions and on
https://help.github.com/articles/creating-a-pull-request