[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/7] build: fix device module builds
From: |
Gerd Hoffmann |
Subject: |
[PATCH v2 2/7] build: fix device module builds |
Date: |
Thu, 4 Jun 2020 15:16:38 +0200 |
See comment. Feels quite hackish. Better ideas anyone?
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
Makefile.target | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Makefile.target b/Makefile.target
index 8ed1eba95b9c..c70325df5796 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -179,6 +179,13 @@ endif # CONFIG_SOFTMMU
dummy := $(call unnest-vars,,obj-y)
all-obj-y := $(obj-y)
+#
+# common-obj-m has some crap here, probably as side effect from
+# filling obj-y. Clear it. Fixes suspious dependency errors when
+# building devices as modules.
+#
+common-obj-m :=
+
include $(SRC_PATH)/Makefile.objs
dummy := $(call unnest-vars,.., \
authz-obj-y \
--
2.18.4
- [PATCH v2 0/7] build some devices as modules., Gerd Hoffmann, 2020/06/04
- [PATCH v2 2/7] build: fix device module builds,
Gerd Hoffmann <=
- [PATCH v2 5/7] vga: build qxl as module, Gerd Hoffmann, 2020/06/04
- [PATCH v2 6/7] vga: build virtio-gpu only once, Gerd Hoffmann, 2020/06/04
- [PATCH v2 7/7] vga: build virtio-gpu as module, Gerd Hoffmann, 2020/06/04
- [PATCH v2 3/7] ccid: build smartcard as module, Gerd Hoffmann, 2020/06/04
- [PATCH v2 1/7] qdev: add support for device module loading, Gerd Hoffmann, 2020/06/04
- [PATCH v2 4/7] usb: build usb-redir as module, Gerd Hoffmann, 2020/06/04