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
0b779300
Commit
0b779300
authored
Nov 23, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved archiving to do_install because fakeroot
parent
f159dd4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
elphel-dev.bbclass
classes/elphel-dev.bbclass
+2
-0
elphel-scp.bbclass
classes/elphel-scp.bbclass
+11
-5
elphel-ssh.bbclass
classes/elphel-ssh.bbclass
+1
-1
No files found.
classes/elphel-dev.bbclass
View file @
0b779300
...
...
@@ -57,6 +57,8 @@ do_install_append() {
oe_runmake ${EXTRA_OEMAKE} install
install -d ${D}/etc/elphel393/packages
echo "${PE}.${PV}.${PR}" > ${D}/etc/elphel393/packages/${BPN}
#make archive
tar -czvf ${WORKDIR}/image.tar.gz -C ${WORKDIR}/image .
}
# Always start from compile
...
...
classes/elphel-scp.bbclass
View file @
0b779300
...
...
@@ -16,6 +16,11 @@ inherit elphel-ssh
# ssh -i ${IDENTITY_FILE} ${REMOTE_USER}@${REMOTE_IP} ${SSH_COMMAND}
#}
#python () {
# #d.setVarFlag('do_target_scp', 'fakeroot', '1')
# print("test")
#}
python do_target_scp () {
import subprocess
...
...
@@ -29,9 +34,10 @@ python do_target_scp () {
MMC2 = "/dev/mmcblk0p2"
MMC2MNT = "/mnt/mmc2"
cmd = "tar -czvf "+WORKDIR+"/image.tar.gz -C "+WORKDIR+"/image ."
print("cmd: "+cmd)
subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
#cmd = "tar -czvf "+WORKDIR+"/image.tar.gz -C "+WORKDIR+"/image ."
#print("cmd: "+cmd)
#subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
cmd = "ping "+REMOTE_IP+" -c 1"
print("cmd: "+cmd)
...
...
@@ -43,9 +49,9 @@ python do_target_scp () {
nandboot = command_over_ssh(d,"'if [ -d /tmp/rootfs.ro ]; then echo 1; else echo 0;fi'")
if COPY_TO_NAND=='1':
print("Copy to NAND")
if nandboot=="1":
#copy archive
cmd = "scp -i "+IDENTITY_FILE+" -p "+WORKDIR+"/image.tar.gz "+REMOTE_USER+"@"+REMOTE_IP+":/"
...
...
classes/elphel-ssh.bbclass
View file @
0b779300
# Need this function in another reipe
# Need this function in another re
c
ipe
def command_over_ssh(d,command):
import subprocess
...
...
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