Skip to content

Commit

Permalink
Move Android-related code to obsolete
Browse files Browse the repository at this point in the history
This is content previously present in the code_generation branch.
Moving it to obsolete to give it better visibility.
Reason for obsolete is that it currently likely is not functional
due to changes in vss and vss-tools

Signed-off-by: Erik Jaegervall <erik.jaegervall@se.bosch.com>
  • Loading branch information
erikbosch committed Feb 26, 2024
1 parent 4589de5 commit 78cdf58
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 73 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/vspec2aasigproperties.yml

This file was deleted.

8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< HEAD
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -96,10 +95,3 @@ ENV/
# IDE
.idea
.vscode
=======
*.cpp
*.csv
.vscode
__pycache__
*.pyc
>>>>>>> 3eec52a (Second draft version of the converter.)
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,3 @@ This repository is set up to use pre-commit hooks. After you clone the project,
## Building and installing with Pip

For usage of VSS-Tools with Pip (PyPI) please see [README-PYPI.md](README-PYPI.md)
## 5. CPP adaptation code generation
You can run the CPP generator with following parameters:
```
python contrib/vspec2aaproperties/vspec2aaprop.py ../spec/VehicleSignalSpecification.vspec contrib/vspec2aaproperties/vspec2prop_mapping.yml contrib/vspec2aaproperties/types.hal android_vhal_mapping_cpp.tpl test.cpp
```
## 5. CPP adaptation code generation
You can run the CPP generator with following parameters:
```
./test.sh
```

The script runs the following generator
python3 contrib/vspec2aaproperties/vspec2aaprop.py ../spec/VehicleSignalSpecification.vspec contrib/vspec2aaproperties/vspec2prop_mapping.yml contrib/vspec2aaproperties/types.hal android_vhal_mapping_cpp.tpl test.cpp
contrib/vspec2aaproperties/vspec2aaprop.py: Generator host python code. Code uses Jinja2 to actual conversion.
../spec/VehicleSignalSpecification.vspec: VSS. Used to grab the VSS variable type for the items.
contrib/vspec2aaproperties/vspec2prop_mapping.yml: YAML representation of the VSS-Android VHAL mapping with scaling/complex conversions.
contrib/vspec2aaproperties/types.hal: Android header for the VHAL. Used to grab the Android variable type for the items.
android_vhal_mapping_cpp.tpl: Actual Jinja2 generator for generating the CPP conversion code.
test.cpp: Output CPP file.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 78cdf58

Please sign in to comment.