mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
ramfb: move stubs out of stubs/
Since the ramfb stubs are needed exactly when the Kconfig symbols are not needed, move them to hw/display/ and compile them when ramfb.c is absent. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20240408155330.522792-14-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5837db4650
commit
5643190b74
3 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,7 @@ hw_display_modules = {}
|
|||
system_ss.add(when: 'CONFIG_DDC', if_true: files('i2c-ddc.c'))
|
||||
system_ss.add(when: 'CONFIG_EDID', if_true: files('edid-generate.c', 'edid-region.c'))
|
||||
|
||||
system_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('ramfb.c'))
|
||||
system_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('ramfb.c'), if_false: files('ramfb-stubs.c'))
|
||||
system_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('ramfb-standalone.c'))
|
||||
|
||||
system_ss.add(when: 'CONFIG_VGA_CIRRUS', if_true: files('cirrus_vga.c'))
|
||||
|
|
15
hw/display/ramfb-stubs.c
Normal file
15
hw/display/ramfb-stubs.c
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "hw/display/ramfb.h"
|
||||
|
||||
const VMStateDescription ramfb_vmstate = {};
|
||||
|
||||
void ramfb_display_update(QemuConsole *con, RAMFBState *s)
|
||||
{
|
||||
}
|
||||
|
||||
RAMFBState *ramfb_setup(Error **errp)
|
||||
{
|
||||
error_setg(errp, "ramfb support not available");
|
||||
return NULL;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue