initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From 5e7ce27626a44428c01e0e5ab3fe60ef98ca788c Mon Sep 17 00:00:00 2001
|
||||
From: Petr Tesarik <ptesarik@suse.cz>
|
||||
Date: Mon, 26 Apr 2021 15:29:51 +0200
|
||||
Subject: kexec-tools: Remove duplicate definition of ramdisk
|
||||
|
||||
The ramdisk variable is defined in kexec/arch/ppc/kexec-ppc.c. This
|
||||
other definition is not needed and breaks build with -fno-common.
|
||||
|
||||
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
|
||||
Signed-off-by: Simon Horman <horms@verge.net.au>
|
||||
[Retrieved from:
|
||||
https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git/commit/?id=5e7ce27626a44428c01e0e5ab3fe60ef98ca788c]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
kexec/arch/ppc/kexec-elf-ppc.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/kexec/arch/ppc/kexec-elf-ppc.c b/kexec/arch/ppc/kexec-elf-ppc.c
|
||||
index ad43ad1..4a4886e 100644
|
||||
--- a/kexec/arch/ppc/kexec-elf-ppc.c
|
||||
+++ b/kexec/arch/ppc/kexec-elf-ppc.c
|
||||
@@ -33,7 +33,6 @@
|
||||
static const int probe_debug = 0;
|
||||
|
||||
unsigned char reuse_initrd;
|
||||
-const char *ramdisk;
|
||||
int create_flatten_tree(struct kexec_info *, unsigned char **, unsigned long *,
|
||||
char *);
|
||||
|
||||
--
|
||||
cgit 1.2.3-1.el7
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
config BR2_PACKAGE_KEXEC
|
||||
bool "kexec"
|
||||
depends on BR2_i386 || BR2_x86_64 || BR2_arm || BR2_armeb || \
|
||||
BR2_mips || BR2_mips64 || BR2_mipsel || BR2_mips64el || \
|
||||
BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
|
||||
BR2_sh4 || BR2_sh4a || BR2_aarch64 || BR2_s390x
|
||||
help
|
||||
Kexec is a user space utility for loading another kernel
|
||||
and asking the currently running kernel to do something with
|
||||
it.
|
||||
|
||||
https://www.kernel.org/pub/linux/utils/kernel/kexec/
|
||||
|
||||
if BR2_PACKAGE_KEXEC
|
||||
|
||||
config BR2_PACKAGE_KEXEC_ZLIB
|
||||
bool "zlib support"
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
Support for compressed kernel images
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,4 @@
|
||||
# From https://www.kernel.org/pub/linux/utils/kernel/kexec/sha256sums.asc
|
||||
sha256 96c97f49ed86049f8b72722cb53e7fe3693e5a4f31e78a3a6249e3d18dac49c2 kexec-tools-2.0.22.tar.xz
|
||||
# locally calculated
|
||||
sha256 fa5fc1d1eec39532ea517518eeefd7b6e3c14341a55e5880a0e2a49eee47a5b7 COPYING
|
||||
@@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
#
|
||||
# kexec
|
||||
#
|
||||
################################################################################
|
||||
|
||||
KEXEC_VERSION = 2.0.22
|
||||
KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.xz
|
||||
KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kexec
|
||||
KEXEC_LICENSE = GPL-2.0
|
||||
KEXEC_LICENSE_FILES = COPYING
|
||||
KEXEC_SELINUX_MODULES = kdump
|
||||
|
||||
# Makefile expects $STRIP -o to work, so needed for !BR2_STRIP_strip
|
||||
KEXEC_MAKE_OPTS = STRIP="$(TARGET_CROSS)strip"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_KEXEC_ZLIB),y)
|
||||
KEXEC_CONF_OPTS += --with-zlib
|
||||
KEXEC_DEPENDENCIES += zlib
|
||||
else
|
||||
KEXEC_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XZ),y)
|
||||
KEXEC_CONF_OPTS += --with-lzma
|
||||
KEXEC_DEPENDENCIES += xz
|
||||
else
|
||||
KEXEC_CONF_OPTS += --without-lzma
|
||||
endif
|
||||
|
||||
define KEXEC_REMOVE_LIB_TOOLS
|
||||
rm -rf $(TARGET_DIR)/usr/lib/kexec-tools
|
||||
endef
|
||||
|
||||
KEXEC_POST_INSTALL_TARGET_HOOKS += KEXEC_REMOVE_LIB_TOOLS
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user