#!/bin/bash
. /opt/tdx-xwayland/6.8.1/environment-setup-cortexa53-tdx-linux

# TARGET=100.64.0.5 #devToradex1 abajo
TARGET=100.64.0.12 #devToradex2 arriba

# rm ./i2c-masive-cli
# rm -f ./bin/src/main-cli.o
make cli

rm ./i2c-masive
rm -f ./bin/src/main.o
make

# scp ./i2c-masive.conf root@$TARGET:/home/root/i2c-masive.conf || exit 4
# scp ./i2c-masive-cli root@$TARGET:/home/root/i2c-masive-cli || exit 2
scp ./i2c-masive root@$TARGET:/home/root/i2c-masive || exit 3
