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
68d130fe
Commit
68d130fe
authored
May 07, 2020
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finalized deploy function
parent
53fc4818
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
12 deletions
+22
-12
device-tree.bbappend
recipes-bsp/device-tree/device-tree.bbappend
+22
-12
No files found.
recipes-bsp/device-tree/device-tree.bbappend
View file @
68d130fe
...
...
@@ -59,25 +59,35 @@ python do_deploy(){
PRODUCTION_ROOT_LOCATION = d.getVar('PRODUCTION_ROOT_LOCATION', True)
DTS_NAME = os.path.splitext(MACHINE_DEVICETREE)[0]
BOARD_DEFAULT_REVISION = "revC"
dtb_dir_path = os.path.join(DEPLOY_DIR_IMAGE,"dtb")
os.makedirs(dtb_dir_path,exist_ok=True)
for f in os.listdir(B):
shutil.copyfile(os.path.join(B,f),os.path.join(dtb_dir_path,f))
for RLOC in PRODUCTION_ROOT_LOCATION.split():
dtb_name = DTS_NAME+"_"+RLOC+".dtb"
dtb_path = os.path.join(B,dtb_name)
dtb_build_path = os.path.join(DEPLOY_DIR_IMAGE,dtb_name)
rloc_path = os.path.join(DEPLOY_DIR_IMAGE,RLOC)
dtb_deploy_path = os.path.join(rloc_path,PRODUCTION_DEVICETREE)
if not os.path.exists(dtb_path):
print("Warning: "+dtb_path+" is not available")
if not DTS_NAME.startswith("elphel393_eyesis"):
dtb_name = DTS_NAME+"_"+BOARD_DEFAULT_REVISION+"_"+RLOC+".dtb"
dtb_path = os.path.join(B,dtb_name)
dtb_build_path = os.path.join(DEPLOY_DIR_IMAGE,dtb_name)
rloc_path = os.path.join(DEPLOY_DIR_IMAGE,RLOC)
dtb_deploy_path = os.path.join(rloc_path,PRODUCTION_DEVICETREE)
if not os.path.exists(dtb_path):
print("Warning: "+dtb_path+" is not available")
os.system("install -d "+DEPLOY_DIR_IMAGE)
os.system("install -m 0644 "+dtb_path+" "+dtb_build_path)
os.system("install -d "+DEPLOY_DIR_IMAGE)
os.system("install -m 0644 "+dtb_path+" "+dtb_build_path)
os.makedirs(rloc_path,exist_ok=True)
os.makedirs(rloc_path,exist_ok=True);
shutil.copyfile(dtb_build_path,dtb_deploy_path)
shutil.copyfile(dtb_build_path,
dtb_deploy_path)
print("Deployed "+
dtb_deploy_path)
print("Deployed "+dtb_deploy_path)
}
python do_compile(){
...
...
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