waf: use abspath for EXTRA_HWDEF

this allows auto-reconfigure
This commit is contained in:
Andrew Tridgell 2021-06-25 17:43:54 +10:00
parent d6088539b7
commit cc5d368a98
1 changed files with 2 additions and 0 deletions

View File

@ -314,6 +314,8 @@ def configure(cfg):
cfg.env.ENABLE_STATS = cfg.options.enable_stats cfg.env.ENABLE_STATS = cfg.options.enable_stats
cfg.env.HWDEF_EXTRA = cfg.options.extra_hwdef cfg.env.HWDEF_EXTRA = cfg.options.extra_hwdef
if cfg.env.HWDEF_EXTRA:
cfg.env.HWDEF_EXTRA = os.path.abspath(cfg.env.HWDEF_EXTRA)
cfg.env.OPTIONS = cfg.options.__dict__ cfg.env.OPTIONS = cfg.options.__dict__