Files
u-boot/test/hooks/src
Stephen Warren f36e6f39e7 hooks: Add automated testing of Jetson TK1 on swarren-lx1
This required creating a phidgets relay controller app. The Python app
previously used on EIMT uses libraries that don't seem to be available
any more (they've been replaced by a newer version), so write the control
app in C to minimize the amount of non-distro cruft that must be
installed.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
2025-05-28 10:43:07 +01:00
..

# Don't use libphidgets22 since it's stupid and resets the state of all outputs
# on open and close.
wget https://www.phidgets.com/downloads/phidget21/libraries/linux/libphidget/libphidget_2.1.8.20170607.tar.gz
tar xf libphidget_2.1.8.20170607.tar.gz
cd libphidget-2.1.8.20170607
./configure --prefix="${HOME}/phidgets"
make
make install
cd ..
./build.sh
mkdir "${HOME}/phidgets/bin"
cp phidgets-relay "${HOME}/phidgets/bin"
LD_LIBRARY_PATH="${HOME}/phidgets/lib" "${HOME}/phidgets/bin/phidgets-relay" 109237 2 1