summaryrefslogtreecommitdiffstats
path: root/BaseTools/Conf
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2022-12-14 00:22:22 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-01-17 06:14:03 +0000
commitd05739a3ff88457ae3ce90db3e91e9d2a11949c8 (patch)
tree57114257e765d1c51af2c5063f97506b53a63cae /BaseTools/Conf
parent987cc09c7cf38d628063062483e2341fba679b0e (diff)
downloadedk2-d05739a3ff88457ae3ce90db3e91e9d2a11949c8.tar.gz
edk2-d05739a3ff88457ae3ce90db3e91e9d2a11949c8.tar.bz2
edk2-d05739a3ff88457ae3ce90db3e91e9d2a11949c8.zip
Fix cyclic dependency error on OptionROM build
EDKII build system supports OptionROM generation if particular PCI_* defines are present in the module INF file: ``` [Defines] ... PCI_VENDOR_ID = <...> PCI_DEVICE_ID = <...> PCI_CLASS_CODE = <...> PCI_REVISION = <...> ``` Although after the commit d372ab585a2cdc5348af5f701c56c631235fe698 ("BaseTools/Conf: Fix Dynamic-Library-File template") it is no longer possible. The build system fails with the error: ``` Cyclic dependency detected while generating rule for "<...>/DEBUG/<...>.efi" file ``` Remove "$(DEBUG_DIR)(+)$(MODULE_NAME).efi" from the 'dll' output files to fix the cyclic dependency. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Conf')
-rwxr-xr-xBaseTools/Conf/build_rule.template1
1 files changed, 0 insertions, 1 deletions
diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template
index ec83638144..d42e7937cc 100755
--- a/BaseTools/Conf/build_rule.template
+++ b/BaseTools/Conf/build_rule.template
@@ -342,7 +342,6 @@
<OutputFile>
$(OUTPUT_DIR)(+)$(MODULE_NAME).efi
- $(DEBUG_DIR)(+)$(MODULE_NAME).efi
$(OUTPUT_DIR)(+)$(MODULE_NAME).map
<Command.MSFT, Command.INTEL, Command.CLANGPDB>