2019-01-29 14:06:36 +01:00
# Building of MycroftOS from sources.
2021-01-09 13:26:27 +01:00
Flashable images will be provided at major, minor and hotfix release tags. However if you want to build the images from source yourself, below instructions will get you on your way.
2019-01-29 14:06:36 +01:00
## Getting the code.
First, get the code on your system! The simplest method is via git.
< br >
- cd ~/
- git clone --recurse-submodules https://github.com/j1nx/MycroftOS.git
- cd MycroftOS
2020-03-26 10:59:35 +01:00
< br > (Optional) If you want to switch to the active development branch.
2019-12-11 15:39:40 +01:00
- git checkout develop
2020-03-26 10:55:08 +01:00
- git submodule update --remote --merge
2019-01-29 14:06:36 +01:00
## Patching Buildroot.
2020-03-26 10:55:08 +01:00
(ONLY at the first clean checkout/clone) If this is the very first time you are going to build an image, you need to execute the following command once;
2019-01-29 14:06:36 +01:00
< br >
- ./scripts/br-patches.sh
< br >
This will patch the Buildroot packages.
## Building the image.
2019-12-10 13:21:49 +01:00
Building the image(s) can be done by utilizing a proper Makefile;
2019-01-29 14:06:36 +01:00
< br >
2019-12-10 13:21:49 +01:00
To see the available commands, just run: 'make help'
2019-01-29 14:06:36 +01:00
< br >
2019-12-10 13:21:49 +01:00
As example to build the rpi3 version;< br >
2020-03-26 10:55:08 +01:00
- make clean
- make rpi3-config
- make rpi3
2019-12-10 13:21:49 +01:00
To build all available buids, run;< br >
2020-03-26 10:55:08 +01:00
- make all
2019-01-29 14:06:36 +01:00