Commit 0efdded4 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

recipe to package naming fixed

parent 904edceb
...@@ -109,14 +109,14 @@ def deep_analysis(local,remote): ...@@ -109,14 +109,14 @@ def deep_analysis(local,remote):
else: else:
recstr = bcolors.FAIL+recstr+bcolors.ENDC recstr = bcolors.FAIL+recstr+bcolors.ENDC
pl = getname(pl,"","recipe_to_package") pl = getname(pl,"","recipe_to_package")
update_list = update_list + " " + pl update_list = update_list+" bitbake "+pl+" -c target_scp -f\n"
if not prfound: if not prfound:
recstr = bcolors.WARNING+recstr+bcolors.ENDC recstr = bcolors.WARNING+recstr+bcolors.ENDC
pl = getname(pl,"","recipe_to_package") pl = getname(pl,"","recipe_to_package")
update_list = update_list + " " + pl update_list = update_list+" bitbake "+pl+" -c target_scp -f\n"
print(recstr) print(recstr)
print("\nTo sync the software on the target run:\n bitbake"+update_list+" -c target_scp -f") print("\nTo sync the software on the target run:\n"+update_list)
# all exceptions in one place # all exceptions in one place
def getname(name,project,mode): def getname(name,project,mode):
...@@ -126,11 +126,12 @@ def getname(name,project,mode): ...@@ -126,11 +126,12 @@ def getname(name,project,mode):
if mode=="project_to_recipe": if mode=="project_to_recipe":
if name.find(project_prefix)==0: if name.find(project_prefix)==0:
name = name[len(project_prefix):] name = name[len(project_prefix):]
if project.find(package_prefix)==0:
name = package_prefix+name if project.find(package_prefix)==0:
name = package_prefix+name
#only exception #only exception
if name=="fpga-x393_sata": if name=="fpga-x393_sata":
name="fpga-x393sata" name="fpga-x393sata"
return name return name
elif mode=="recipe_to_package": elif mode=="recipe_to_package":
......
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