Commit 808d03f8 authored by Andrey Filippov's avatar Andrey Filippov

Added selection of the board revision

parent 79065178
...@@ -58,12 +58,16 @@ python do_deploy(){ ...@@ -58,12 +58,16 @@ python do_deploy(){
MACHINE_DEVICETREE = d.getVar('MACHINE_DEVICETREE', True) MACHINE_DEVICETREE = d.getVar('MACHINE_DEVICETREE', True)
PRODUCTION_DEVICETREE = d.getVar('PRODUCTION_DEVICETREE', True) PRODUCTION_DEVICETREE = d.getVar('PRODUCTION_DEVICETREE', True)
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" BOARD_REVISION = d.getVar('BOARD_REVISION', True)
if not BOARD_REVISION:
BOARD_REVISION = "revC"
dtb_dir_path = os.path.join(DEPLOY_DIR_IMAGE,"dtb") dtb_dir_path = os.path.join(DEPLOY_DIR_IMAGE,"dtb")
os.makedirs(dtb_dir_path,exist_ok=True) os.makedirs(dtb_dir_path,exist_ok=True)
#debug
# with open('/home/eyesis/git/elphel393/attic/debug/dbg01.log','a') as ff:
# print("BOARD_REVISION='"+BOARD_REVISION+"'",file = ff)
# print("-----",file = ff)
for f in os.listdir(B): for f in os.listdir(B):
shutil.copyfile(os.path.join(B,f),os.path.join(dtb_dir_path,f)) shutil.copyfile(os.path.join(B,f),os.path.join(dtb_dir_path,f))
...@@ -71,7 +75,7 @@ python do_deploy(){ ...@@ -71,7 +75,7 @@ python do_deploy(){
if not DTS_NAME.startswith("elphel393_eyesis"): if not DTS_NAME.startswith("elphel393_eyesis"):
dtb_name = DTS_NAME+"_"+BOARD_DEFAULT_REVISION+"_"+RLOC+".dtb" dtb_name = DTS_NAME+"_"+BOARD_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)
......
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