* [Buildroot] [PATCH 1/3] weston: improve selection of compositor
@ 2013-10-11 21:00 Arnout Vandecappelle
2013-10-11 21:00 ` [Buildroot] [PATCH 2/3] weston: add missing toolchain comments Arnout Vandecappelle
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Arnout Vandecappelle @ 2013-10-11 21:00 UTC (permalink / raw)
To: buildroot
The way the compositor was selected in Config.in was counter-intuitive,
because the fbdev backend is selected by default even if a different one
is available.
Instead, select the fbdev backend only if no other one was selected by
the user.
Also re-ordered the compositor options, putting fbdev last. This is more
natural when the user wants to select both backends: after selecting the
RPi backend, the fbdev is automatically unselected but the user can move
one line down to select it again.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
package/weston/Config.in | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/package/weston/Config.in b/package/weston/Config.in
index 4532c28..fd48fb3 100644
--- a/package/weston/Config.in
+++ b/package/weston/Config.in
@@ -14,6 +14,8 @@ config BR2_PACKAGE_WESTON
depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
# Runtime dependency
select BR2_PACKAGE_XKEYBOARD_CONFIG
+ # Make sure at least one compositor is selected.
+ select BR2_PACKAGE_WESTON_FBDEV if !BR2_PACKAGE_WESTON_HAS_COMPOSITOR
help
Weston is the reference implementation of a Wayland
compositor, and a useful compositor in its own right.
@@ -24,17 +26,9 @@ config BR2_PACKAGE_WESTON
if BR2_PACKAGE_WESTON
-# These two options make sure at least one compositor is selected.
+# Helper to make sure at least one compositor is selected.
config BR2_PACKAGE_WESTON_HAS_COMPOSITOR
bool
-config BR2_PACKAGE_WESTON_NEEDS_ONE_COMPOSITOR
- def_bool y
- depends on ! BR2_PACKAGE_WESTON_HAS_COMPOSITOR
- select BR2_PACKAGE_WESTON_FBDEV
-
-config BR2_PACKAGE_WESTON_FBDEV
- bool "fbdev compositor"
- default y
config BR2_PACKAGE_WESTON_RPI
bool "RPi compositor"
@@ -45,4 +39,7 @@ config BR2_PACKAGE_WESTON_RPI
select BR2_PACKAGE_RPI_USERLAND
select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
+config BR2_PACKAGE_WESTON_FBDEV
+ bool "fbdev compositor"
+
endif
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 8+ messages in thread* [Buildroot] [PATCH 2/3] weston: add missing toolchain comments
2013-10-11 21:00 [Buildroot] [PATCH 1/3] weston: improve selection of compositor Arnout Vandecappelle
@ 2013-10-11 21:00 ` Arnout Vandecappelle
2013-10-11 21:10 ` Yann E. MORIN
2013-10-11 21:00 ` [Buildroot] [PATCH 3/3] weston: add help text for compositor backends Arnout Vandecappelle
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Arnout Vandecappelle @ 2013-10-11 21:00 UTC (permalink / raw)
To: buildroot
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
package/weston/Config.in | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/package/weston/Config.in b/package/weston/Config.in
index fd48fb3..ea0e87e 100644
--- a/package/weston/Config.in
+++ b/package/weston/Config.in
@@ -1,5 +1,5 @@
-comment "weston requires udev"
- depends on !BR2_PACKAGE_UDEV
+comment "weston needs udev and a toolchain w/ threads"
+ depends on !BR2_PACKAGE_UDEV || !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_WESTON
bool "weston"
@@ -30,6 +30,10 @@ if BR2_PACKAGE_WESTON
config BR2_PACKAGE_WESTON_HAS_COMPOSITOR
bool
+comment "RPi compositor needs a toolchain w/ C++, largefile, threads
+ depends on BR2_arm
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
+
config BR2_PACKAGE_WESTON_RPI
bool "RPi compositor"
depends on BR2_arm # rpi-userland
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 8+ messages in thread* [Buildroot] [PATCH 2/3] weston: add missing toolchain comments
2013-10-11 21:00 ` [Buildroot] [PATCH 2/3] weston: add missing toolchain comments Arnout Vandecappelle
@ 2013-10-11 21:10 ` Yann E. MORIN
0 siblings, 0 replies; 8+ messages in thread
From: Yann E. MORIN @ 2013-10-11 21:10 UTC (permalink / raw)
To: buildroot
Arnout, All,
On 2013-10-11 23:00 +0200, Arnout Vandecappelle (Essensium/Mind) spake thusly:
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> package/weston/Config.in | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/package/weston/Config.in b/package/weston/Config.in
> index fd48fb3..ea0e87e 100644
> --- a/package/weston/Config.in
> +++ b/package/weston/Config.in
> @@ -1,5 +1,5 @@
> -comment "weston requires udev"
> - depends on !BR2_PACKAGE_UDEV
> +comment "weston needs udev and a toolchain w/ threads"
> + depends on !BR2_PACKAGE_UDEV || !BR2_TOOLCHAIN_HAS_THREADS
Doh, I just forgot about this... Thanks! :-)
> config BR2_PACKAGE_WESTON
> bool "weston"
> @@ -30,6 +30,10 @@ if BR2_PACKAGE_WESTON
> config BR2_PACKAGE_WESTON_HAS_COMPOSITOR
> bool
>
> +comment "RPi compositor needs a toolchain w/ C++, largefile, threads
Missing terminating double-quotes.
> + depends on BR2_arm
> + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
> +
> config BR2_PACKAGE_WESTON_RPI
> bool "RPi compositor"
> depends on BR2_arm # rpi-userland
Otherwise:
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 3/3] weston: add help text for compositor backends
2013-10-11 21:00 [Buildroot] [PATCH 1/3] weston: improve selection of compositor Arnout Vandecappelle
2013-10-11 21:00 ` [Buildroot] [PATCH 2/3] weston: add missing toolchain comments Arnout Vandecappelle
@ 2013-10-11 21:00 ` Arnout Vandecappelle
2013-10-11 21:17 ` Yann E. MORIN
2013-10-11 21:23 ` [Buildroot] [PATCH 1/3] weston: improve selection of compositor Yann E. MORIN
2013-10-11 22:39 ` Yann E. MORIN
3 siblings, 1 reply; 8+ messages in thread
From: Arnout Vandecappelle @ 2013-10-11 21:00 UTC (permalink / raw)
To: buildroot
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
package/weston/Config.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/weston/Config.in b/package/weston/Config.in
index ea0e87e..4322aaa 100644
--- a/package/weston/Config.in
+++ b/package/weston/Config.in
@@ -42,8 +42,12 @@ config BR2_PACKAGE_WESTON_RPI
depends on BR2_TOOLCHAIN_HAS_THREADS # rpi-userland
select BR2_PACKAGE_RPI_USERLAND
select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
+ help
+ Compositor backend for the Raspberry Pi.
config BR2_PACKAGE_WESTON_FBDEV
bool "fbdev compositor"
+ help
+ Compositor backend for the Linux framebuffer.
endif
--
1.8.4.rc3
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 3/3] weston: add help text for compositor backends
2013-10-11 21:00 ` [Buildroot] [PATCH 3/3] weston: add help text for compositor backends Arnout Vandecappelle
@ 2013-10-11 21:17 ` Yann E. MORIN
0 siblings, 0 replies; 8+ messages in thread
From: Yann E. MORIN @ 2013-10-11 21:17 UTC (permalink / raw)
To: buildroot
Arnout, All,
On 2013-10-11 23:00 +0200, Arnout Vandecappelle (Essensium/Mind) spake thusly:
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> package/weston/Config.in | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/package/weston/Config.in b/package/weston/Config.in
> index ea0e87e..4322aaa 100644
> --- a/package/weston/Config.in
> +++ b/package/weston/Config.in
> @@ -42,8 +42,12 @@ config BR2_PACKAGE_WESTON_RPI
> depends on BR2_TOOLCHAIN_HAS_THREADS # rpi-userland
> select BR2_PACKAGE_RPI_USERLAND
> select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
> + help
> + Compositor backend for the Raspberry Pi.
>
> config BR2_PACKAGE_WESTON_FBDEV
> bool "fbdev compositor"
> + help
> + Compositor backend for the Linux framebuffer.
I am not sure adding such terse help entries is helpfull.
Surely "RPi compositor" is no less explicit than "Compositor backend for
the Raspberry Pi". Arguably, the prompt oculd be changed to "Raspberry Pi
compositor", which would be as much descriptive as the help entry.
Ditto for fbdev: the prompt is explicit enough, the help entry does not
add any value.
If I have to read a help entry, I expect to find more information than
the prompt provides. Just repeating the prompt (even in other trerms) is
just deceiving IMHO.
So, either we provide hepl entries that actually provide information
that can not fit in the prompt, or we do not provide help entries at
all.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/3] weston: improve selection of compositor
2013-10-11 21:00 [Buildroot] [PATCH 1/3] weston: improve selection of compositor Arnout Vandecappelle
2013-10-11 21:00 ` [Buildroot] [PATCH 2/3] weston: add missing toolchain comments Arnout Vandecappelle
2013-10-11 21:00 ` [Buildroot] [PATCH 3/3] weston: add help text for compositor backends Arnout Vandecappelle
@ 2013-10-11 21:23 ` Yann E. MORIN
2013-10-11 22:39 ` Yann E. MORIN
3 siblings, 0 replies; 8+ messages in thread
From: Yann E. MORIN @ 2013-10-11 21:23 UTC (permalink / raw)
To: buildroot
Arnout, All,
On 2013-10-11 23:00 +0200, Arnout Vandecappelle (Essensium/Mind) spake thusly:
> The way the compositor was selected in Config.in was counter-intuitive,
> because the fbdev backend is selected by default even if a different one
> is available.
>
> Instead, select the fbdev backend only if no other one was selected by
> the user.
Well, that was explictly what I wanted we I did the patch:
- always have at least one compositor
- have fbdev enabled by default, even if another one is selected.
But I agree this can be counter-intuitive to some, so I won't bar this
change.
> Also re-ordered the compositor options, putting fbdev last. This is more
> natural when the user wants to select both backends: after selecting the
> RPi backend, the fbdev is automatically unselected but the user can move
> one line down to select it again.
We usually put menu entries in alphabetical order. I understand what
you're trying to achieve here, but I'd prefer we be consistent in the
menu ordering.
>
> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
> package/weston/Config.in | 15 ++++++---------
> 1 file changed, 6 insertions(+), 9 deletions(-)
>
> diff --git a/package/weston/Config.in b/package/weston/Config.in
> index 4532c28..fd48fb3 100644
> --- a/package/weston/Config.in
> +++ b/package/weston/Config.in
> @@ -14,6 +14,8 @@ config BR2_PACKAGE_WESTON
> depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
> # Runtime dependency
> select BR2_PACKAGE_XKEYBOARD_CONFIG
> + # Make sure at least one compositor is selected.
> + select BR2_PACKAGE_WESTON_FBDEV if !BR2_PACKAGE_WESTON_HAS_COMPOSITOR
Indeed, BR2_PACKAGE_WESTON_NEEDS_ONE_COMPOSITOR is not needed, since we
can re-use BR2_PACKAGE_WESTON for the same purpose.
Except for the re-ordering, no problem for me.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/3] weston: improve selection of compositor
2013-10-11 21:00 [Buildroot] [PATCH 1/3] weston: improve selection of compositor Arnout Vandecappelle
` (2 preceding siblings ...)
2013-10-11 21:23 ` [Buildroot] [PATCH 1/3] weston: improve selection of compositor Yann E. MORIN
@ 2013-10-11 22:39 ` Yann E. MORIN
2013-10-12 10:58 ` Arnout Vandecappelle
3 siblings, 1 reply; 8+ messages in thread
From: Yann E. MORIN @ 2013-10-11 22:39 UTC (permalink / raw)
To: buildroot
Arnout, All,
I have more wayland/weston changes locally that I'll push over the
course of the WE.
So I'll take patches 1 (without the reordering) and 2 (with the quote
fix) in my branch.
Depending on further discussion on those three patches, I'll grab
whatever we end up settling on.
Thanks you!
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 8+ messages in thread* [Buildroot] [PATCH 1/3] weston: improve selection of compositor
2013-10-11 22:39 ` Yann E. MORIN
@ 2013-10-12 10:58 ` Arnout Vandecappelle
0 siblings, 0 replies; 8+ messages in thread
From: Arnout Vandecappelle @ 2013-10-12 10:58 UTC (permalink / raw)
To: buildroot
On 12/10/13 00:39, Yann E. MORIN wrote:
> Arnout, All,
>
> I have more wayland/weston changes locally that I'll push over the
> course of the WE.
>
> So I'll take patches 1 (without the reordering) and 2 (with the quote
> fix) in my branch.
OK thanks.
Regards,
Arnout
>
> Depending on further discussion on those three patches, I'll grab
> whatever we end up settling on.
>
> Thanks you!
>
> Regards,
> Yann E. MORIN.
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-10-12 10:58 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-11 21:00 [Buildroot] [PATCH 1/3] weston: improve selection of compositor Arnout Vandecappelle
2013-10-11 21:00 ` [Buildroot] [PATCH 2/3] weston: add missing toolchain comments Arnout Vandecappelle
2013-10-11 21:10 ` Yann E. MORIN
2013-10-11 21:00 ` [Buildroot] [PATCH 3/3] weston: add help text for compositor backends Arnout Vandecappelle
2013-10-11 21:17 ` Yann E. MORIN
2013-10-11 21:23 ` [Buildroot] [PATCH 1/3] weston: improve selection of compositor Yann E. MORIN
2013-10-11 22:39 ` Yann E. MORIN
2013-10-12 10:58 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox