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
Show 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,9 +59,18 @@ python do_deploy(){
...
@@ -59,9 +59,18 @@ python do_deploy(){
PRODUCTION_ROOT_LOCATION = d.getVar('PRODUCTION_ROOT_LOCATION', True)
PRODUCTION_ROOT_LOCATION = d.getVar('PRODUCTION_ROOT_LOCATION', True)
DTS_NAME = os.path.splitext(MACHINE_DEVICETREE)[0]
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():
for RLOC in PRODUCTION_ROOT_LOCATION.split():
dtb_name = DTS_NAME+"_"+RLOC+".dtb"
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_path = os.path.join(B,dtb_name)
dtb_build_path = os.path.join(DEPLOY_DIR_IMAGE,dtb_name)
dtb_build_path = os.path.join(DEPLOY_DIR_IMAGE,dtb_name)
rloc_path = os.path.join(DEPLOY_DIR_IMAGE,RLOC)
rloc_path = os.path.join(DEPLOY_DIR_IMAGE,RLOC)
...
@@ -73,11 +82,12 @@ python do_deploy(){
...
@@ -73,11 +82,12 @@ python do_deploy(){
os.system("install -d "+DEPLOY_DIR_IMAGE)
os.system("install -d "+DEPLOY_DIR_IMAGE)
os.system("install -m 0644 "+dtb_path+" "+dtb_build_path)
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(){
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