Skip to content

Instantly share code, notes, and snippets.

@xerpi
Last active February 20, 2016 22:23
Show Gist options
  • Save xerpi/2d7aec998402a568d5b1 to your computer and use it in GitHub Desktop.
Save xerpi/2d7aec998402a568d5b1 to your computer and use it in GitHub Desktop.
buildroot-3ds.patch
diff --git a/package/Config.in b/package/Config.in
index 09c2b40..7660673 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -905,6 +905,7 @@ menu "Graphics"
source "package/powervr/Config.in"
source "package/tiff/Config.in"
source "package/wayland/Config.in"
+ source "package/wayland-protocols/Config.in"
source "package/webkit/Config.in"
source "package/webkitgtk24/Config.in"
source "package/webp/Config.in"
diff --git a/package/wayland-protocols/Config.in b/package/wayland-protocols/Config.in
new file mode 100644
index 0000000..c5e965a
--- /dev/null
+++ b/package/wayland-protocols/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_WAYLAND_PROTOCOLS
+ bool "wayland-protocols"
+ depends on !BR2_STATIC_LIBS # dlfcn.h
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ select BR2_PACKAGE_LIBFFI
+ select BR2_PACKAGE_EXPAT
+ select BR2_PACKAGE_WAYLAND
+ help
+ wayland-protocols contains protocols and protocol extensions
+ complementing the Wayland core protocol with additional functionality.
+
+ http://wayland.freedesktop.org/
+
+comment "wayland-protocols needs a toolchain w/ threads, dynamic library"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
diff --git a/package/wayland-protocols/wayland-protocols.hash b/package/wayland-protocols/wayland-protocols.hash
new file mode 100644
index 0000000..0f2dbf4
--- /dev/null
+++ b/package/wayland-protocols/wayland-protocols.hash
@@ -0,0 +1,2 @@
+# From: http://lists.freedesktop.org/archives/wayland-devel/2015-November/025759.html
+sha256 a538a8e3f999f2722897eb60aa2e2b53d879381b413b630957d58a9acd226def wayland-protocols-1.0.tar.xz
diff --git a/package/wayland-protocols/wayland-protocols.mk b/package/wayland-protocols/wayland-protocols.mk
new file mode 100644
index 0000000..cb159aa
--- /dev/null
+++ b/package/wayland-protocols/wayland-protocols.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# wayland-protocols
+#
+################################################################################
+
+WAYLAND_PROTOCOLS_VERSION = 1.0
+WAYLAND_PROTOCOLS_SITE = http://wayland.freedesktop.org/releases
+WAYLAND_PROTOCOLS_SOURCE = wayland-protocols-$(WAYLAND_PROTOCOLS_VERSION).tar.xz
+WAYLAND_PROTOCOLS_LICENSE = MIT
+WAYLAND_PROTOCOLS_LICENSE_FILES = COPYING
+
+WAYLAND_PROTOCOLS_DEPENDENCIES = wayland
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))
diff --git a/package/wayland/wayland.hash b/package/wayland/wayland.hash
index 316d6b5..105ac17 100644
--- a/package/wayland/wayland.hash
+++ b/package/wayland/wayland.hash
@@ -1,2 +1,2 @@
-# From: http://lists.freedesktop.org/archives/wayland-devel/2015-June/022630.html
-sha256 f17c938d1c24fd0a10f650a623a2775d329db3168b5732e498b08388ec776fc8 wayland-1.8.1.tar.xz
+# From: http://lists.freedesktop.org/archives/wayland-devel/2015-September/024302.html
+sha256 9c8770720aa0034479735f58a4dc4ca9b172ecfede28f5134312e135b7301efa wayland-1.9.0.tar.xz
diff --git a/package/wayland/wayland.mk b/package/wayland/wayland.mk
index 4e44fa0..7474c11 100644
--- a/package/wayland/wayland.mk
+++ b/package/wayland/wayland.mk
@@ -4,7 +4,7 @@
#
################################################################################
-WAYLAND_VERSION = 1.8.1
+WAYLAND_VERSION = 1.9.0
WAYLAND_SITE = http://wayland.freedesktop.org/releases
WAYLAND_SOURCE = wayland-$(WAYLAND_VERSION).tar.xz
WAYLAND_LICENSE = MIT
@@ -14,7 +14,7 @@ WAYLAND_INSTALL_STAGING = YES
WAYLAND_DEPENDENCIES = libffi host-pkgconf host-wayland expat
# wayland-scanner is only needed for building, not on the target
-WAYLAND_CONF_OPTS = --disable-scanner
+WAYLAND_CONF_OPTS = --disable-scanner --with-host-scanner
# We must provide a specialy-crafted wayland-scanner .pc file
# which we vampirise and adapt from the host-wayland copy
diff --git a/package/weston/weston.hash b/package/weston/weston.hash
index e7bc2bb..32035c9 100644
--- a/package/weston/weston.hash
+++ b/package/weston/weston.hash
@@ -1,2 +1,2 @@
-# From http://lists.freedesktop.org/archives/wayland-devel/2015-June/022416.html
-sha256 8963e69f328e815cec42c58046c4af721476c7541bb7d9edc71740fada5ad312 weston-1.8.0.tar.xz
+# From http://lists.freedesktop.org/archives/wayland-devel/2015-September/024303.html
+sha256 9c1b03f3184fa0b0dfdf67e215048085156e1a2ca344af6613fed36794ac48cf weston-1.9.0.tar.xz
diff --git a/package/weston/weston.mk b/package/weston/weston.mk
index 4ad89ce..cad2106 100644
--- a/package/weston/weston.mk
+++ b/package/weston/weston.mk
@@ -4,7 +4,7 @@
#
################################################################################
-WESTON_VERSION = 1.8.0
+WESTON_VERSION = 1.9.0
WESTON_SITE = http://wayland.freedesktop.org/releases
WESTON_SOURCE = weston-$(WESTON_VERSION).tar.xz
WESTON_LICENSE = MIT
@@ -52,6 +52,8 @@ WESTON_CONF_OPTS += --enable-rpi-compositor \
--disable-xwayland-test \
--disable-simple-egl-clients \
WESTON_NATIVE_BACKEND=rpi-backend.so
+else ifeq ($(BR2_PACKAGE_WESTON_FBDEV),y)
+WESTON_CONF_OPTS += --enable-clients WESTON_NATIVE_BACKEND=fbdev-backend.so
else
WESTON_CONF_OPTS += --disable-rpi-compositor
endif # BR2_PACKAGE_WESTON_RPI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment