Skip to contentSkip to conversation

qemu/x86_64: add midori samples for wayland and x11r7

PATCH New Gustavo Zacarias 1 participant 2 messages Dec 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu/x86_64: add midori samples for wayland and x11r7

---
 board/qemu/x86_64/linux-fb.config                  |  2 +
 .../x86_64/midori_overlay/etc/X11/xinit/xinitrc    |  4 ++
 board/qemu/x86_64/midori_overlay/etc/fb.modes      |  4 ++
 .../qemu/x86_64/midori_overlay/etc/init.d/S98audio |  4 ++
 board/qemu/x86_64/midori_overlay/etc/init.d/S99gui | 12 ++++++
 board/qemu/x86_64/midori_overlay/etc/weston.ini    | 44 +++++++++++++++++++++
 .../x86_64/midori_overlay/usr/share/fluxbox/init   |  7 ++++
 .../x86_64/midori_overlay/usr/share/fluxbox/menu   | 46 ++++++++++++++++++++++
 configs/midori_wayland_x86_64_defconfig            | 33 ++++++++++++++++
 configs/midori_x11_x86_64_defconfig                | 39 ++++++++++++++++++
 10 files changed, 195 insertions(+)
 create mode 100644 board/qemu/x86_64/linux-fb.config
 create mode 100644 board/qemu/x86_64/midori_overlay/etc/X11/xinit/xinitrc
 create mode 100644 board/qemu/x86_64/midori_overlay/etc/fb.modes
 create mode 100755 board/qemu/x86_64/midori_overlay/etc/init.d/S98audio
 create mode 100755 board/qemu/x86_64/midori_overlay/etc/init.d/S99gui
 create mode 100644 board/qemu/x86_64/midori_overlay/etc/weston.ini
 create mode 100644 board/qemu/x86_64/midori_overlay/usr/share/fluxbox/init
 create mode 100644 board/qemu/x86_64/midori_overlay/usr/share/fluxbox/menu
 create mode 100644 configs/midori_wayland_x86_64_defconfig
 create mode 100644 configs/midori_x11_x86_64_defconfig
board/qemu/x86_64/linux-fb.config new file +2 -0
new file mode 100644
index 0000000..6c2e1e1
@@ -0,0 +1,2 @@
+CONFIG_DRM_BOCHS=y
+CONFIG_FB_VESA=y
board/qemu/x86_64/midori_overlay/etc/X11/xinit/xinitrc new file +4 -0
new file mode 100644
index 0000000..6554f32
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+midori http://www.buildroot.net &
+fluxbox
board/qemu/x86_64/midori_overlay/etc/fb.modes new file +4 -0
new file mode 100644
index 0000000..813c51c
@@ -0,0 +1,4 @@
+mode "1024x768-60"
+	geometry 1024 768 1024 768 24
+	timings 15385 160 24 29 3 136 6
+endmode
board/qemu/x86_64/midori_overlay/etc/init.d/S98audio new file +4 -0
new file mode 100755
index 0000000..bc960d3
@@ -0,0 +1,4 @@
+#!/bin/sh
+if [ -x /usr/bin/amixer ]; then
+  amixer set Master 100 unmute >/dev/null 2>&1
+fi
board/qemu/x86_64/midori_overlay/etc/init.d/S99gui new file +12 -0
new file mode 100755
index 0000000..62d70f5
@@ -0,0 +1,12 @@
+#!/bin/sh
+if [ -x /usr/bin/startx ]; then
+  startx
+fi
+
+if [ -x /usr/bin/weston ]; then
+  mkdir /tmp/root
+  chmod 700 /tmp/root
+  export XDG_RUNTIME_DIR=/tmp/root
+  fbset 1024x768-60
+  openvt -c 2 -s -- weston --backend=fbdev-backend.so --config=/etc/weston.ini --tty=2 --log=/tmp/weston.log
+fi
board/qemu/x86_64/midori_overlay/etc/weston.ini new file +44 -0

44 lines not on this page · raw message

