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
34f6997b
Commit
34f6997b
authored
Nov 24, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools-update creates links to tools to write usb or create iso
parent
05cea007
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
tools-update_1.0.bb
recipes-help/tools-update/tools-update_1.0.bb
+52
-0
No files found.
recipes-help/tools-update/tools-update_1.0.bb
0 → 100644
View file @
34f6997b
SUMMARY = "helper script"
DESCRIPTION = "compare built versions with the ones on the target system"
AUTHOR = "Elphel Inc."
HOMEPAGE = "http://www3.elphel.com/"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
deltask do_fetch
deltask do_unpack
deltask do_patch
deltask do_configure
deltask do_compile
deltask do_install
deltask do_populate_sysroot
deltask do_populate_lic
deltask do_rm_work
#deltask do_build
inherit nopackages
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS = ""
PACKAGES = ""
do_run[nostamp] = "1"
VPATH = "${TOPDIR}/../../tools/elphel-tools-update"
python do_run(){
import os
import subprocess
VPATH = d.getVar('VPATH' , True)
DEPLOY_DIR_IMAGE = d.getVar('DEPLOY_DIR_IMAGE' , True)
# mmc
PRODUCTION_DIR = d.getVar('PRODUCTION_DIR' , True)
for file in os.listdir(VPATH):
fname,fext = os.path.splitext(file)
if fext==".py":
#create link
if os.path.isfile(DEPLOY_DIR_IMAGE+"/"+PRODUCTION_DIR+"/"+file):
cmd = "rm "+DEPLOY_DIR_IMAGE+"/"+PRODUCTION_DIR+"/"+file
subprocess.call(cmd,shell=True)
cmd = "ln -sf "+VPATH+"/"+file+" "+DEPLOY_DIR_IMAGE+"/"+PRODUCTION_DIR
subprocess.call(cmd,shell=True)
}
addtask do_run before do_build
\ No newline at end of file
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