From bbde3797cbe1d506e252dbe2194cfc9b19c80a0c Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Mon, 8 May 2017 13:30:51 -0500 Subject: [PATCH] Make binary depend on config directly --- tools/toolchains/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index d63dc5f2ec..ff47c36643 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -1008,7 +1008,10 @@ class mbedToolchain: map = join(tmp_path, name + '.map') r.objects = sorted(set(r.objects)) - if self.need_update(elf, r.objects + r.libraries + [r.linker_script]): + config_file = ([self.config.app_config_location] + if self.config.app_config_location else []) + if self.need_update(elf, r.objects + r.libraries + [r.linker_script] + + config_file): needed_update = True self.progress("link", name) self.link(elf, r.objects, r.libraries, r.lib_dirs, r.linker_script)