waf: don't use hard-coded path for environment cache path
The path for the "non-board" environment cache file was hard-coded, which was causing the error below when the build was configured with the --out option value different from the default path. Traceback (most recent call last): File "/home/gjsousa/ardupilot/modules/waf/waflib/Scripting.py", line 161, in waf_entry_point run_commands() File "/home/gjsousa/ardupilot/modules/waf/waflib/Scripting.py", line 263, in run_commands ctx = run_command(cmd_name) File "/home/gjsousa/ardupilot/modules/waf/waflib/Scripting.py", line 247, in run_command ctx.execute() File "/home/gjsousa/ardupilot/modules/waf/waflib/Scripting.py", line 598, in execute return execute_method(self) File "/home/gjsousa/ardupilot/modules/waf/waflib/Build.py", line 250, in execute self.execute_build() File "/home/gjsousa/ardupilot/modules/waf/waflib/Build.py", line 263, in execute_build self.recurse([self.run_dir]) File "/home/gjsousa/ardupilot/modules/waf/waflib/Context.py", line 304, in recurse user_function(self) File "/home/gjsousa/ardupilot/wscript", line 246, in build config_header = Utils.h_file(bld.bldnode.make_node('ap_config.h').abspath()) File "/home/gjsousa/ardupilot/modules/waf/waflib/Utils.py", line 208, in h_file f = open(fname, 'rb') IOError: [Errno 2] No such file or directory: '/tmp/build/ap_config.h'
This commit is contained in:
parent
cda21a3d78
commit
472dae3ed9
Loading…
Reference in New Issue
Block a user