Commit 7b9d1e09 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

copy to mcc on real hw

parent f8b96cb3
# developers version
inherit elphel-misc
inherit elphel-misc elphel-scp
do_unpack(){
if [ -d ${S} ]; then
......@@ -24,6 +24,8 @@ EXTRA_OEMAKE = " \
ELPHEL_KERNEL_DIR=${STAGING_KERNEL_DIR} \
STAGING_KERNEL_DIR=${STAGING_KERNEL_DIR} \
STAGING_DIR_HOST=${STAGING_DIR_HOST} \
REMOTE_USER=${REMOTE_USER} \
REMOTE_IP=${REMOTE_IP} \
"
do_compile_prepend() {
......
# Adding support for scp files to the target (similar to install) ---
do_target_scp () {
SOURCE_PATH="${D}/*"
# echo "scp -pr ${SOURCE_PATH} ${REMOTE_USER}@${REMOTE_IP}:/"
scp -pr ${SOURCE_PATH} ${REMOTE_USER}@${REMOTE_IP}:/
}
addtask do_target_scp after do_install
do_target_scp[doc] = "scp installed files to the target. TARGET_USER and TARGET_IP should be defined (ssh-copy-id TARGET_USER@TARGET_USER should be issued once)"
EXPORT_FUNCTIONS do_target_scp
#REMOTE_USER=root
#REMOTE_IP=192.168.0.7
#DESTDIR=/home/eyesis/git/elphel393/poky/build/tmp/work/cortexa9-neon-poky-linux-gnueabi/web-393/1_0-4/image
# echo "REMOTE_USER=${REMOTE_USER}"
# echo "REMOTE_IP=${REMOTE_IP}"
# echo "DESTDIR=${D}"
#scp -pr image/* root@192.168.0.7:/
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