From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH v2 6/9] fbdev: make configurable at compile time.
Date: Thu, 13 Sep 2012 11:19:46 +0200 [thread overview]
Message-ID: <1347527989-3986-7-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1347527989-3986-1-git-send-email-kraxel@redhat.com>
Add CONFIG_FBDEV, add --enable-fbdev and --disable-fbdev
configure switches so fbdev can be enabled/disabled at
compile time.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
configure | 12 ++++++++++++
qmp.c | 2 +-
ui/Makefile.objs | 2 +-
vl.c | 4 ++--
4 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/configure b/configure
index 7656c32..0e095dc 100755
--- a/configure
+++ b/configure
@@ -149,6 +149,7 @@ docs=""
fdt=""
nptl=""
sdl=""
+fbdev="no"
virtfs=""
vnc="yes"
sparse="no"
@@ -528,6 +529,7 @@ Haiku)
usb="linux"
kvm="yes"
vhost_net="yes"
+ fbdev="yes"
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
audio_possible_drivers="$audio_possible_drivers fmod"
fi
@@ -659,6 +661,10 @@ for opt do
;;
--enable-sdl) sdl="yes"
;;
+ --disable-fbdev) fbdev="no"
+ ;;
+ --enable-fbdev) fbdev="yes"
+ ;;
--disable-virtfs) virtfs="no"
;;
--enable-virtfs) virtfs="yes"
@@ -1073,6 +1079,8 @@ echo " --disable-strip disable stripping binaries"
echo " --disable-werror disable compilation abort on warning"
echo " --disable-sdl disable SDL"
echo " --enable-sdl enable SDL"
+echo " --disable-fbdev disable linux framebuffer"
+echo " --enable-fbdev enable linux framebuffer"
echo " --disable-virtfs disable VirtFS"
echo " --enable-virtfs enable VirtFS"
echo " --disable-vnc disable VNC"
@@ -3127,6 +3135,7 @@ if test "$darwin" = "yes" ; then
echo "Cocoa support $cocoa"
fi
echo "SDL support $sdl"
+echo "fbdev support $fbdev"
echo "curses support $curses"
echo "curl support $curl"
echo "mingw32 support $mingw32"
@@ -3335,6 +3344,9 @@ if test "$sdl" = "yes" ; then
echo "CONFIG_SDL=y" >> $config_host_mak
echo "SDL_CFLAGS=$sdl_cflags" >> $config_host_mak
fi
+if test "$fbdev" = "yes" ; then
+ echo "CONFIG_FBDEV=y" >> $config_host_mak
+fi
if test "$cocoa" = "yes" ; then
echo "CONFIG_COCOA=y" >> $config_host_mak
fi
diff --git a/qmp.c b/qmp.c
index 7f6cc0b..060d804 100644
--- a/qmp.c
+++ b/qmp.c
@@ -393,7 +393,7 @@ void qmp_change(const char *device, const char *target,
void qmp_fbdev(bool enable, Error **errp)
{
-#if defined(CONFIG_LINUX)
+#if defined(CONFIG_FBDEV)
DisplayState *ds = get_displaystate();
if (enable) {
diff --git a/ui/Makefile.objs b/ui/Makefile.objs
index 55ddcf2..479cd01 100644
--- a/ui/Makefile.objs
+++ b/ui/Makefile.objs
@@ -12,4 +12,4 @@ common-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
common-obj-$(CONFIG_COCOA) += cocoa.o
common-obj-$(CONFIG_CURSES) += curses.o
common-obj-$(CONFIG_VNC) += $(vnc-obj-y)
-common-obj-$(CONFIG_LINUX) += fbdev.o
+common-obj-$(CONFIG_FBDEV) += fbdev.o
diff --git a/vl.c b/vl.c
index 18982b2..d39352c 100644
--- a/vl.c
+++ b/vl.c
@@ -3041,7 +3041,7 @@ int main(int argc, char **argv, char **envp)
fprintf(stderr, "SDL support is disabled\n");
exit(1);
#endif
-#ifdef CONFIG_LINUX
+#ifdef CONFIG_FBDEV
case QEMU_OPTION_fbdev:
display_type = DT_FBDEV;
break;
@@ -3686,7 +3686,7 @@ int main(int argc, char **argv, char **envp)
curses_display_init(ds, full_screen);
break;
#endif
-#if defined(CONFIG_LINUX)
+#if defined(CONFIG_FBDEV)
case DT_FBDEV:
if (fbdev_display_init(ds, NULL) != 0) {
exit(1);
--
1.7.1
next prev parent reply other threads:[~2012-09-13 9:20 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-13 9:19 [Qemu-devel] [PATCH v2 0/9] linux framebuffer display driver Gerd Hoffmann
2012-09-13 9:19 ` [Qemu-devel] [PATCH v2 1/9] QLIST-ify display change listeners Gerd Hoffmann
2012-09-13 9:19 ` [Qemu-devel] [PATCH v2 2/9] add unregister_displaychangelistener Gerd Hoffmann
2012-09-13 9:19 ` [Qemu-devel] [PATCH v2 3/9] move set_mouse + cursor_define callbacks Gerd Hoffmann
2012-09-13 9:19 ` [Qemu-devel] [PATCH v2 4/9] fbdev: add linux framebuffer display driver Gerd Hoffmann
2012-09-13 16:22 ` Markus Armbruster
2012-09-13 9:19 ` [Qemu-devel] [PATCH v2 5/9] fbdev: add monitor command to enable/disable Gerd Hoffmann
2012-09-13 16:16 ` Markus Armbruster
2012-09-13 9:19 ` Gerd Hoffmann [this message]
2012-09-13 9:19 ` [Qemu-devel] [PATCH v2 7/9] fbdev: move to pixman Gerd Hoffmann
2012-09-13 9:19 ` [Qemu-devel] [PATCH v2 8/9] fbdev: add mouse pointer support Gerd Hoffmann
2012-09-13 9:19 ` [Qemu-devel] [PATCH v2 9/9] fbdev: add display scaling support Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1347527989-3986-7-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).