From abd65a3d361d1aa73f2dcc2b20b91f740feb560d Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Thu, 15 Jun 2017 09:19:08 +0200 Subject: Fix gdb debugging and add widget install on target Change-Id: I67698bbbfa626e55cbe382afd7e9c5eb699f6149 Signed-off-by: Sebastien Douheret --- wgt/install-wgt-on-target.in | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 wgt/install-wgt-on-target.in (limited to 'wgt') diff --git a/wgt/install-wgt-on-target.in b/wgt/install-wgt-on-target.in new file mode 100644 index 0000000..39a69d5 --- /dev/null +++ b/wgt/install-wgt-on-target.in @@ -0,0 +1,19 @@ +#!/bin/sh +# +# File: install-wgt-on-target.sh +# Author: Sebastien Douheret @ IoT.bzh +# Object: install widget on target +# Created on 24-May-2017, 09:23:37 +# Usage: + +# Do not change manually use 'make remote-target-populate' +export RSYNC_TARGET=@RSYNC_TARGET@ +export WGT_FILE_L=@CMAKE_CURRENT_BINARY_DIR@/@PROJECT_NAME@.wgt +export WGT_FILE_T=/tmp/@PROJECT_NAME@.wgt + +scp $WGT_FILE_L $RSYNC_TARGET:$WGT_FILE_T \ + && ssh -o "StrictHostKeyChecking no" -tt $RSYNC_TARGET -- \ + afm-util install $WGT_FILE_T + +# && rm -f $WGT_FILE_T + -- cgit 1.2.3-korg