Commit 0b779300 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

moved archiving to do_install because fakeroot

parent f159dd4a
......@@ -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
......
......@@ -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)
......
# Need this function in another reipe
# Need this function in another recipe
def command_over_ssh(d,command):
import subprocess
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment