summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-04 18:13:28 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-04 18:13:40 +0200
commit05522ca5a7a93f153e74146fea51d8287f7b93ab (patch)
treef8f9c3a3231eb4f572e11c4f12d8b9758ff997fa
parent97886e9ba7ad1f967ba9790a18d2e05fd80915e7 (diff)
use Cirrus DRM and xf86-video-modesetting for Qemu
-rw-r--r--package/xf86-video-modesetting/Makefile28
-rw-r--r--target/config/Config.in.qemuopts4
-rw-r--r--target/linux/config/Config.in.graphics9
3 files changed, 39 insertions, 2 deletions
diff --git a/package/xf86-video-modesetting/Makefile b/package/xf86-video-modesetting/Makefile
new file mode 100644
index 000000000..453c36f41
--- /dev/null
+++ b/package/xf86-video-modesetting/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= xf86-video-modesetting
+PKG_VERSION:= 0.8.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 2d491acc5e5de7f9eae9e6dd1d0ee2fc
+PKG_DESCR:= x11 driver for kms
+PKG_SECTION:= x11/drivers
+PKG_DEPENDS:= xorg-server libstdcxx
+PKG_BUILDDEP:= xorg-server
+PKG_SITES:= ${MASTER_SITE_XORG}
+
+PKG_SYSTEM_DEPENDS:= qemu-x86 qemu-x86_64
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,XF86_VIDEO_MODESETTING,xf86-video-modesetting,$(PKG_VERSION)-$(PKG_RELEASE),${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+xf86-video-modesetting-install:
+ ${INSTALL_DIR} ${IDIR_XF86_VIDEO_MODESETTING}/usr/lib/xorg/modules/drivers
+ ${CP} ${WRKINST}/usr/lib/xorg/modules/drivers/modesetting_*.so \
+ ${IDIR_XF86_VIDEO_MODESETTING}/usr/lib/xorg/modules/drivers/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/target/config/Config.in.qemuopts b/target/config/Config.in.qemuopts
index 92a0a61c7..266d4abb4 100644
--- a/target/config/Config.in.qemuopts
+++ b/target/config/Config.in.qemuopts
@@ -65,10 +65,10 @@ config ADK_TARGET_QEMU_WITH_GRAPHIC
select ADK_KERNEL_FONT_8x16
select ADK_KERNEL_FB
select ADK_KERNEL_FRAMEBUFFER_CONSOLE
- select ADK_KERNEL_FB_SM501 if ADK_TARGET_SYSTEM_QEMU_SH4
- select ADK_KERNEL_FB_CIRRUS if ADK_TARGET_SYSTEM_QEMU_X86 || ADK_TARGET_SYSTEM_QEMU_X86_64
select ADK_KERNEL_INPUT
select ADK_KERNEL_INPUT_KEYBOARD
+ select ADK_KERNEL_FB_SM501 if ADK_TARGET_SYSTEM_QEMU_SH4
+ select ADK_KERNEL_DRM_CIRRUS_QEMU if ADK_TARGET_SYSTEM_QEMU_X86 || ADK_TARGET_SYSTEM_QEMU_X86_64
select ADK_KERNEL_KEYBOARD_ATKBD if ADK_TARGET_SYSTEM_QEMU_X86 || ADK_TARGET_SYSTEM_QEMU_X86_64
select ADK_KERNEL_USB_HID if ADK_TARGET_SYSTEM_QEMU_SH4
select ADK_KERNEL_USB_OHCI_HCD_PLATFORM if ADK_TARGET_SYSTEM_QEMU_SH4
diff --git a/target/linux/config/Config.in.graphics b/target/linux/config/Config.in.graphics
index fe7277442..8d9329c53 100644
--- a/target/linux/config/Config.in.graphics
+++ b/target/linux/config/Config.in.graphics
@@ -265,5 +265,14 @@ config ADK_HARDWARE_GRAPHICS_INTEL_I915
depends on ADK_TARGET_SYSTEM_IBM_X40
help
AGP/DRM/KMS support for Intel chipset i915.
+
+config ADK_KERNEL_DRM_CIRRUS_QEMU
+ prompt "Support for QEMU cirrus VGA emulation (DRM/KMS)"
+ boolean
+ select ADK_KERNEL_DRM
+ select ADK_KERNEL_FRAMEBUFFER_CONSOLE
+ depends on ADK_TARGET_SYSTEM_QEMU_X86 || ADK_TARGET_SYSTEM_QEMU_X86_64
+ help
+ DRM/KMS support for Qemu cirrus VGA emulation.
endmenu