Commit 983dddf4 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed compile

parent cfa9c097
...@@ -95,6 +95,8 @@ python do_compile(){ ...@@ -95,6 +95,8 @@ python do_compile(){
WORKDIR = d.getVar('WORKDIR', True) WORKDIR = d.getVar('WORKDIR', True)
PRODUCTION_ROOT_LOCATION = d.getVar('PRODUCTION_ROOT_LOCATION', True) PRODUCTION_ROOT_LOCATION = d.getVar('PRODUCTION_ROOT_LOCATION', True)
DEVICETREE_FLAGS = d.getVar('DEVICETREE_FLAGS', True) DEVICETREE_FLAGS = d.getVar('DEVICETREE_FLAGS', True)
if DEVICETREE_FLAGS is None:
DEVICETREE_FLAGS = ''
for f in os.listdir(WORKDIR): for f in os.listdir(WORKDIR):
if f.endswith(".dts"): if f.endswith(".dts"):
...@@ -109,15 +111,19 @@ python do_compile(){ ...@@ -109,15 +111,19 @@ python do_compile(){
else: else:
print("Device tree type: 10393 (regular)") print("Device tree type: 10393 (regular)")
f = os.path.join(WORKDIR,f)
if not eyesis: if not eyesis:
for RLOC in PRODUCTION_ROOT_LOCATION.split(): for RLOC in PRODUCTION_ROOT_LOCATION.split():
os.system("ln -sf "+WORKDIR+"/elphel393-bootargs-"+RLOC+".dtsi "+WORKDIR+"/elphel393-bootargs.dtsi") os.system("ln -sf "+WORKDIR+"/elphel393-bootargs-"+RLOC+".dtsi "+WORKDIR+"/elphel393-bootargs.dtsi")
for REV in ["rev0-B","revC"]: for REV in ["rev0-B","revC"]:
os.system("ln -sf "+WORKDIR+"/elphel393-revision-"+REV+".dtsi "+WORKDIR+"/elphel393-revision.dtsi") os.system("ln -sf "+WORKDIR+"/elphel393-revision-"+REV+".dtsi "+WORKDIR+"/elphel393-revision.dtsi")
os.system("dtc -I dts -O dtb "+DEVICETREE_FLAGS+" -o "+DTS_NAME+"_"+REV+"_"+RLOC+".dtb "+f) os.system("dtc -I dts -O dtb "+str(DEVICETREE_FLAGS)+" -o "+DTS_NAME+"_"+REV+"_"+RLOC+".dtb "+f)
else: else:
for RLOC in PRODUCTION_ROOT_LOCATION.split(): for RLOC in PRODUCTION_ROOT_LOCATION.split():
os.system("dtc -I dts -O dtb "+DEVICETREE_FLAGS+" -o "+DTS_NAME+"_"+RLOC+".dtb "+f) print("running: ")
print("dtc -I dts -O dtb "+str(DEVICETREE_FLAGS)+" -o "+DTS_NAME+"_"+RLOC+".dtb "+f)
os.system("dtc -I dts -O dtb "+str(DEVICETREE_FLAGS)+" -o "+DTS_NAME+"_"+RLOC+".dtb "+f)
} }
python do_install(){ python do_install(){
......
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