1function status = eq_deploy_to_dut(target, temp_file) 2% deploy eq over ssh to a given dut with sof-eqctl 3% the end target is expected to be some sort of unix system with sof-eqctl 4% already installed. The system should also have ssh keys installed to prevent 5% the toolchain from logging in 6 7ip = target.ip; 8user = target.user; 9dev = target.device; 10ctrl = target.control; 11 12if isunix() || ismac() 13 transfer_template = "scp %s %s@%s:/tmp/sof-eq-config.txt"; 14 config_template = "ssh -t %s@%s sof-eqctl -Dhw:%d -n %d -s /tmp/sof-eq-config.txt"; 15 transfer_command = sprintf(transfer_template, temp_file, user, ip); 16 config_command = sprintf(config_template, user, ip, dev, ctrl); 17 command = sprintf("%s && %s", transfer_command, config_command); 18endif 19 20if ispc() 21 % TODO 22endif 23 24[status, output] = system(command); 25disp(output); 26end 27 28