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,34 @@
From 0a654c20e1b9324c57ba4116b52fb6ab33847e1d Mon Sep 17 00:00:00 2001
From: Jeremy Kerr <jk@ozlabs.org>
Date: Thu, 8 Aug 2013 17:16:31 +0800
Subject: [PATCH] kexec: Implement clean restart for busybox init
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
---
kexec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kexec.c b/kexec.c
index 2edb7df..b2a0c42 100644
--- a/kexec.c
+++ b/kexec.c
@@ -27,6 +27,7 @@
#include <fcntl.h>
#include <errno.h>
#include <syscall.h>
+#include <signal.h>
#include <libfdt.h>
#include <getopt.h>
#include <sys/types.h>
@@ -818,7 +819,7 @@ int main(int argc, char *argv[])
sync();
exec_kexec();
} else {
- execlp("shutdown", "shutdown", "-r", "now", NULL);
+ kill(1, SIGQUIT);
}
return -1;
--
1.7.10.4
+25
View File
@@ -0,0 +1,25 @@
config BR2_PACKAGE_KEXEC_LITE
bool "kexec-lite"
depends on BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
depends on !BR2_STATIC_LIBS # dtc, elfutils
depends on BR2_USE_WCHAR # elfutils
depends on BR2_TOOLCHAIN_HAS_THREADS # elfutils
depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils
select BR2_PACKAGE_ELFUTILS
select BR2_PACKAGE_DTC
select BR2_PACKAGE_DTC_PROGRAMS
help
Kexec is a user space utiltity for loading another kernel
and asking the currently running kernel to do something with
it.
This package is a tiny implementation of the kexec userspace
components, for devicetree-based platforms.
https://github.com/antonblanchard/kexec-lite
comment "kexec-lite needs a uClibc or glibc toolchain w/ wchar, dynamic library, threads"
depends on BR2_powerpc || BR2_powerpc64
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR \
|| !BR2_TOOLCHAIN_HAS_THREADS \
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
+3
View File
@@ -0,0 +1,3 @@
# Locally calculated
sha256 1027c69721e8ee21614273a540e1dd505370d8d814845c0adaf838496105a35d kexec-lite-6b0130b3c1ea489e061cda2805e6f8b68dc96a76.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
+15
View File
@@ -0,0 +1,15 @@
################################################################################
#
# kexec-lite
#
################################################################################
KEXEC_LITE_VERSION = 6b0130b3c1ea489e061cda2805e6f8b68dc96a76
KEXEC_LITE_SITE = $(call github,antonblanchard,kexec-lite,$(KEXEC_LITE_VERSION))
KEXEC_LITE_LICENSE = GPL-2.0+
KEXEC_LITE_LICENSE_FILES = COPYING
KEXEC_LITE_DEPENDENCIES = elfutils dtc
KEXEC_LITE_AUTORECONF = YES
KEXEC_LITE_SELINUX_MODULES = kdump
$(eval $(autotools-package))