Build Amiro Apps
Automate the build for the the Amiro-Apps
project is quite a challenge because it differs from the build process of the Amiro-OS
.
There one can simply use the project Makefile
with:
make -f Aos/Makefile <options> <targetName>
With the Apps
project this is not possible for a single module.
The Makefile
in the configuration has to be used:
make -f apps/configurations/<app_name>/<target_name>/Makefile <options>
# or
make -f apps/configurations/<app_name>/Makefile <options> <target_name>
The relevant apps can be passed with the replacement config by using the tag Apps
:
Modules: [...]
Apps: [
'HelloWorld'
]
...
When the Apps
tag is provided it will automatically be combined with the Modules
tag.
-
Extend Replacement config to allow the Apps
tag -
Use BuildControler
to construct correct module names- Generate modulenames as follows:
- AmiroOS: 'moduleName'
- Apps: 'app/moduleName'
- Generate modulenames as follows:
-
Adapt ConfigManager
in order to generate the correctMakefile
- create get_module_makefile(name)
-
Adapt Factory
Edited by galberding