memory-device: simplify Makefile.objs conditions
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.
Signed-off-by Paolo Bonzini <[email protected]>
--- hw/mem/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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
Signature · 1 line
2.21.0
Quoted 2 lines · Paolo Bonzini
hw/mem/ is only included if
CONFIG_MEM_DEVICEis true, so we need not specify the condition again in hw/mem/Makefile.objs.
Yes, cleaner.
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 15 lines
Signed-off-by Paolo Bonzini <[email protected]>--- hw/mem/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)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
Quoted 14 lines · Paolo Bonzini
hw/mem/ is only included if
CONFIG_MEM_DEVICEis true, so we need not specify the condition again in hw/mem/Makefile.objs.Signed-off-by Paolo Bonzini <[email protected]>--- hw/mem/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/mem/Makefile.objs +0
-0
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
Reviewed-by Thomas Huth <[email protected]>