-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from timrulebosch/simbus
Add signal schemas.
- Loading branch information
Showing
15 changed files
with
658 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!--- | ||
Copyright (c) 2021 for information on the respective copyright owner | ||
see the NOTICE file and/or the repository https://github.com/boschglobal/automotive-bus-schema | ||
SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
|
||
# Automotive Bus Register Interface FlexRay | ||
|
||
## Overview | ||
|
||
Schema | Register Interface FlexRay | ||
:---|:--- | ||
  | [Schema File](../../schemas/register/flexray.fbs) | ||
MIME Type | application/x-automotive-bus; interface=register; type=FlexRay; | ||
Data Stream | 4 byte Message Length followed by FlatBuffers Message. Repeating. | ||
FlatBuffers File Identifier | RIFR | ||
|
||
|
||
## Modeled BUS Features | ||
|
||
### Static/Dynamic Parts | ||
|
||
|
||
### Slot Chasing (Events) | ||
|
||
|
||
### FlexRay Startup | ||
|
||
|
||
### L2 Status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
FROM debian:buster-slim AS builder | ||
|
||
|
||
# ========================= | ||
# Builder image | ||
# ========================= | ||
# Partly derived from the following Dockerfile : | ||
# https://github.com/neomantra/docker-flatbuffers/blob/master/Dockerfile | ||
|
||
|
||
# Setup basic GCC and CMAKE toolchains | ||
# ==================================== | ||
RUN apt-get -y update; \ | ||
apt-get -y upgrade; \ | ||
apt-get -y install --no-install-recommends \ | ||
binutils \ | ||
build-essential \ | ||
ca-certificates \ | ||
cmake \ | ||
extra-cmake-modules \ | ||
curl \ | ||
g++ \ | ||
git \ | ||
less \ | ||
make \ | ||
&& \ | ||
apt-get clean; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
# FlatBuffer Build | ||
# ================ | ||
# https://github.com/google/flatbuffers/archive/refs/tags/v1.12.0.tar.gz | ||
ARG FLATBUFFERS_ARCHIVE_BASE_URL="https://github.com/google/flatbuffers/archive/refs/tags" | ||
ARG FLATBUFFERS_ARCHIVE_TAG="v1.12.0" | ||
ARG FLATBUFFERS_BUILD_TYPE="Release" | ||
ARG FLATBUFFERS_USE_CLANG="false" | ||
|
||
RUN curl -fSL "${FLATBUFFERS_ARCHIVE_BASE_URL}/${FLATBUFFERS_ARCHIVE_TAG}.tar.gz" -o flatbuffers.tar.gz \ | ||
&& tar xzf flatbuffers.tar.gz \ | ||
&& cd flatbuffers-* \ | ||
&& cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${FLATBUFFERS_BUILD_TYPE} . \ | ||
&& make \ | ||
&& make test \ | ||
&& make install \ | ||
&& cp src/idl_parser.cpp src/idl_gen_text.cpp /usr/local/include/flatbuffers | ||
|
||
|
||
# Flatcc Build | ||
# ============ | ||
# https://github.com/dvidelabs/flatcc/archive/refs/tags/v0.6.0.tar.gz | ||
ARG FLATCC_ARCHIVE_BASE_URL="https://github.com/dvidelabs/flatcc/archive/refs/tags" | ||
ARG FLATCC_ARCHIVE_TAG="v0.6.0" | ||
|
||
RUN curl -fSL "${FLATCC_ARCHIVE_BASE_URL}/${FLATCC_ARCHIVE_TAG}.tar.gz" -o flatcc.tar.gz \ | ||
&& tar xzf flatcc.tar.gz \ | ||
&& mv flatcc-* flatcc \ | ||
&& cd flatcc \ | ||
&& env $( if [ "${FLATBUFFERS_USE_CLANG}" = "true" ] ; then echo "CC=/usr/bin/clang CXX=/usr/bin/clang++ " ; fi) \ | ||
./scripts/initbuild.sh make \ | ||
&& env $( if [ "${FLATBUFFERS_USE_CLANG}" = "true" ] ; then echo "CC=/usr/bin/clang CXX=/usr/bin/clang++ " ; fi) \ | ||
./scripts/build.sh | ||
|
||
|
||
|
||
# ========================= | ||
# Construct the final image | ||
# ========================= | ||
FROM debian:buster-slim | ||
|
||
|
||
# Setup basic tools | ||
# ================= | ||
RUN apt-get -y update; \ | ||
apt-get -y upgrade; \ | ||
apt-get -y install --no-install-recommends \ | ||
build-essential \ | ||
curl \ | ||
git \ | ||
make \ | ||
zip \ | ||
&& \ | ||
apt-get clean; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
# Flatbuffers (flatc) | ||
# =================== | ||
COPY --from=builder /usr/local/bin/flatc /usr/local/bin/flatc | ||
COPY --from=builder /usr/local/include/flatbuffers /usr/local/include/flatbuffers | ||
COPY --from=builder /usr/local/lib/libflatbuffers.a /usr/local/lib/libflatbuffers.a | ||
COPY --from=builder /usr/local/lib/cmake/flatbuffers /usr/local/lib/cmake/flatbuffers | ||
|
||
|
||
# Flatcc (flatcc) | ||
# =============== | ||
COPY --from=builder /flatcc/bin/flatcc /usr/local/bin/flatcc | ||
COPY --from=builder /flatcc/include/flatcc /usr/local/include/flatcc | ||
COPY --from=builder /flatcc/lib/*.a /usr/local/lib/ | ||
|
||
|
||
# Source Code (flatcc) | ||
# ==================== | ||
COPY --from=builder /flatcc.tar.gz flatcc.tar.gz | ||
RUN tar xzf flatcc.tar.gz \ | ||
&& mkdir -p /usr/local/src \ | ||
&& mv flatcc-* /usr/local/src/flatcc \ | ||
&& rm flatcc.tar.gz | ||
|
||
|
||
# CMD ["/bin/bash", "-c", "tail /dev/null -f"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
FROM python:3.8.10-slim | ||
|
||
|
||
# Setup basic tools | ||
# ================= | ||
RUN apt-get -y update; \ | ||
apt-get -y upgrade; \ | ||
apt-get -y install --no-install-recommends \ | ||
build-essential \ | ||
ca-certificates \ | ||
cargo \ | ||
curl \ | ||
gcc \ | ||
git \ | ||
less \ | ||
make \ | ||
python3-dev \ | ||
zip \ | ||
&& \ | ||
apt-get clean; \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
# Python VENV | ||
# =========== | ||
RUN python -m venv /opt/venv | ||
ENV PATH="/opt/venv/bin:$PATH" | ||
|
||
|
||
# Python Libraries | ||
# ================ | ||
RUN pip install --upgrade pip; pip install \ | ||
flatbuffers==1.12 \ | ||
msgpack \ | ||
numpy \ | ||
pip-licenses \ | ||
pytest \ | ||
twine \ | ||
wheel \ | ||
&& \ | ||
pip list; pip-licenses | ||
|
||
|
||
# Global PIP config | ||
# ================= | ||
COPY pip.conf /etc/pip.conf | ||
|
||
|
||
# CMD ["/bin/bash", "-c", "tail /dev/null -f"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[global] | ||
disable-pip-version-check = True |
Oops, something went wrong.