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
Show 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() {
...
@@ -57,6 +57,8 @@ do_install_append() {
oe_runmake ${EXTRA_OEMAKE} install
oe_runmake ${EXTRA_OEMAKE} install
install -d ${D}/etc/elphel393/packages
install -d ${D}/etc/elphel393/packages
echo "${PE}.${PV}.${PR}" > ${D}/etc/elphel393/packages/${BPN}
echo "${PE}.${PV}.${PR}" > ${D}/etc/elphel393/packages/${BPN}
#make archive
tar -czvf ${WORKDIR}/image.tar.gz -C ${WORKDIR}/image .
}
}
# Always start from compile
# Always start from compile
...
...
classes/elphel-scp.bbclass
View file @
0b779300
...
@@ -16,6 +16,11 @@ inherit elphel-ssh
...
@@ -16,6 +16,11 @@ inherit elphel-ssh
# ssh -i ${IDENTITY_FILE} ${REMOTE_USER}@${REMOTE_IP} ${SSH_COMMAND}
# ssh -i ${IDENTITY_FILE} ${REMOTE_USER}@${REMOTE_IP} ${SSH_COMMAND}
#}
#}
#python () {
# #d.setVarFlag('do_target_scp', 'fakeroot', '1')
# print("test")
#}
python do_target_scp () {
python do_target_scp () {
import subprocess
import subprocess
...
@@ -29,9 +34,10 @@ python do_target_scp () {
...
@@ -29,9 +34,10 @@ python do_target_scp () {
MMC2 = "/dev/mmcblk0p2"
MMC2 = "/dev/mmcblk0p2"
MMC2MNT = "/mnt/mmc2"
MMC2MNT = "/mnt/mmc2"
cmd = "tar -czvf "+WORKDIR+"/image.tar.gz -C "+WORKDIR+"/image ."
#cmd = "tar -czvf "+WORKDIR+"/image.tar.gz -C "+WORKDIR+"/image ."
print("cmd: "+cmd)
#print("cmd: "+cmd)
subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
#subprocess.check_output(cmd,stderr=subprocess.STDOUT,shell=True)
cmd = "ping "+REMOTE_IP+" -c 1"
cmd = "ping "+REMOTE_IP+" -c 1"
print("cmd: "+cmd)
print("cmd: "+cmd)
...
...
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):
def command_over_ssh(d,command):
import subprocess
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