#!/bin/bash -e ############################################################################## # # (C) Copyright 2015 - 2016 # Texas Instruments Incorporated, # # Venkateswara Rao Mandela # # SPDX-License-Identifier: BSD-3-Clause # ############################################################################## echo "Installing dependencies" sudo apt-get install libusb-1.0-0-dev echo "Building" make if [ ! -e bootswitch ]; then echo "Unable to find bootswitch binary after build" echo "Exiting" exit 1 else echo "Build successful" BOOTSWITCH_PATH="$(pwd)/bootswitch" fi echo "Setting up udev rules" cat < /tmp/bootsetting.txt