Skip to contentSkip to conversation

package: add kmscon

PATCH New qblade 2 participants 2 messages Apr 3, 2021 – Apr 4, 2021

lore
Share & tools
lore

qblade

author
#0 lore raw

PATCH 2/2 package: add kmscon

#1 lore raw

PATCH 2/2 package: add kmscon

"qblade", All,

Thanks for your contribution! :-) Please see below a few comments...

On 2021-04-03 14:17 +0000, qblade via buildroot spake thusly:

Quoted 6 lines

From fe3afe752b75094eaa1e67d3130a78b82487ccac Mon Sep 17 00:00:00 2001
From: qblade <[email protected]>
Date: Sat, 3 Apr 2021 14:10:11 +0000
Subject: [PATCH 2/2] package: add kmscon

We will need you to submit using your real name, please, both as the author of the commit (i.e. as the mail From:) and in the Signed-off-by line.

Quoted 28 lines
---
 package/Config.in          |  1 +
 package/kmscon/Config.in   | 13 +++++++++++++
 package/kmscon/kmscon.hash |  2 ++
 package/kmscon/kmscon.mk   | 14 ++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/kmscon/Config.in
 create mode 100644 package/kmscon/kmscon.hash
 create mode 100644 package/kmscon/kmscon.mk
package/Config.in +1 -0
index ca86e3dd2e..4d689a88b4 100644
@@ -321,6 +321,7 @@ comment "Graphic libraries"
 	source "package/freerdp/Config.in"
 	source "package/graphicsmagick/Config.in"
 	source "package/imagemagick/Config.in"
+        source "package/kmscon/Config.in"
 	source "package/linux-fusion/Config.in"
 	source "package/lite/Config.in"
 	source "package/mesa3d/Config.in"
package/kmscon/Config.in new file +0 -0
new file mode 100644
index 0000000000..356d5f497d

package/kmscon/Config.in line 4

Quoted 4 lines
package/kmscon/Config.in new file +4 -0
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_KMSCON
+	bool "kmscon"
+	depends on BR2_PACKAGE_HAS_UDEV
+	depends on BR2_TOOLCHAIN_HAS_SSP

The order of dependencies are:
- architeciture dependencies (none here)
- toolchain dependencies (SSP; threads, see below)
- system dependencies (udev)
- other packages (none here)

package/kmscon/Config.in line 5

Quoted 1 line
package/kmscon/Config.in new file +1 -0
+	select BR2_PACKAGE_LIBDRM

libdrm dependends on threads, so you need to propagate that dependency:
depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm

package/kmscon/Config.in line 7

Quoted 2 lines
package/kmscon/Config.in new file +2 -0
+	select BR2_PACKAGE_LIBTSM
+	select BR2_PACKAGE_XKEYBOARD_CONFIG # keyboard layout support

No need for the comment, except as it is a runtime dependency:

select BR2_PACKAGE_XKEYBOARD_CONFIG # runtime

package/kmscon/Config.in line 13

Quoted 6 lines
package/kmscon/Config.in new file +6 -0
+	help
+	  Kmscon is a simple terminal emulator based on linux kernel
+	  mode setting (KMS). It is an attempt to replace the in-kernel
+	  VT implementation with a userspace console.
+
+	https://www.freedesktop.org/wiki/Software/kmscon/

This there are dependencies on toolchain fetures, you will want to add a comment:

    comment "kmscon needs udev, and a toolchain w/ SSP, threads"
        depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_TOOLCHAIN_HAS_SSP \
                || !BR2_PACKAGE_HAS_UDEV
Quoted 14 lines
package/kmscon/kmscon.hash new file +2 -0
new file mode 100644
index 0000000000..134e39285b
@@ -0,0 +1,2 @@
+sha256 9f4a8c643dc8c7f551cf0f1bd4c6059a019c162c147178aa00a5c09eff8b9fbe  kmscon-01dd0a231e2125a40ceba5f59fd945ff29bf2cdc.tar.gz
+sha256 bf738bc59e8608b783e35d61f49705cdbf668b611d13a32483d734c38dc289f9  COPYING
package/kmscon/kmscon.mk new file +0 -0
new file mode 100644
index 0000000000..03e075f019

package/kmscon/kmscon.mk line 10

Quoted 10 lines
package/kmscon/kmscon.mk new file +10 -0
@@ -0,0 +1,14 @@
+################################################################################
+#
+# kmscon
+#
+################################################################################
+
+KMSCON_VERSION = 01dd0a231e2125a40ceba5f59fd945ff29bf2cdc
+KMSCON_SITE = $(call github,Aetf,kmscon,$(KMSCON_VERSION))
+KMSCON_AUTORECONF = YES
+KMSCON_DEPENDENCIES = host-automake host-autoconf host-libtool libxkbcommon libtsm udev libdrm

host-automake, host-autoconf, and host-libtool are already implied by the autootls-package infrastructure. Keep the other dependencies in alphabetical order.

Care to address the above and respin a new iteration, please?

Regards,
Yann E. MORIN.

Quoted 12 lines
package/kmscon/kmscon.mk new file +4 -1
+KMSCON_LICENSE = MIT, LGPL-2.1+, BSD-2-Clause, GPL-2.0+
+KMSCON_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
--

2.31.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'