Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# set up codegen if you don't have codegen set up, else skip these steps
- clone codegen repo
- sudo add-apt-repository ppa:maarten-fonville/protobuf
- sudo apt-get update
- sudo apt-get install protobuf-compiler
- sudo apt-get install virtualenv
- virtualenv .venv
- source .venv/bin/activate
- pip install -r requirements.txt
- mkdir -p genfiles
- protoc -I=schema --python_out=genfiles schema/can.proto
- make gen-dbc
- deactivate
- cp system_can.dbc ../system_can.dbc
# set up protobuf-c
- cd ~/shared
- git clone https://github.com/protobuf-c/protobuf-c
- cd protobuf-c
- ./autogen.sh
- ./configure
- sudo apt-get install libprotoc-dev
- make
- sudo make install
- sudo ldconfig
# get mpxe requirements
- cd ~shared/firmware_xiv
- python3 -m pip install protobuf
- python3 -m pip install python-can cantools (maybe already have it installed)
- git checkout mpxe
- git pull
# run mpxe - pick whichever one you need
- make mpxe (builds all project dependencies and runs all tests)
- make mpxe INT_TEST=... (builds all project dependencies, then runs that specific test)
# ^^ the test must be a python file in mpxe/integration_tests, but don't have .py in INT_TEST
- make fastmpxe (runs all tests, no building)
- make fastmpxe INT_TEST=... (just runs that test, no building)