Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
6fce8038
Commit
6fce8038
authored
Aug 16, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
archive-copy-unpack for remote copying
parent
528be92d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
elphel-misc.bbclass
classes/elphel-misc.bbclass
+3
-0
elphel-scp.bbclass
classes/elphel-scp.bbclass
+6
-3
No files found.
classes/elphel-misc.bbclass
View file @
6fce8038
...
...
@@ -45,4 +45,7 @@ PR = "${@version_update('${VPATH}','${VFILE}',2)}"
SRCREV = "${AUTOREV}"
#always start from compile
#do_compile[nostamp]="1"
FILESEXTRAPATHS_append := "${VPATH}:"
classes/elphel-scp.bbclass
View file @
6fce8038
...
...
@@ -3,9 +3,12 @@
IDENTITY_FILE ?= "-i ~/.ssh/id_rsa"
do_target_scp () {
SOURCE_PATH="${D}/*"
#echo "scp ${IDENTITY_FILE} -pr ${SOURCE_PATH} ${REMOTE_USER}@${REMOTE_IP}:/"
scp ${IDENTITY_FILE} -pr ${SOURCE_PATH} ${REMOTE_USER}@${REMOTE_IP}:/
#Without next echo - no trace of the scp in the log!
tar -czvf ${WORKDIR}/image.tar.gz -C ${WORKDIR}/image .
echo scp ${IDENTITY_FILE} -p ${WORKDIR}/image.tar.gz ${REMOTE_USER}@${REMOTE_IP}:/
scp ${IDENTITY_FILE} -p ${WORKDIR}/image.tar.gz ${REMOTE_USER}@${REMOTE_IP}:/
echo ssh ${IDENTITY_FILE} ${REMOTE_USER}@${REMOTE_IP} ${SSH_COMMAND}
ssh ${IDENTITY_FILE} ${REMOTE_USER}@${REMOTE_IP} ${SSH_COMMAND}
}
addtask do_target_scp after do_install
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment