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
@@ -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/1932c524aa6b6a3337a0fc21b44adaac60972d30
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
+24
View File
@@ -0,0 +1,24 @@
config BR2_PACKAGE_NANO
bool "nano"
depends on BR2_USE_WCHAR
# full version uses fork()
select BR2_PACKAGE_NANO_TINY if !BR2_USE_MMU
select BR2_PACKAGE_NCURSES
help
A nice ncurses-based editor. Started out as a clone of pico.
Great editor for new users.
https://www.nano-editor.org/
if BR2_PACKAGE_NANO
config BR2_PACKAGE_NANO_TINY
bool "optimize for size"
default y
help
Disable all features for the sake of size.
endif
comment "nano needs a toolchain w/ wchar"
depends on !BR2_USE_WCHAR
+5
View File
@@ -0,0 +1,5 @@
# Locally calculated after checking pgp signature
# https://www.nano-editor.org/dist/v5/nano-5.9.tar.xz.asc
# using key BFD009061E535052AD0DF2150D28D4D2A0ACE884
sha256 757db8cda4bb2873599e47783af463e3b547a627b0cabb30ea7bf71fb4c24937 nano-5.9.tar.xz
sha256 fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7 COPYING
+41
View File
@@ -0,0 +1,41 @@
################################################################################
#
# nano
#
################################################################################
NANO_VERSION_MAJOR = 5
NANO_VERSION = $(NANO_VERSION_MAJOR).9
NANO_SITE = https://www.nano-editor.org/dist/v$(NANO_VERSION_MAJOR)
NANO_SOURCE = nano-$(NANO_VERSION).tar.xz
NANO_LICENSE = GPL-3.0+
NANO_LICENSE_FILES = COPYING
NANO_DEPENDENCIES = ncurses
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
NANO_CONF_ENV += ac_cv_prog_NCURSESW_CONFIG=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
else
NANO_CONF_ENV += ac_cv_prog_NCURSESW_CONFIG=false
NANO_MAKE_ENV += CURSES_LIB="-lncurses"
endif
ifeq ($(BR2_PACKAGE_NANO_TINY),y)
NANO_CONF_OPTS += \
--enable-tiny \
--disable-libmagic \
--disable-color \
--disable-nanorc
define NANO_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/src/nano $(TARGET_DIR)/usr/bin/nano
endef
else
NANO_CONF_OPTS += --disable-tiny
ifeq ($(BR2_PACKAGE_FILE),y)
NANO_DEPENDENCIES += file
NANO_CONF_OPTS += --enable-libmagic --enable-color --enable-nanorc
else
NANO_CONF_OPTS += --disable-libmagic --disable-libmagic --disable-color
endif # BR2_PACKAGE_FILE
endif # BR2_PACKAGE_NANO_TINY
$(eval $(autotools-package))