waf: allow for no param default support

this allows apj files to be built for example fw
This commit is contained in:
Andrew Tridgell 2019-02-13 18:42:38 +11:00
parent ee83f228e1
commit e71514c136

View File

@ -75,9 +75,7 @@ class set_default_parameters(Task.Task):
sys.path.append(os.path.dirname(apj_tool))
from apj_tool import embedded_defaults
defaults = embedded_defaults(self.inputs[0].abspath())
if not defaults.find():
print("Error: Param defaults support not found in firmware")
sys.exit(1)
if defaults.find():
defaults.set_file(abs_default_parameters)
defaults.save()