Skip to contentSkip to conversation

memory-device: simplify Makefile.objs conditions

PATCH In review Paolo Bonzini 3 participants 3 messages Oct 21, 2019 – Oct 22, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memory-device: simplify Makefile.objs conditions

hw/mem/ is only included if CONFIG_MEM_DEVICE is true, so we need not specify the condition again in hw/mem/Makefile.objs.

---
 hw/mem/Makefile.objs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/mem/Makefile.objs +1 -1
index 3e2f7c5ca2..56345befd0 100644
@@ -1,3 +1,3 @@
 common-obj-$(CONFIG_DIMM) += pc-dimm.o
-common-obj-$(CONFIG_MEM_DEVICE) += memory-device.o
+common-obj-y += memory-device.o
 common-obj-$(CONFIG_NVDIMM) += nvdimm.o
Signature · 1 line
2.21.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Paolo Bonzini

hw/mem/ is only included if CONFIG_MEM_DEVICE is true, so we need not specify the condition again in hw/mem/Makefile.objs.

Yes, cleaner.

Quoted 15 lines
---
  hw/mem/Makefile.objs | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/mem/Makefile.objs +1 -1
index 3e2f7c5ca2..56345befd0 100644
@@ -1,3 +1,3 @@
  common-obj-$(CONFIG_DIMM) += pc-dimm.o
-common-obj-$(CONFIG_MEM_DEVICE) += memory-device.o
+common-obj-y += memory-device.o
  common-obj-$(CONFIG_NVDIMM) += nvdimm.o
Reviewed-by on v1 1/1
#2 lore raw
In reply to Paolo Bonzini
Quoted 14 lines · Paolo Bonzini

hw/mem/ is only included if CONFIG_MEM_DEVICE is true, so we need not specify the condition again in hw/mem/Makefile.objs.

---
 hw/mem/Makefile.objs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/mem/Makefile.objs +0 -0
index 3e2f7c5ca2..56345befd0 100644

hw/mem/Makefile.objs line 3

Quoted 4 lines
hw/mem/Makefile.objs +1 -1
@@ -1,3 +1,3 @@
 common-obj-$(CONFIG_DIMM) += pc-dimm.o
-common-obj-$(CONFIG_MEM_DEVICE) += memory-device.o
+common-obj-y += memory-device.o
 common-obj-$(CONFIG_NVDIMM) += nvdimm.o