initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
From 6f994166d8571961a08479736ae86c5baa2bb47f Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
Date: Fri, 7 Aug 2020 12:07:45 +0200
|
||||
Subject: [PATCH] Use "extern" qualifier to fix gcc 10.x build
|
||||
|
||||
Patch from
|
||||
https://src.fedoraproject.org/rpms/tftp/raw/master/f/tftp-hpa-5.2-gcc10.patch.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
tftp/tftp.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tftp/tftp.c b/tftp/tftp.c
|
||||
index d15da22..d067f96 100644
|
||||
--- a/tftp/tftp.c
|
||||
+++ b/tftp/tftp.c
|
||||
@@ -48,7 +48,7 @@ extern int maxtimeout;
|
||||
#define PKTSIZE SEGSIZE+4
|
||||
char ackbuf[PKTSIZE];
|
||||
int timeout;
|
||||
-sigjmp_buf toplevel;
|
||||
+extern sigjmp_buf toplevel;
|
||||
sigjmp_buf timeoutbuf;
|
||||
|
||||
static void nak(int, const char *);
|
||||
--
|
||||
2.26.2
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_TFTPD
|
||||
bool "tftpd"
|
||||
# linker issue with pre-6.x toolchains
|
||||
depends on !(BR2_nios2 && !BR2_TOOLCHAIN_GCC_AT_LEAST_6)
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
help
|
||||
HPA's Trivial File Transfer Protocol (tftp) server.
|
||||
|
||||
https://git.kernel.org/pub/scm/network/tftp/tftp-hpa.git
|
||||
@@ -0,0 +1,81 @@
|
||||
#! /bin/sh
|
||||
|
||||
OPTIONS="-c -l -s /var/lib/tftpboot"
|
||||
|
||||
set -e
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
DESC="HPA's tftpd"
|
||||
NAME=tftpd
|
||||
DAEMON=/usr/sbin/$NAME
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
SCRIPTNAME=/etc/init.d/S80tftpd-hpa
|
||||
|
||||
#
|
||||
# Function that starts the daemon/service.
|
||||
#
|
||||
d_start() {
|
||||
mkdir -p /var/lib/tftpboot
|
||||
chmod 1777 /var/lib/tftpboot
|
||||
$DAEMON $OPTIONS
|
||||
}
|
||||
|
||||
#
|
||||
# Function that stops the daemon/service.
|
||||
#
|
||||
d_stop() {
|
||||
killall -q $NAME
|
||||
}
|
||||
|
||||
#
|
||||
# Function that sends a SIGHUP to the daemon/service.
|
||||
#
|
||||
d_reload() {
|
||||
d_start
|
||||
d_stop
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting $DESC: "
|
||||
d_start
|
||||
echo "done"
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping $DESC: "
|
||||
d_stop
|
||||
echo "done"
|
||||
;;
|
||||
#reload)
|
||||
#
|
||||
# If the daemon can reload its configuration without
|
||||
# restarting (for example, when it is sent a SIGHUP),
|
||||
# then implement that here.
|
||||
#
|
||||
# If the daemon responds to changes in its config file
|
||||
# directly anyway, make this an "exit 0".
|
||||
#
|
||||
# printf "Reloading $DESC configuration..."
|
||||
# d_reload
|
||||
# echo "done."
|
||||
#;;
|
||||
restart|force-reload)
|
||||
#
|
||||
# If the "reload" option is implemented, move the "force-reload"
|
||||
# option to the "reload" entry above. If not, "force-reload" is
|
||||
# just the same as "restart".
|
||||
#
|
||||
printf "Restarting $DESC: "
|
||||
d_stop
|
||||
sleep 1
|
||||
d_start
|
||||
echo "done"
|
||||
;;
|
||||
*)
|
||||
# echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
|
||||
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -0,0 +1,5 @@
|
||||
# Locally calculated
|
||||
sha256 c86520c30dab0b6bcbae021ab26d2ac63227696596d37a9b02aa3e56ec5c2e77 tftpd-b2b34cecc8cbc18ff6f1fc00bda6ae6e9011e6c7-br1.tar.gz
|
||||
|
||||
# Hash for license file
|
||||
sha256 67754ebd8f265571d3226ac97e521b1bd6fd8a61363ecd4ab7806a6f90efab92 tftpd/tftpd.c
|
||||
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# tftpd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
TFTPD_VERSION = b2b34cecc8cbc18ff6f1fc00bda6ae6e9011e6c7
|
||||
TFTPD_SITE = git://git.kernel.org/pub/scm/network/tftp/tftp-hpa.git
|
||||
TFTPD_CONF_OPTS = --without-tcpwrappers
|
||||
TFTPD_LICENSE = BSD-4-Clause
|
||||
TFTPD_LICENSE_FILES = tftpd/tftpd.c
|
||||
TFTPD_CPE_ID_VENDOR = tftpd-hpa_project
|
||||
TFTPD_CPE_ID_PRODUCT = tftpd-hpa
|
||||
TFTPD_SELINUX_MODULES = tftp
|
||||
# From git
|
||||
TFTPD_AUTORECONF = YES
|
||||
|
||||
define TFTPD_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D $(@D)/tftp/tftp $(TARGET_DIR)/usr/bin/tftp
|
||||
$(INSTALL) -D $(@D)/tftpd/tftpd $(TARGET_DIR)/usr/sbin/tftpd
|
||||
endef
|
||||
|
||||
define TFTPD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/tftpd/S80tftpd-hpa $(TARGET_DIR)/etc/init.d/S80tftpd-hpa
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user