initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
[Fabrice: update patch for 3.14]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
diff -Nura rp-pppoe-3.11.orig/src/configure rp-pppoe-3.11/src/configure
|
||||
--- rp-pppoe-3.11.orig/src/configure 2012-08-21 10:01:10.536440032 -0300
|
||||
+++ rp-pppoe-3.11/src/configure 2012-08-21 10:01:45.353442397 -0300
|
||||
@@ -4517,7 +4517,7 @@
|
||||
modprobe pppoe > /dev/null 2>&1
|
||||
fi
|
||||
if test "$cross_compiling" = yes; then :
|
||||
- ac_cv_linux_kernel_pppoe=no; echo "cross-compiling, default: "
|
||||
+ ac_cv_linux_kernel_pppoe=yes; echo "cross-compiling, default: "
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
diff -Nura rp-pppoe-3.11.orig/src/pppoe-server.c rp-pppoe-3.11/src/pppoe-server.c
|
||||
--- rp-pppoe-3.11.orig/src/pppoe-server.c 2012-08-21 10:01:10.535440032 -0300
|
||||
+++ rp-pppoe-3.11/src/pppoe-server.c 2012-08-21 10:02:02.597443569 -0300
|
||||
@@ -20,6 +20,9 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
+/* Patched hack to make this cross compile */
|
||||
+#define HAVE_LINUX_KERNEL_PPPOE 1
|
||||
+
|
||||
#if defined(HAVE_NETPACKET_PACKET_H) || defined(HAVE_LINUX_IF_PACKET_H)
|
||||
#define _POSIX_SOURCE 1 /* For sigaction defines */
|
||||
#endif
|
||||
@@ -0,0 +1,19 @@
|
||||
comment "rp-pppoe needs a uClibc or glibc toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
|
||||
depends on BR2_USE_MMU
|
||||
|
||||
config BR2_PACKAGE_RP_PPPOE
|
||||
bool "rp-pppoe"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on !BR2_TOOLCHAIN_USES_MUSL # pppd
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_PPPD
|
||||
help
|
||||
An implementation of the Point-to-point protocol over
|
||||
Ethernet. Has userspace client and server deamons. You
|
||||
likely only need this package if you are implementing the
|
||||
pppoe server that will service other pppoe client
|
||||
devices. Otherwise the normal client functionality already
|
||||
exists in the pppd package (and kernel).
|
||||
|
||||
https://dianne.skoll.ca/projects/rp-pppoe/
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 b1f318bc7e4e5b0fd8a8e23e8803f5e6e43165245a5a10a7162a92a6cf17829a rp-pppoe-3.15.tar.gz
|
||||
# Locally computed
|
||||
sha256 464006ba771074f4022db14f58a29a0b447b6fdde9529cf0331be396b6279162 doc/LICENSE
|
||||
@@ -0,0 +1,43 @@
|
||||
################################################################################
|
||||
#
|
||||
# rp-pppoe
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RP_PPPOE_VERSION = 3.15
|
||||
RP_PPPOE_SITE = https://dianne.skoll.ca/projects/rp-pppoe/download
|
||||
RP_PPPOE_LICENSE = GPL-2.0
|
||||
RP_PPPOE_LICENSE_FILES = doc/LICENSE
|
||||
RP_PPPOE_CPE_ID_VENDOR = rp-pppoe_project
|
||||
|
||||
RP_PPPOE_DEPENDENCIES = pppd
|
||||
RP_PPPOE_SUBDIR = src
|
||||
RP_PPPOE_TARGET_FILES = pppoe pppoe-server pppoe-relay pppoe-sniff
|
||||
RP_PPPOE_TARGET_SCRIPTS = pppoe-connect pppoe-init pppoe-setup pppoe-start \
|
||||
pppoe-status pppoe-stop
|
||||
RP_PPPOE_MAKE_OPTS = PLUGIN_DIR=/usr/lib/pppd/$(PPPD_VERSION)
|
||||
RP_PPPOE_CONF_OPTS = --disable-debugging
|
||||
|
||||
# The pppd, echo, setsid and id paths must be the ones on the
|
||||
# target. Indeed, the result of these checks is used to replace
|
||||
# variables in scripts that are installed in the target.
|
||||
RP_PPPOE_CONF_ENV = \
|
||||
rpppoe_cv_pack_bitfields=normal \
|
||||
ac_cv_path_PPPD=/usr/sbin/pppd \
|
||||
ac_cv_path_ECHO=/bin/echo \
|
||||
ac_cv_path_SETSID=/usr/bin/setsid \
|
||||
ac_cv_path_ID=/usr/bin/id \
|
||||
PPPD_H=$(PPPD_DIR)/pppd/pppd.h
|
||||
|
||||
define RP_PPPOE_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0644 $(@D)/configs/pppoe.conf \
|
||||
$(TARGET_DIR)/etc/ppp/pppoe.conf
|
||||
for ff in $(RP_PPPOE_TARGET_FILES); do \
|
||||
$(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
|
||||
done
|
||||
for ff in $(RP_PPPOE_TARGET_SCRIPTS); do \
|
||||
$(INSTALL) -m 0755 $(@D)/scripts/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \
|
||||
done
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user