]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Add object_files.lst as dependency of lib target
authorYonghong Zhu <yonghong.zhu@intel.com>
Mon, 4 Dec 2017 02:25:43 +0000 (10:25 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Sun, 10 Dec 2017 00:56:56 +0000 (08:56 +0800)
Seems object_files.lst is not added as dependency of lib target, this
patch update BaseTools to generate Makefile with this dependency.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/AutoGen/GenMake.py

index 2abfdb3ac471dc243e0dbe94a0aee124077cb38d..7d3374a493734f661e111acb6c53692618b13587 100644 (file)
@@ -958,6 +958,8 @@ cleanlib:
                 # Use file list macro as dependency\r
                 if T.GenFileListMacro:\r
                     Deps.append("$(%s)" % T.FileListMacro)\r
+                    if Type in [TAB_OBJECT_FILE, TAB_STATIC_LIBRARY]:\r
+                        Deps.append("$(%s)" % T.ListFileMacro)\r
 \r
                 TargetDict = {\r
                     "target"    :   self.PlaceMacro(T.Target.Path, self.Macros),\r