...
Code Block |
---|
# set up codegen if you don't have codegen set up, else skip these steps - cd ~/shared - git clone https://github.com/uw-midsun/codegen-tooling-msxiv.git - cd codegen-tooling-msxiv - 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 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 TEST - make fastmpxe (runs all tests, no building) - make fastmpxe TEST=... (just runs that test, no building) |