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
7b9d1e09
Commit
7b9d1e09
authored
Aug 15, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy to mcc on real hw
parent
f8b96cb3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
elphel-dev.bbclass
classes/elphel-dev.bbclass
+3
-1
elphel-scp.bbclass
classes/elphel-scp.bbclass
+21
-0
No files found.
classes/elphel-dev.bbclass
View file @
7b9d1e09
# 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() {
...
...
classes/elphel-scp.bbclass
0 → 100644
View file @
7b9d1e09
# 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:/
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