# Pastebin MrXm8txy #!/bin/bash set -e # Env export PATH=${PATH}:/home/trini/work/u-boot/uboot-test-hooks/bin:/sbin export PYTHONPATH=/home/trini/work/u-boot/uboot-test-hooks/py/bill-the-cat:${PYTHONPATH} # Prepare virtualenv if needed if [ -f test/py/requirements.txt ]; then if [ ! -d /tmp/venv ]; then virtualenv -p /usr/bin/python3 /tmp/venv fi . /tmp/venv/bin/activate pip install --quiet -r test/py/requirements.txt pip install --quiet -r doc/sphinx/requirements.txt pip install requests asteval pylint pyopenssl [ -f tools/buildman/requirements.txt ] && pip install --quiet -r tools/buildman/requirements.txt fi rm -rf /tmp/j721e_evm # Setup variables. export BINMAN_INDIRS=/home/trini/work/u-boot/ti-linux-firmware export BL31=/home/trini/work/u-boot/external-binaries/j721e-u-boot-binaries/bl31.bin export TEE=/home/trini/work/u-boot/external-binaries/j721e-u-boot-binaries/tee-raw.bin echo "Building j721e_evm" time ./tools/buildman/buildman -o /tmp/j721e_evm --keep-outputs -P \ --reproducible-builds -velE --boards j721e_evm_r5,j721e_evm_a72 # Turn on hardware /usr/bin/curl --data 6=ON -o /dev/null --silent http://admin:1234@192.168.0.235/outlet ./test/py/test.py --bd j721e_evm_a72 --id gp --build-dir /tmp/j721e_evm/current/j721e_evm_a72 --exitfirst # Turn off hardware /usr/bin/curl --data 6=OFF -o /dev/null --silent http://admin:1234@192.168.0.235/outlet