Deprecation note!
Please note: This repository is deprecated and it is no longer actively maintained.
yotta: Build Software with Reusable Components
yotta is a tool from ARM mbed, to make it easier to build better software with C++ and C by re-using modules. Publish your own modules to the yotta registry to share them with other people, or re-use them privately in your own projects.
Whenever you build a project with yotta, you first select a yotta target. Targets describe the platform that you're building for (such as an embedded IoT development board, or natively for Mac or Linux), and provide all the information that yotta and modules you're using need to configure themselves correctly for that platform.
Installation
yotta is written in python, and is installed using pip. Install yotta itself by running:
pip install yotta
Note that yotta needs several non-python dependencies to be installed correctly (such as a C++ compiler). The detailed installation instructions include a full guide.
Exactly which other dependencies (such as compilers and other build tools) are required will also depend on the yotta target description that you intend to use, so please be sure to also check the target description's own documentation.
Get Started!
The best way to get started is to follow the tutorial, or if you have questions/feedback please create an issue!
yotta
works
How Every yotta module or application includes a
module.json
file, which
lists the other modules that it needs (amongst other information like the
module's license, and where to submit bug reports).
When you run yotta build
to build your project, yotta downloads your dependencies, and makes them
available to your project. It's similar in concept to npm, pip or gem: although
because C and C++ are compiled languages, yotta also controls the build of your
software in order to ensure downloaded modules are available to use in your
code.
To add a new module to your program run yotta install <modulename>
. yotta
will install both the module you've specified and any of its dependencies that
you don't already have. It will also update your module.json file to reflect
the new dependency.
The best way to really understand how yotta works is to follow the tutorial.
Further Documentation
For further documentation see the yotta docs website.
Tips
yt
is a shorthand for theyotta
command, and it's much quicker to type!- yotta is strongly influenced by npm, the awesome node.js software packaging system. Much of the syntax for module description and commands is very similar.
License
yotta is licensed under Apache-2.0