Message ID | 1539954845-26716-3-git-send-email-thuth@redhat.com |
---|---|
State | New |
Headers | show |
Series | Add more CONFIG switches to make the build more modular | expand |
On 19 October 2018 at 14:14, Thomas Huth <thuth@redhat.com> wrote: > If the user only wants to compile targets that do not require the > "split-irq" device, we should also not compile split-irq.c. Add a proper > CONFIG_SPLIT_IRQ switch to be able to choose this more flexibly. > > Signed-off-by: Thomas Huth <thuth@redhat.com> > --- > default-configs/arm-softmmu.mak | 1 + > hw/core/Makefile.objs | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak > index dc6a581..a3a3b66 100644 > --- a/default-configs/arm-softmmu.mak > +++ b/default-configs/arm-softmmu.mak > @@ -5,6 +5,7 @@ include usb.mak > CONFIG_VGA=y > CONFIG_NAND=y > CONFIG_OR_IRQ=y > +CONFIG_SPLIT_IRQ=y > CONFIG_ECC=y > CONFIG_SERIAL=y > CONFIG_SERIAL_ISA=y Generic device, not arm-specific. thanks -- PMM
diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak index dc6a581..a3a3b66 100644 --- a/default-configs/arm-softmmu.mak +++ b/default-configs/arm-softmmu.mak @@ -5,6 +5,7 @@ include usb.mak CONFIG_VGA=y CONFIG_NAND=y CONFIG_OR_IRQ=y +CONFIG_SPLIT_IRQ=y CONFIG_ECC=y CONFIG_SERIAL=y CONFIG_SERIAL_ISA=y diff --git a/hw/core/Makefile.objs b/hw/core/Makefile.objs index 29b5cfd..cafbe01 100644 --- a/hw/core/Makefile.objs +++ b/hw/core/Makefile.objs @@ -18,7 +18,7 @@ common-obj-$(CONFIG_FITLOADER) += loader-fit.o common-obj-$(CONFIG_SOFTMMU) += qdev-properties-system.o common-obj-$(CONFIG_SOFTMMU) += register.o common-obj-$(CONFIG_OR_IRQ) += or-irq.o -common-obj-$(CONFIG_SOFTMMU) += split-irq.o +common-obj-$(CONFIG_SPLIT_IRQ) += split-irq.o common-obj-$(CONFIG_PLATFORM_BUS) += platform-bus.o common-obj-$(CONFIG_SOFTMMU) += generic-loader.o
If the user only wants to compile targets that do not require the "split-irq" device, we should also not compile split-irq.c. Add a proper CONFIG_SPLIT_IRQ switch to be able to choose this more flexibly. Signed-off-by: Thomas Huth <thuth@redhat.com> --- default-configs/arm-softmmu.mak | 1 + hw/core/Makefile.objs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)