summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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