* [Buildroot] [PATCH] package/links: enable building graphics mode with only fb driver
@ 2021-04-27 9:13 Urja Rannikko
2021-05-05 20:08 ` Arnout Vandecappelle
0 siblings, 1 reply; 4+ messages in thread
From: Urja Rannikko @ 2021-04-27 9:13 UTC (permalink / raw)
To: buildroot
The "fb" framebuffer driver needs GPM (mouse support) to compile,
but not DirectFB or Xorg.
Also added a Kconfig comment for easier discovery of the GPM
requirement.
Signed-off-by: Urja Rannikko <urjaman@gmail.com>
---
package/links/Config.in | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/package/links/Config.in b/package/links/Config.in
index 713f53da4e..cc2389c9f1 100644
--- a/package/links/Config.in
+++ b/package/links/Config.in
@@ -10,11 +10,15 @@ if BR2_PACKAGE_LINKS
config BR2_PACKAGE_LINKS_GRAPHICS
bool "use graphics"
- depends on BR2_PACKAGE_DIRECTFB || BR2_PACKAGE_XORG7
+ depends on BR2_PACKAGE_GPM || BR2_PACKAGE_DIRECTFB || BR2_PACKAGE_XORG7
select BR2_PACKAGE_XLIB_LIBXT if BR2_PACKAGE_XORG7
select BR2_PACKAGE_LIBPNG
help
- Enable graphics output for DirectFB or X11.
+ Enable graphics output for framebuffer, DirectFB or X11.
+ Framebuffer output requires GPM (console mouse).
Otherwise links will be text-mode only.
+comment "links graphics needs GPM, DirectFB or X11"
+ depends on !BR2_PACKAGE_GPM && !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7
+
endif
--
2.31.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/links: enable building graphics mode with only fb driver
2021-04-27 9:13 [Buildroot] [PATCH] package/links: enable building graphics mode with only fb driver Urja Rannikko
@ 2021-05-05 20:08 ` Arnout Vandecappelle
2021-05-14 9:26 ` Urja Rannikko
0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2021-05-05 20:08 UTC (permalink / raw)
To: buildroot
Hi Urja,
On 27/04/2021 11:13, Urja Rannikko wrote:
> The "fb" framebuffer driver needs GPM (mouse support) to compile,
> but not DirectFB or Xorg.
>
> Also added a Kconfig comment for easier discovery of the GPM
> requirement.
>
> Signed-off-by: Urja Rannikko <urjaman@gmail.com>
> ---
> package/links/Config.in | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/package/links/Config.in b/package/links/Config.in
> index 713f53da4e..cc2389c9f1 100644
> --- a/package/links/Config.in
> +++ b/package/links/Config.in
> @@ -10,11 +10,15 @@ if BR2_PACKAGE_LINKS
>
> config BR2_PACKAGE_LINKS_GRAPHICS
> bool "use graphics"
> - depends on BR2_PACKAGE_DIRECTFB || BR2_PACKAGE_XORG7
> + depends on BR2_PACKAGE_GPM || BR2_PACKAGE_DIRECTFB || BR2_PACKAGE_XORG7
Still not good enough, I'm afraid :-) You also need to depend on gpm in the .mk
file.
Also, I'm thinking: maybe we can turn this around and automatically select gpm?
select BR2_PACKAGE_GPM if !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7
That way you don't need the comment either. Well, you still do because gpm
depends on static:
depends on !BR2_STATIC_LIBS if !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7 # gpm
so the comment would become:
comment "links graphics needs dynamic libs, DirectFB or X11"
depends on BR2_STATIC_LIBS && !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7
Regards,
Arnout
> select BR2_PACKAGE_XLIB_LIBXT if BR2_PACKAGE_XORG7
> select BR2_PACKAGE_LIBPNG
> help
> - Enable graphics output for DirectFB or X11.
> + Enable graphics output for framebuffer, DirectFB or X11.
> + Framebuffer output requires GPM (console mouse).
> Otherwise links will be text-mode only.
>
> +comment "links graphics needs GPM, DirectFB or X11"
> + depends on !BR2_PACKAGE_GPM && !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7
> +
> endif
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/links: enable building graphics mode with only fb driver
2021-05-05 20:08 ` Arnout Vandecappelle
@ 2021-05-14 9:26 ` Urja Rannikko
2021-05-18 19:42 ` Arnout Vandecappelle
0 siblings, 1 reply; 4+ messages in thread
From: Urja Rannikko @ 2021-05-14 9:26 UTC (permalink / raw)
To: buildroot
Hi,
On Wed, May 5, 2021 at 11:08 PM Arnout Vandecappelle <arnout@mind.be> wrote:
>
> Still not good enough, I'm afraid :-) You also need to depend on gpm in the .mk
> file.
>
It already does, atleast that's how i read this fragment in links.mk:
ifeq ($(BR2_PACKAGE_GPM),y)
LINKS_CONF_OPTS += --with-gpm
LINKS_DEPENDENCIES += gpm
else
LINKS_CONF_OPTS += --without-gpm
endif
And yes links can use GPM in textmode-only build too, so that seems
correct as-is.
> Also, I'm thinking: maybe we can turn this around and automatically select gpm?
>
> select BR2_PACKAGE_GPM if !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7
>
> That way you don't need the comment either. Well, you still do because gpm
> depends on static:
>
> depends on !BR2_STATIC_LIBS if !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7 # gpm
>
> so the comment would become:
>
> comment "links graphics needs dynamic libs, DirectFB or X11"
> depends on BR2_STATIC_LIBS && !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7
>
I have no hard opinion on this, except that I do dislike possibly
non-obvious use of select
(and it has the dependency trouble you listed), which would leave GPM
selected if one
toggled links graphics on and off while using menuconfig.
--
Urja Rannikko
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/links: enable building graphics mode with only fb driver
2021-05-14 9:26 ` Urja Rannikko
@ 2021-05-18 19:42 ` Arnout Vandecappelle
0 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2021-05-18 19:42 UTC (permalink / raw)
To: buildroot
On 14/05/2021 11:26, Urja Rannikko wrote:
> Hi,
>
> On Wed, May 5, 2021 at 11:08 PM Arnout Vandecappelle <arnout@mind.be> wrote:
>>
>> Still not good enough, I'm afraid :-) You also need to depend on gpm in the .mk
>> file.
>>
> It already does, atleast that's how i read this fragment in links.mk:
>
> ifeq ($(BR2_PACKAGE_GPM),y)
> LINKS_CONF_OPTS += --with-gpm
> LINKS_DEPENDENCIES += gpm
> else
> LINKS_CONF_OPTS += --without-gpm
> endif
>
> And yes links can use GPM in textmode-only build too, so that seems
> correct as-is.
Oops, you're right, my bad.
Applied to next, thanks!
Regards,
Arnout
>
>> Also, I'm thinking: maybe we can turn this around and automatically select gpm?
>>
>> select BR2_PACKAGE_GPM if !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7
>>
>> That way you don't need the comment either. Well, you still do because gpm
>> depends on static:
>>
>> depends on !BR2_STATIC_LIBS if !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7 # gpm
>>
>> so the comment would become:
>>
>> comment "links graphics needs dynamic libs, DirectFB or X11"
>> depends on BR2_STATIC_LIBS && !BR2_PACKAGE_DIRECTFB && !BR2_PACKAGE_XORG7
>>
>
> I have no hard opinion on this, except that I do dislike possibly
> non-obvious use of select
> (and it has the dependency trouble you listed), which would leave GPM
> selected if one
> toggled links graphics on and off while using menuconfig.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-18 19:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 9:13 [Buildroot] [PATCH] package/links: enable building graphics mode with only fb driver Urja Rannikko
2021-05-05 20:08 ` Arnout Vandecappelle
2021-05-14 9:26 ` Urja Rannikko
2021-05-18 19:42 ` Arnout Vandecappelle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.