... | @@ -83,7 +83,7 @@ your-project/ |
... | @@ -83,7 +83,7 @@ your-project/ |
|
|
|
|
|
## Building
|
|
## Building
|
|
|
|
|
|
To build the targets of an SBS project, you use CMake:
|
|
To build the targets of an SBS project you use CMake:
|
|
|
|
|
|
```sh
|
|
```sh
|
|
mkdir build
|
|
mkdir build
|
... | @@ -96,7 +96,7 @@ To simplify the steps necessary to build the targets and lint the code, an SBS s |
... | @@ -96,7 +96,7 @@ To simplify the steps necessary to build the targets and lint the code, an SBS s |
|
|
|
|
|
Prompting `./sbs -h` will print the help message.
|
|
Prompting `./sbs -h` will print the help message.
|
|
|
|
|
|
To build all the targets with the SBS script, you just need to do:
|
|
To build all the targets with the SBS script you just need to do:
|
|
|
|
|
|
```sh
|
|
```sh
|
|
./sbs
|
|
./sbs
|
... | @@ -118,8 +118,6 @@ To get a list of the available *entrypoints* you can use the `-l` option. To get |
... | @@ -118,8 +118,6 @@ To get a list of the available *entrypoints* you can use the `-l` option. To get |
|
|
|
|
|
Normally, to compile code with Miosix you would have to choose the target board in `miosix/config` and execute Miosix's Makefile (see the [Miosix Guide](https://miosix.org/wiki/index.php?title=Quick_start)).
|
|
Normally, to compile code with Miosix you would have to choose the target board in `miosix/config` and execute Miosix's Makefile (see the [Miosix Guide](https://miosix.org/wiki/index.php?title=Quick_start)).
|
|
|
|
|
|
Since in boardcore we have many entrypoints to build, and we don't want to write a custom Makefile for each one of them, SBS generates them for us filling the `Makefile.template` with the values defined in `sbs.conf`. Each Makefile is generated into the `build/` folder and executed to compile the corresponding binary, which is generated in the `bin/` folder.
|
|
|
|
|
|
|
|
#### Standard MIOSIX build
|
|
#### Standard MIOSIX build
|
|
|
|
|
|
- **Makefile**: main Makefile, used to compile the _main.cpp_. Lists the files to compile (`SRC:=`), the libraries to include (`INCLUDE:=`) and the directories to include (`INCLUDE_DIRS:=`).
|
|
- **Makefile**: main Makefile, used to compile the _main.cpp_. Lists the files to compile (`SRC:=`), the libraries to include (`INCLUDE:=`) and the directories to include (`INCLUDE_DIRS:=`).
|
... | | ... | |