From: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] efl: do not force dependency on libudev by making eeze a config option.
Date: Tue, 3 Jan 2017 19:29:32 -0200 [thread overview]
Message-ID: <20170103212932.9254-3-barbieri@profusion.mobi> (raw)
In-Reply-To: <20170103212932.9254-1-barbieri@profusion.mobi>
Although highly recommended to be enabled, EFL's eeze can be disabled
and thus no dependency on libudev or dynamic device management.
Since 'BR2_PACKAGE_HAS_UDEV' has two ways to be satisfied (eudev or
systemd) we can't automatically select it, instead show a comment and
use 'depends on'.
Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
---
package/efl/Config.in | 25 ++++++++++++++++++++++---
package/efl/efl.mk | 9 ++++++++-
2 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/package/efl/Config.in b/package/efl/Config.in
index 542c354a8..f4cbc2806 100644
--- a/package/efl/Config.in
+++ b/package/efl/Config.in
@@ -4,7 +4,6 @@ config BR2_PACKAGE_EFL
depends on BR2_HOST_GCC_AT_LEAST_4_7
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
depends on BR2_INSTALL_LIBSTDCPP
- depends on BR2_PACKAGE_HAS_UDEV # libudev
depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS # luajit
depends on BR2_TOOLCHAIN_HAS_THREADS # untested without threads
depends on BR2_USE_MMU
@@ -37,6 +36,19 @@ config BR2_PACKAGE_EFL_BULLET
simply not tested so you are on your own in terms of
ensuring everything works if you do this.
+config BR2_PACKAGE_EFL_EEZE
+ bool "Enable eeze (udev) support (recommended)"
+ depends on BR2_PACKAGE_HAS_UDEV # libudev
+ default y
+ help
+ Eeze is EFL's hardware abstraction layer on top of udev.
+ Having it off will disable some hardware detetion, such as
+ 'drm' graphics engine or 'elput', as well as mounting
+ removable media.
+
+comment "eeze needs udev /dev management (eudev or systemd)"
+ depends on !BR2_PACKAGE_HAS_UDEV
+
config BR2_PACKAGE_EFL_FONTCONFIG
bool "Enable fontconfig support (recommended)"
select BR2_PACKAGE_FONTCONFIG
@@ -98,6 +110,7 @@ config BR2_PACKAGE_EFL_PULSEAUDIO
config BR2_PACKAGE_EFL_UTIL_LINUX_LIBMOUNT
bool "Enable libmount support (recommended)"
+ depends on BR2_PACKAGE_EFL_EEZE
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
# libblkid is part of required tools, see EFL's README.
@@ -108,9 +121,13 @@ config BR2_PACKAGE_EFL_UTIL_LINUX_LIBMOUNT
devices etc... and disabling this will hurt support for
Enlightenment and its filemanager.
+comment "efl's libmount support needs eeze"
+ depends on !BR2_PACKAGE_EFL_EEZE
+
config BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
bool
default y if BR2_PACKAGE_EFL_BULLET && \
+ BR2_PACKAGE_EFL_EEZE && \
BR2_PACKAGE_EFL_FONTCONFIG && \
BR2_PACKAGE_EFL_GSTREAMER1 && \
BR2_PACKAGE_EFL_LIBFRIBIDI && \
@@ -197,6 +214,7 @@ endchoice # OpenGL support
config BR2_PACKAGE_EFL_ELPUT
bool "Elput"
+ depends on BR2_PACKAGE_EFL_EEZE
select BR2_PACKAGE_LIBINPUT
select BR2_PACKAGE_LIBXKBCOMMON
help
@@ -207,6 +225,7 @@ config BR2_PACKAGE_EFL_ELPUT
config BR2_PACKAGE_EFL_DRM
bool "Evas DRM Engine"
+ depends on BR2_PACKAGE_EFL_EEZE
depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm
depends on BR2_PACKAGE_MESA3D_OPENGL_EGL # require libgbm from mesa3d
select BR2_PACKAGE_EFL_ELPUT
@@ -278,8 +297,8 @@ config BR2_PACKAGE_EFL_SVG
endif # BR2_PACKAGE_EFL
-comment "efl needs udev /dev management and a toolchain w/ C++, dynamic library, gcc >= 4.7, threads, wchar"
- depends on !BR2_PACKAGE_HAS_UDEV || !BR2_INSTALL_LIBSTDCPP \
+comment "efl needs a toolchain w/ C++, dynamic library, gcc >= 4.7, threads, wchar"
+ depends on !BR2_INSTALL_LIBSTDCPP \
|| !BR2_HOST_GCC_AT_LEAST_4_7 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 \
|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
depends on BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
diff --git a/package/efl/efl.mk b/package/efl/efl.mk
index ab08946c4..1e54f7281 100644
--- a/package/efl/efl.mk
+++ b/package/efl/efl.mk
@@ -20,7 +20,7 @@ EFL_LICENSE_FILES = \
EFL_INSTALL_STAGING = YES
EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
- jpeg luajit lz4 udev zlib
+ jpeg luajit lz4 zlib
# Configure options:
# --disable-lua-old: build elua for the target.
@@ -59,6 +59,13 @@ else
EFL_CONF_OPTS += --disable-cxx-bindings
endif
+ifeq ($(BR2_PACKAGE_EFL_EEZE),y)
+EFL_DEPENDENCIES += udev
+EFL_CONF_OPTS += --enable-libeeze
+else
+EFL_CONF_OPTS += --disable-libeeze
+endif
+
ifeq ($(BR2_PACKAGE_EFL_UTIL_LINUX_LIBMOUNT),y)
EFL_DEPENDENCIES += util-linux
EFL_CONF_OPTS += --enable-libmount
--
2.11.0
next prev parent reply other threads:[~2017-01-03 21:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-03 21:29 [Buildroot] [PATCH 0/2] efl: allow smaller builds Gustavo Sverzut Barbieri
2017-01-03 21:29 ` [Buildroot] [PATCH 1/2] efl: fix target package dependency on util-linux (libmount) Gustavo Sverzut Barbieri
2017-01-03 22:37 ` Romain Naour
2017-01-04 2:09 ` Gustavo Sverzut Barbieri
2017-01-05 23:20 ` Romain Naour
2017-01-06 12:42 ` Gustavo Sverzut Barbieri
2017-01-28 8:45 ` Thomas Petazzoni
2017-01-28 9:58 ` Thomas Petazzoni
2017-01-03 21:29 ` Gustavo Sverzut Barbieri [this message]
2017-01-03 22:20 ` [Buildroot] [PATCH 2/2] efl: do not force dependency on libudev by making eeze a config option Romain Naour
2017-01-04 1:10 ` Gustavo Sverzut Barbieri
2017-01-05 23:25 ` Romain Naour
2017-01-20 21:54 ` Romain Naour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170103212932.9254-3-barbieri@profusion.mobi \
--to=barbieri@profusion.mobi \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox