1.5 KiB
Introduction
[TOC]
General Information
powertrain-build introduction introduces installation and basic usage of powertrain-build.
Code Base
The basic code introduction is placed in General Code Introduction.
Deployment
Information on how to deploy powertrain-build can be found here.
Code Generators
powertrain-build collects code generated from Simulink models in Matlab. powertrain-build was originally designed to work with TargetLink but with the correct setup it can also support Embedded Coder. For instance, Embedded Coder needs to be configured to mimic the variable classes. The part of powertrain-build's codebase that processes Simulink models is located in powertrain_build/matlab_scripts folder.
For more information about the TargetLink setup see this page.
Development
If you want to develop powertrain-build, you can run it directly from the Git repositories. You probably need a separate virtual environment, as any installed release versions of powertrain-build would interfere:
python3 -m venv powertrain_build_venv
source ./powertrain_build_venv/bin/activate
Once activated, you can execute it:
PYTHONPATH=<path_to>//powertrain-build python -m powertrain_build.wrapper build-specific --project-config Projects/CSP/PvcDepDemo/ProjectCfg.json --core-dummy