board/qemu/x86_64/midori_overlay/usr/share/fluxbox/init new file +7 -0
new file mode 100644
index 0000000..34e17bc
@@ -0,0 +1,7 @@
+! If you're looking for settings to configure, they won't be saved here until
+! you change something in the fluxbox configuration menu.
+
+session.menuFile:	~/.fluxbox/menu
+session.keyFile: ~/.fluxbox/keys
+session.styleFile: /usr/share/fluxbox/styles/zimek_green
+session.configVersion:	13
board/qemu/x86_64/midori_overlay/usr/share/fluxbox/menu new file +46 -0

46 lines not on this page · raw message

configs/midori_wayland_x86_64_defconfig new file +33 -0
new file mode 100644
index 0000000..71ff19b
@@ -0,0 +1,33 @@
+BR2_x86_64=y
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="4.3"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_3=y
+BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
+BR2_TARGET_GENERIC_GETTY_PORT="tty1"
+BR2_SYSTEM_DHCP="enp0s3"
+BR2_ROOTFS_OVERLAY="board/qemu/x86_64/midori_overlay"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.3"
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86_64/linux-4.3.config"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/x86_64/linux-fb.config"
+BR2_PACKAGE_ALSA_UTILS=y
+BR2_PACKAGE_ALSA_UTILS_AMIXER=y
+BR2_PACKAGE_CANTARELL=y
+BR2_PACKAGE_INCONSOLATA=y
+BR2_PACKAGE_ADWAITA_ICON_THEME=y
+BR2_PACKAGE_HICOLOR_ICON_THEME=y
+BR2_PACKAGE_MESA3D=y
+BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
+BR2_PACKAGE_MESA3D_OPENGL_EGL=y
+BR2_PACKAGE_WESTON=y
+BR2_PACKAGE_MIDORI=y
+BR2_PACKAGE_LIBGTK3=y
+BR2_PACKAGE_WEBKITGTK210_HTTPS=y
+BR2_PACKAGE_WEBKITGTK210_MULTIMEDIA=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_EXTRA_BLOCKS=128000
+# BR2_TARGET_ROOTFS_TAR is not set
configs/midori_x11_x86_64_defconfig new file +39 -0
new file mode 100644
index 0000000..f8da49b
@@ -0,0 +1,39 @@
+BR2_x86_64=y
+BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+BR2_ENABLE_LOCALE_PURGE=y
+BR2_ENABLE_LOCALE_WHITELIST="C en_US"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
+BR2_TARGET_GENERIC_GETTY_PORT="tty1"
+BR2_SYSTEM_DHCP="enp0s3"
+BR2_ROOTFS_OVERLAY="board/qemu/x86_64/midori_overlay"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.3"
+BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
+BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86_64/linux-4.3.config"
+BR2_PACKAGE_CANTARELL=y
+BR2_PACKAGE_INCONSOLATA=y
+BR2_PACKAGE_ADWAITA_ICON_THEME=y
+BR2_PACKAGE_HICOLOR_ICON_THEME=y
+BR2_PACKAGE_MESA3D=y
+BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
+BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST=y
+BR2_PACKAGE_MESA3D_OPENGL_EGL=y
+BR2_PACKAGE_XORG7=y
+BR2_PACKAGE_XSERVER_XORG_SERVER=y
+BR2_PACKAGE_XAPP_XINIT=y
+BR2_PACKAGE_XAPP_XRANDR=y
+BR2_PACKAGE_XDRIVER_XF86_INPUT_EVDEV=y
+BR2_PACKAGE_XDRIVER_XF86_INPUT_KEYBOARD=y
+BR2_PACKAGE_XDRIVER_XF86_INPUT_MOUSE=y
+BR2_PACKAGE_XDRIVER_XF86_VIDEO_CIRRUS=y
+BR2_PACKAGE_XDRIVER_XF86_VIDEO_QXL=y
+BR2_PACKAGE_MIDORI=y
+BR2_PACKAGE_XTERM=y
+BR2_PACKAGE_FLUXBOX=y
+BR2_PACKAGE_LIBGTK3=y
+BR2_PACKAGE_WEBKITGTK210_HTTPS=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_EXTRA_BLOCKS=128000
+# BR2_TARGET_ROOTFS_TAR is not set
Signature · 1 line
2.4.10