From: Jan Kiszka <[email protected]>

To avoid rebuilding things needlessly after b5a39e1746dc, targets must
be maintained. At the same time, we were missing the dependency on the
input file in the rule. And that dependency should then not be
hard-coded into the generator macro.

Signed-off-by: Jan Kiszka <[email protected]>
---
 Kbuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Kbuild b/Kbuild
index c12f1aef..2258a62c 100644
--- a/Kbuild
+++ b/Kbuild
@@ -46,14 +46,16 @@ $(GEN_VERSION_H): $(src)/Makefile FORCE
 
 quiet_cmd_gen_pci_defs = GEN     $@
 define cmd_gen_pci_defs
-       $< $(src)/include/jailhouse/pci_defs.h > $@
+       $(filter-out FORCE,$^) > $@
 endef
 
 GEN_PCI_DEFS_PY := $(obj)/pyjailhouse/pci_defs.py
 
-$(GEN_PCI_DEFS_PY): $(src)/scripts/gen_pci_defs.sh FORCE
+$(GEN_PCI_DEFS_PY): $(src)/scripts/gen_pci_defs.sh 
$(src)/include/jailhouse/pci_defs.h FORCE
        $(call if_changed,gen_pci_defs)
 
+targets += pyjailhouse/pci_defs.py
+
 subdir-y := hypervisor configs inmates tools
 
 obj-m := driver/
-- 
2.35.3

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/4372aaef-9f12-d45d-23d5-45e9f2e64fae%40siemens.com.

Reply via email to