new file mode 100644
@@ -0,0 +1,24 @@
+From: Michael Drake <michael.drake@codethink.co.uk>
+Date: Thu, 31 Oct 2019 17:14:20 +0000
+Subject: [PATCH] CEF: Don't enforce Widevine.
+
+Allow the library to be built without Widevine support.
+
+Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
+Signed-off-by: Thomas Preston <thomas.preston@codethink.co.uk>
+
+diff --git a/BUILD.gn b/BUILD.gn
+index f5dd5cad..b37080cb 100644
+--- a/cef/BUILD.gn
++++ b/cef/BUILD.gn
+@@ -246,9 +246,6 @@ assert(enable_basic_printing)
+ assert(enable_print_preview)
+ assert(!enable_service_discovery)
+
+-# Enable support for Widevine CDM.
+-assert(enable_widevine)
+-
+ if (is_clang) {
+ # Don't use the chrome style plugin.
+ assert(!clang_use_chrome_plugins)
+
@@ -95,6 +95,12 @@ config BR2_PACKAGE_LIBCEF_CEFSIMPLE
help
Enables libcef example application cefsimple.
+config BR2_PACKAGE_LIBCEF_WIDEVINE
+ bool "Enable Widevine support in libcef."
+ select BR2_PACKAGE_WIDEVINE
+ help
+ Enables Widevine key system support.
+
config BR2_PACKAGE_LIBCEF_VAAPI
bool "Enable va-api support in libcef."
depends on BR2_x86_64
@@ -220,6 +220,13 @@ else
LIBCEF_GN_DEFINES += use_pulseaudio=false
endif
+ifeq ($(BR2_PACKAGE_LIBCEF_WIDEVINE),y)
+LIBCEF_GN_DEFINES += enable_widevine=true
+LIBCEF_DEPENDENCIES += widevine
+else
+LIBCEF_GN_DEFINES += enable_widevine=false
+endif
+
ifeq ($(BR2_PACKAGE_LIBCEF_VAAPI),y)
LIBCEF_GN_DEFINES += use_vaapi=true
LIBCEF_DEPENDENCIES += libva