Skip to contentSkip to conversation

package/links: graphics mode does not depend on DirectFB or X11

PATCH New Urja Rannikko 2 participants 3 messages Apr 23, 2021 – Apr 27, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/links: graphics mode does not depend on DirectFB or X11

The "fb" framebuffer driver does not have any special dependencies.

---
 package/links/Config.in | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
package/links/Config.in +1 -2
index 713f53da4e..64683ac772 100644
@@ -10,11 +10,10 @@ if BR2_PACKAGE_LINKS
 
 config BR2_PACKAGE_LINKS_GRAPHICS
 	bool "use graphics"
-	depends on 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.
 	  Otherwise links will be text-mode only.
 
 endif
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/1 package/links: graphics mode does not depend on DirectFB or X11

Hello Urja,

Quoted 3 lines · On Fri, 23 Apr 2021 14:21:18 +0300 Urja Rannikko <[email protected]> wrote:

The "fb" framebuffer driver does not have any special dependencies.

Thanks a lot for your contribution, but unfortunately, with the patch you posted, links doesn't build anymore:

configure: error: No graphics drivers found.
make: *** [package/pkg-generic.mk:240: /home/thomas/projets/buildroot/output/build/links-2.21/.stamp_configured] Error 1

Tested configuration:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_LINKS=y
BR2_PACKAGE_LINKS_GRAPHICS=y
# BR2_TARGET_ROOTFS_TAR is not set

Could you have a look ?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

PATCH 1/1 package/links: graphics mode does not depend on DirectFB or X11

Hi,

Quoted 30 lines · Thomas Petazzoni

Hello Urja,

Quoted 3 lines · On Fri, 23 Apr 2021 14:21:18 +0300 Urja Rannikko <[email protected]> wrote:

The "fb" framebuffer driver does not have any special dependencies.

Thanks a lot for your contribution, but unfortunately, with the patch you posted, links doesn't build anymore:

configure: error: No graphics drivers found.
make: *** [package/pkg-generic.mk:240: /home/thomas/projets/buildroot/output/build/links-2.21/.stamp_configured] Error 1

Tested configuration:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_LINKS=y
BR2_PACKAGE_LINKS_GRAPHICS=y
# BR2_TARGET_ROOTFS_TAR is not set

Quoted 1 line

Could you have a look ?

Ah, you're right and my patch is wrong :)

The missing dependency that links wants for framebuffer is GPM (console mouse). You can verify that by adding this to the config, it should build:
BR2_PACKAGE_GPM=y

I'll send a new patch with dependency on one of GPM, DirectFB or XORG. This one is kinda funny to me tho... Have mouse? get graphics... I missed it because I wanted mouse support on the linux console to begin with, should've built as minimal as possible to test, sigh...