Descending into subdirectories with modules via subdir-y worked up to
5.3-rc1 but was never designed to do so, see
https://patchwork.kernel.org/patch/11059033. We are supposed to use
obj-m here as well.

Don't migrate the other subdirs because that causes warnings such as

cat: /data/jailhouse/hypervisor/modules.order: No such file or directory

due to missing module targets there.

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

diff --git a/Kbuild b/Kbuild
index 7cbde529..0b25e26e 100644
--- a/Kbuild
+++ b/Kbuild
@@ -51,14 +51,16 @@ GEN_PCI_DEFS_PY := $(obj)/pyjailhouse/pci_defs.py
 $(GEN_PCI_DEFS_PY): $(src)/scripts/gen_pci_defs.sh
        $(call if_changed,gen_pci_defs)
 
-subdir-y := driver hypervisor configs inmates tools
+subdir-y := hypervisor configs inmates tools
 
 subdir-ccflags-y := -Werror
 
+obj-m := driver/
+
 # Do not generate files by creating dependencies if we are cleaning up
 ifeq ($(filter %/Makefile.clean,$(MAKEFILE_LIST)),)
 
-$(addprefix $(obj)/,$(subdir-y)): $(GEN_CONFIG_MK)
+$(obj)/driver $(addprefix $(obj)/,$(subdir-y)): $(GEN_CONFIG_MK)
 
 $(obj)/driver $(obj)/hypervisor: $(GEN_VERSION_H)
 
-- 
2.16.4

-- 
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/d6841667-0a83-a2ce-d34a-2bd7cef9f8a2%40siemens.com.

Reply via email to