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,49 @@
From 30c712c5f14306460c44bea70e24419db9d44f8c Mon Sep 17 00:00:00 2001
From: Nick Patavalis <npat@efault.net>
Date: Thu, 12 Apr 2018 15:16:04 +0300
Subject: [PATCH] Compile with libc's without cispeed / cospeed
Some libc implementations (e.g. musl) do not define the cispeed and
cospeed struct termios fields. So we have to check the
_HAVE_STRUCT_TERMIOS_C_ISPEED and _HAVE_STRUCT_TERMIOS_C_OSPEED
macros. If not defined, we disable custom baudrate support.
[baruch: backported from upstream master to 3.1]
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
Upstream status: commit 1acf1ddabaf3
custbaud.h | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/custbaud.h b/custbaud.h
index 48151a4a4e84..ae4ae8daf49e 100644
--- a/custbaud.h
+++ b/custbaud.h
@@ -26,6 +26,8 @@
#ifndef CUSTBAUD_H
#define CUSTBAUD_H
+#include <termios.h>
+
#ifndef NO_CUSTOM_BAUD
#if defined (__linux__)
@@ -33,7 +35,13 @@
/* Enable by-default for kernels > 2.6.0 on x86 and x86_64 only */
#include <linux/version.h>
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0)
-#if defined (__i386__) || defined (__x86_64__) || defined (USE_CUSTOM_BAUD)
+/* Some libc implementations (e.g. musl) do not define the cispeed and
+ cospeed struct termios fields. We do not support custom baudrates
+ on them. */
+#if ( (defined (__i386__) || defined (__x86_64__)) \
+ && defined (_HAVE_STRUCT_TERMIOS_C_ISPEED) \
+ && defined (_HAVE_STRUCT_TERMIOS_C_OSPEED) ) \
+ || defined (USE_CUSTOM_BAUD)
#ifndef USE_CUSTOM_BAUD
#define USE_CUSTOM_BAUD
#endif
--
2.16.3
+9
View File
@@ -0,0 +1,9 @@
config BR2_PACKAGE_PICOCOM
bool "picocom"
depends on BR2_USE_MMU # fork()
help
picocom is a minimal dumb-terminal emulation program. It is,
in principle, very much like minicom, only it's pico instead
of mini!
https://github.com/npat-efault/picocom/
+3
View File
@@ -0,0 +1,3 @@
# Locally calculated
sha256 e6761ca932ffc6d09bd6b11ff018bdaf70b287ce518b3282d29e0270e88420bb picocom-3.1.tar.gz
sha256 9273c6b2c55be95f0f0df292d87e8900e5bfdf5b510a6ea09e80306cf45c10f6 LICENSE.txt
+21
View File
@@ -0,0 +1,21 @@
################################################################################
#
# picocom
#
################################################################################
PICOCOM_VERSION = 3.1
PICOCOM_SITE = $(call github,npat-efault,picocom,$(PICOCOM_VERSION))
PICOCOM_LICENSE = GPL-2.0+
PICOCOM_LICENSE_FILES = LICENSE.txt
PICOCOM_CPE_ID_VENDOR = picocom_project
define PICOCOM_BUILD_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
define PICOCOM_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/picocom $(TARGET_DIR)/usr/bin/picocom
endef
$(eval $(generic-package))