initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
From a0594387565e1e6b4a8a8ba04ad13b135cc1f0b5 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Thu, 1 Apr 2021 07:49:46 +0200
|
||||
Subject: [PATCH] lib/getrandom.c: fix build with uclibc < 1.0.35
|
||||
|
||||
Fix the following build failure with uclibc < 1.0.35 which is raised
|
||||
since the addition of getrandom module in
|
||||
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=682cc4e678aceff32dea2a84b6e5147bdf5a20a7:
|
||||
|
||||
In file included from ./sys/random.h:40,
|
||||
from getrandom.c:22:
|
||||
/home/fabrice/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name 'size_t'
|
||||
27 | extern int getrandom(void *__buf, size_t count, unsigned int flags)
|
||||
| ^~~~~~
|
||||
/home/fabrice/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:8:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
|
||||
7 | #include <features.h>
|
||||
+++ |+#include <stddef.h>
|
||||
8 |
|
||||
|
||||
This patch is not upstreamable as it is only a workaround for
|
||||
uclibc < 1.0.35, upstream uclibc has been patched with
|
||||
https://github.com/wbx-github/uclibc-ng/commit/00972c02c2b6e0a95d5def4a71bdfb188e091782
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/d507f8d8ae4dd6aac1e83b7cc81017caf0d2c30e
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
lib/getrandom.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/lib/getrandom.c b/lib/getrandom.c
|
||||
index 41212fb32..0ad3f9648 100644
|
||||
--- a/lib/getrandom.c
|
||||
+++ b/lib/getrandom.c
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
+#include <stddef.h>
|
||||
#include <sys/random.h>
|
||||
|
||||
#include <errno.h>
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_WGET
|
||||
bool "wget"
|
||||
# fork()
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_MD4 if BR2_PACKAGE_LIBOPENSSL
|
||||
help
|
||||
Network utility to retrieve files from http, https and ftp.
|
||||
|
||||
http://www.gnu.org/software/wget/
|
||||
|
||||
comment "wget needs a toolchain w/ wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
@@ -0,0 +1,6 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# https://ftp.gnu.org/gnu/wget/wget-1.21.2.tar.lz.sig
|
||||
# with key 6B98F637D879C5236E277C5C64FF90AAE8C70AF9
|
||||
sha256 1727a330a86acacb3e57615ce268f5f29978bf7adec4abe6a30d370207bc91b3 wget-1.21.2.tar.lz
|
||||
# Locally calculated
|
||||
sha256 e79e9c8a0c85d735ff98185918ec94ed7d175efc377012787aebcf3b80f0d90b COPYING
|
||||
@@ -0,0 +1,57 @@
|
||||
################################################################################
|
||||
#
|
||||
# wget
|
||||
#
|
||||
################################################################################
|
||||
|
||||
WGET_VERSION = 1.21.2
|
||||
WGET_SOURCE = wget-$(WGET_VERSION).tar.lz
|
||||
WGET_SITE = $(BR2_GNU_MIRROR)/wget
|
||||
WGET_DEPENDENCIES = host-pkgconf
|
||||
WGET_LICENSE = GPL-3.0+
|
||||
WGET_LICENSE_FILES = COPYING
|
||||
WGET_CPE_ID_VENDOR = gnu
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
||||
WGET_CONF_OPTS += --with-ssl=gnutls
|
||||
WGET_DEPENDENCIES += gnutls
|
||||
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
WGET_CONF_OPTS += --with-ssl=openssl
|
||||
WGET_DEPENDENCIES += openssl
|
||||
else
|
||||
WGET_CONF_OPTS += --without-ssl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
WGET_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
|
||||
WGET_CONF_OPTS += --with-libidn
|
||||
WGET_DEPENDENCIES += libidn2
|
||||
else
|
||||
WGET_CONF_OPTS += --without-libidn
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
||||
WGET_DEPENDENCIES += util-linux
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
WGET_CONF_OPTS += --with-zlib
|
||||
WGET_DEPENDENCIES += zlib
|
||||
else
|
||||
WGET_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PCRE2),y)
|
||||
WGET_CONF_OPTS += --disable-pcre --enable-pcre2
|
||||
WGET_DEPENDENCIES += pcre2
|
||||
else ifeq ($(BR2_PACKAGE_PCRE),y)
|
||||
WGET_CONF_OPTS += --enable-pcre --disable-pcre2
|
||||
WGET_DEPENDENCIES += pcre
|
||||
else
|
||||
WGET_CONF_OPTS += --disable-pcre --disable-pcre2
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user