initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
config BR2_PACKAGE_NEARD
bool "neard"
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl, dbus, libglib2
depends on BR2_USE_MMU # dbus, libglib2
depends on !BR2_STATIC_LIBS # dlopen
depends on BR2_TOOLCHAIN_HAS_SYNC_4
select BR2_PACKAGE_DBUS
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_LIBNL
help
Near Field Communication (NFC) manager. This userspace
daemon is a part of the NFC stack provided by the Linux NFC
project.
https://git.kernel.org/pub/scm/network/nfc/neard.git
if BR2_PACKAGE_NEARD
config BR2_PACKAGE_NEARD_TOOLS
bool "neard tools"
help
Build and install neard tools.
endif
comment "neard needs a toolchain w/ wchar, threads, dynamic library"
depends on BR2_USE_MMU
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+29
View File
@@ -0,0 +1,29 @@
#!/bin/sh
#
# Starts neard
#
NAME=neard
case "$1" in
start)
printf "Starting $NAME: "
start-stop-daemon -S -q -p /var/run/${NAME}.pid -x /usr/libexec/nfc/neard -- -d '*'
echo "OK"
;;
stop)
printf "Stopping $NAME: "
start-stop-daemon -K -q -p /var/run/${NAME}.pid
echo "OK"
;;
restart|reload)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?
+4
View File
@@ -0,0 +1,4 @@
# From https://www.kernel.org/pub/linux/network/nfc/sha256sums.asc
sha256 eae3b11c541a988ec11ca94b7deab01080cd5b58cfef3ced6ceac9b6e6e65b36 neard-0.16.tar.xz
# Locally computed
sha256 b499eddebda05a8859e32b820a64577d91f1de2b52efa2a1575a2cb4000bc259 COPYING
+32
View File
@@ -0,0 +1,32 @@
################################################################################
#
# neard
#
################################################################################
NEARD_VERSION = 0.16
NEARD_SOURCE = neard-$(NEARD_VERSION).tar.xz
NEARD_SITE = $(BR2_KERNEL_MIRROR)/linux/network/nfc
NEARD_LICENSE = GPL-2.0
NEARD_LICENSE_FILES = COPYING
NEARD_DEPENDENCIES = host-pkgconf dbus libglib2 libnl
NEARD_CONF_OPTS = --disable-traces
ifeq ($(BR2_PACKAGE_NEARD_TOOLS),y)
NEARD_CONF_OPTS += --enable-tools
endif
ifeq ($(BR2_INIT_SYSTEMD),y)
NEARD_CONF_OPTS += --enable-systemd
NEARD_DEPENDENCIES += systemd
else
NEARD_CONF_OPTS += --disable-systemd
endif
define NEARD_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/neard/S53neard \
$(TARGET_DIR)/etc/init.d/S53neard
endef
$(eval $(autotools-package))