... | @@ -2,9 +2,9 @@ SBS (*Skyward Build System*) is the build system that is used to compile boardco |
... | @@ -2,9 +2,9 @@ SBS (*Skyward Build System*) is the build system that is used to compile boardco |
|
|
|
|
|
### How it Works
|
|
### How it Works
|
|
Normally, to compile code made with Miosix for a specific board you would have to comment some lines in miosix/config and then execute `make` (see the [Miosix Guide](https://miosix.org/wiki/index.php?title=Quick_start)).
|
|
Normally, to compile code made with Miosix for a specific board you would have to comment some lines in miosix/config and then execute `make` (see the [Miosix Guide](https://miosix.org/wiki/index.php?title=Quick_start)).
|
|
<br/>Since Boardcore uses a modified version of Miosix, a custom config/ folder was created and pulled out from the kernel's folder, without a specified target board in it.
|
|
<br/>Since Boardcore uses a modified version of Miosix, a custom config/ folder was created without a specified target board in it.
|
|
|
|
|
|
What SBS does is that it modifies, for each of the target boards, a Makefile.template by substituting the placeholder that are there with the values defined in `sbs.conf`, then puts the Makefile in build/ and executes it.
|
|
What SBS does is that it creates a Makefile for each entrypoint starting from the `Makefile.template`. The placeholders that are there are substituted with the values defined in `sbs.conf`, then the Makefile is moved to build/ and executes it.
|
|
|
|
|
|
### Project Configuration
|
|
### Project Configuration
|
|
|
|
|
... | @@ -22,8 +22,8 @@ PROJECT_LIBS: Optional static libraries. (eg: libs/mxgui/mxgui.a) |
... | @@ -22,8 +22,8 @@ PROJECT_LIBS: Optional static libraries. (eg: libs/mxgui/mxgui.a) |
|
|
|
|
|
### SrcFiles
|
|
### SrcFiles
|
|
|
|
|
|
The *srcfiles* are used for grouping together sources that refer to a common device/porpouse,
|
|
The *srcfiles* are used for grouping together sources that refer to a common device/purpose,
|
|
so that the can be referred when building entrypoints by simply using `%name`.
|
|
so that they can be referred to when building entrypoints by simply using `%name`. Note that SBS first imports the srcfiles from the sbs.conf inside the boardcore's folder, and then it will include any other srcfiles that are defined in higher level sbs.conf files.
|
|
|
|
|
|
```
|
|
```
|
|
[name]
|
|
[name]
|
... | | ... | |