initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
From ddb06335935ef1458fe98f99cdc5d5fe6757fd02 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Wed, 3 Oct 2018 19:06:40 +0200
|
||||
Subject: [PATCH] Fix linking error on mips64el
|
||||
|
||||
Patch that was fixing build on mips64el was reverted:
|
||||
https://github.com/brltty/brltty/commit/9e7d62c869d3c1cbe12dda8b0291a4692c193416
|
||||
|
||||
So fix the issue again, this time by checking if $(GCC) is available as
|
||||
suggested by Arnout during review of buildroot patch:
|
||||
https://patchwork.ozlabs.org/patch/972614
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/31f682838b3d3b2c7103b5c51f2aba0b89d4f630
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/brltty/brltty/pull/149]
|
||||
---
|
||||
configure.ac | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 1e2774abf..a488d3d52 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -481,7 +481,12 @@ AC_CACHE_CHECK([for make relocatable object command], [brltty_cv_prog_make_objec
|
||||
case "${host_os}"
|
||||
in
|
||||
*)
|
||||
- brltty_cv_prog_make_object_relocatable="\$(LD) -r -o"
|
||||
+ if test "${GCC}" = "yes"
|
||||
+ then
|
||||
+ brltty_cv_prog_make_object_relocatable="\$(CC) -shared -o"
|
||||
+ else
|
||||
+ brltty_cv_prog_make_object_relocatable="\$(LD) -r -o"
|
||||
+ fi
|
||||
;;
|
||||
esac])
|
||||
MKREL="${brltty_cv_prog_make_object_relocatable}"
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
config BR2_PACKAGE_BRLTTY
|
||||
bool "brltty"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HID if BR2_PACKAGE_BLUEZ5_UTILS # runtime
|
||||
help
|
||||
A daemon providing access to the Linux console for a blind
|
||||
person using a refreshable braille display.
|
||||
|
||||
http://brltty.app/
|
||||
|
||||
if BR2_PACKAGE_BRLTTY
|
||||
|
||||
config BR2_PACKAGE_BRLTTY_TEXT_TABLE
|
||||
string "text-table"
|
||||
|
||||
endif
|
||||
|
||||
comment "brltty needs a toolchain w/ dynamic lib, threads, wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
|
||||
@@ -0,0 +1,40 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# brltty Starts brltty.
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Starting brltty: "
|
||||
start-stop-daemon -S -q -p /var/run/brltty.pid \
|
||||
--exec /usr/bin/brltty -- -P /var/run/brltty.pid "$@"
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
stop() {
|
||||
printf "Stopping brltty: "
|
||||
start-stop-daemon -K -q -p /var/run/brltty.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
restart() {
|
||||
stop
|
||||
start "$@"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
force-reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|force-reload}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally computed
|
||||
sha256 bc7573b0d0ab865c36607945b64c209312405571788f3b409397726f6143eaa6 brltty-6.4.tar.xz
|
||||
sha256 d80c9d084ebfb50ea1ed91bfbc2410d6ce542097a32c43b00781b83adcb8c77f LICENSE-LGPL
|
||||
sha256 429be921e6bf783303a1f94cbb7f29dc4f0839e47efe38150b808f886028f4df README
|
||||
@@ -0,0 +1,140 @@
|
||||
################################################################################
|
||||
#
|
||||
# brltty
|
||||
#
|
||||
################################################################################
|
||||
|
||||
BRLTTY_VERSION = 6.4
|
||||
BRLTTY_SOURCE = brltty-$(BRLTTY_VERSION).tar.xz
|
||||
BRLTTY_SITE = http://brltty.com/archive
|
||||
BRLTTY_INSTALL_STAGING_OPTS = INSTALL_ROOT=$(STAGING_DIR) install
|
||||
BRLTTY_INSTALL_TARGET_OPTS = INSTALL_ROOT=$(TARGET_DIR) install
|
||||
BRLTTY_LICENSE = LGPL-2.1+
|
||||
BRLTTY_LICENSE_FILES = LICENSE-LGPL README
|
||||
|
||||
BRLTTY_DEPENDENCIES = \
|
||||
$(TARGET_NLS_DEPENDENCIES) \
|
||||
host-autoconf \
|
||||
host-gawk \
|
||||
host-pkgconf \
|
||||
$(if $(BR2_PACKAGE_AT_SPI2_CORE),at-spi2-core)
|
||||
|
||||
BRLTTY_CONF_ENV = \
|
||||
PKG_CONFIG_FOR_BUILD=$(HOST_DIR)/bin/pkgconf
|
||||
|
||||
BRLTTY_CONF_OPTS = \
|
||||
--disable-java-bindings \
|
||||
--disable-lisp-bindings \
|
||||
--disable-ocaml-bindings \
|
||||
--disable-python-bindings \
|
||||
--disable-tcl-bindings \
|
||||
--disable-x \
|
||||
--without-espeak-ng \
|
||||
--without-midi-package \
|
||||
--without-mikropuhe --without-speechd --without-swift \
|
||||
--without-theta
|
||||
|
||||
# Autoreconf is needed because we're patching configure.ac in
|
||||
# 0001-Fix-linking-error-on-mips64el. However, a plain autoreconf doesn't work,
|
||||
# because this package is only autoconf-based.
|
||||
define BRLTTY_AUTOCONF
|
||||
cd $(BRLTTY_SRCDIR) && $(AUTOCONF)
|
||||
endef
|
||||
|
||||
BRLTTY_PRE_CONFIGURE_HOOKS += BRLTTY_AUTOCONF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
|
||||
BRLTTY_DEPENDENCIES += bluez5_utils
|
||||
BRLTTY_CONF_OPTS += --with-bluetooth-package
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --without-bluetooth-package
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ESPEAK),y)
|
||||
BRLTTY_DEPENDENCIES += espeak
|
||||
BRLTTY_CONF_OPTS += --with-espeak=$(TARGET_DIR)/usr
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --without-espeak
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_EXPAT),y)
|
||||
# host-expat is needed by tbl2hex's host program
|
||||
BRLTTY_DEPENDENCIES += host-expat expat
|
||||
BRLTTY_CONF_OPTS += --enable-expat
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --disable-expat
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FLITE),y)
|
||||
BRLTTY_DEPENDENCIES += flite
|
||||
BRLTTY_CONF_OPTS += --with-flite=$(STAGING_DIR)/usr
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --without-flite
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ICU),y)
|
||||
BRLTTY_DEPENDENCIES += icu
|
||||
BRLTTY_CONF_OPTS += --enable-icu
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --disable-icu
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
||||
BRLTTY_DEPENDENCIES += ncurses
|
||||
BRLTTY_CONF_OPTS += --with-curses
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --without-curses
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PCRE2_32),y)
|
||||
BRLTTY_DEPENDENCIES += pcre2
|
||||
BRLTTY_CONF_OPTS += --with-rgx-package
|
||||
else ifeq ($(BR2_PACKAGE_PCRE_32),y)
|
||||
BRLTTY_DEPENDENCIES += pcre
|
||||
BRLTTY_CONF_OPTS += --with-rgx-package
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --without-rgx-package
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POLKIT),y)
|
||||
BRLTTY_DEPENDENCIES += polkit
|
||||
BRLTTY_CONF_OPTS += --enable-polkit
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --disable-polkit
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
BRLTTY_DEPENDENCIES += systemd
|
||||
BRLTTY_CONF_OPTS += --with-service-package
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --without-service-package
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
||||
BRLTTY_CONF_OPTS += --enable-i18n
|
||||
else
|
||||
BRLTTY_CONF_OPTS += --disable-i18n
|
||||
endif
|
||||
|
||||
BRLTTY_TEXT_TABLE = $(call qstrip,$(BR2_PACKAGE_BRLTTY_TEXT_TABLE))
|
||||
ifneq ($(BRLTTY_TEXT_TABLE),)
|
||||
BRLTTY_CONF_OPTS += --with-text-table=$(BRLTTY_TEXT_TABLE)
|
||||
endif
|
||||
|
||||
define BRLTTY_INSTALL_CONF
|
||||
$(INSTALL) -D -m 644 $(@D)/Documents/brltty.conf $(TARGET_DIR)/etc/brltty.conf
|
||||
endef
|
||||
|
||||
BRLTTY_POST_INSTALL_TARGET_HOOKS += BRLTTY_INSTALL_CONF
|
||||
|
||||
define BRLTTY_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/brltty/S10brltty \
|
||||
$(TARGET_DIR)/etc/init.d/S10brltty
|
||||
endef
|
||||
|
||||
define BRLTTY_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 package/brltty/brltty.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/brltty.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Braille Device Support
|
||||
Documentation=man:brltty(1)
|
||||
Documentation=http://brltty.com/
|
||||
|
||||
DefaultDependencies=no
|
||||
Before=sysinit.target
|
||||
After=systemd-udev-settle.service
|
||||
Wants=systemd-udev-settle.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/brltty --no-daemon
|
||||
TimeoutStartSec=5
|
||||
TimeoutStopSec=10
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
Nice=-10
|
||||
OOMScoreAdjust=-900
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
|
||||
Reference in New Issue
Block a user