initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
Makefile: fix install rule
|
||||
|
||||
Do not link the .so with an absolute path, otherwise it may point to
|
||||
the host library.
|
||||
|
||||
Based on the former patch by Yann E. MORIN.
|
||||
|
||||
Signed-off-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
|
||||
[baruch: update for 1.6]
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
|
||||
--- keyutils-1.5.9/Makefile.orig 2014-09-22 16:13:41.593562765 +0100
|
||||
+++ keyutils-1.5.9/Makefile 2014-09-22 16:14:05.377963952 +0100
|
||||
@@ -200,7 +200,7 @@ ifeq ($(NO_SOLIB),0)
|
||||
$(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
|
||||
$(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
|
||||
mkdir -p $(DESTDIR)$(USRLIBDIR)
|
||||
- $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
|
||||
+ $(LNS) $(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
|
||||
sed \
|
||||
-e 's,@VERSION\@,$(VERSION),g' \
|
||||
-e 's,@prefix\@,$(PREFIX),g' \
|
||||
@@ -0,0 +1,15 @@
|
||||
Patch vampirised from Debian's packaging of keyutils-1.4
|
||||
|
||||
Author: Marcus Meissner <meissner@suse.de>
|
||||
Description: Added 2 cifs helpers to request-key.conf (for CIFS DFS support)
|
||||
|
||||
diff -Naurp keyutils.orig/request-key.conf keyutils/request-key.conf
|
||||
--- keyutils.orig/request-key.conf 2008-09-07 23:53:10.000000000 +0000
|
||||
+++ keyutils/request-key.conf 2009-02-05 00:53:00.000000000 +0000
|
||||
@@ -38,4 +38,6 @@
|
||||
create user debug:* revoked /bin/keyctl reject %k 30 %c %S
|
||||
create user debug:loop:* * |/bin/cat
|
||||
create user debug:* * /usr/share/keyutils/request-key-debug.sh %k %d %c %S
|
||||
+create cifs.spnego * * /usr/sbin/cifs.upcall -c %k
|
||||
+create dns_resolver * * /usr/sbin/cifs.upcall %k
|
||||
negate * * * /bin/keyctl negate %k 30 %S
|
||||
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_KEYUTILS
|
||||
bool "keyutils"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS # dlopen
|
||||
help
|
||||
These tools are used to control the key management system
|
||||
built into the Linux kernel.
|
||||
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/
|
||||
|
||||
comment "keyutils needs a toolchain w/ dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally computed
|
||||
sha256 a61d5706136ae4c05bd48f86186bcfdbd88dd8bd5107e3e195c924cfc1b39bb4 keyutils-1.6.3.tar.gz
|
||||
sha256 f46409d4822b2457b39bbd0e7881eecb396130eb8320b7748fa7e9488970aa6d LICENCE.GPL
|
||||
sha256 0d15593e3a8ad90917f8509b5ac1e4b5e5d196434a68029aa9dc0858a4a4c521 LICENCE.LGPL
|
||||
@@ -0,0 +1,42 @@
|
||||
################################################################################
|
||||
#
|
||||
# keyutils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
KEYUTILS_VERSION = 1.6.3
|
||||
KEYUTILS_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot
|
||||
KEYUTILS_LICENSE = GPL-2.0+, LGPL-2.1+
|
||||
KEYUTILS_LICENSE_FILES = LICENCE.GPL LICENCE.LGPL
|
||||
KEYUTILS_INSTALL_STAGING = YES
|
||||
|
||||
KEYUTILS_MAKE_PARAMS = \
|
||||
INSTALL=$(INSTALL) \
|
||||
LIBDIR=/usr/lib \
|
||||
USRLIBDIR=/usr/lib \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CPPFLAGS="$(TARGET_CPPFLAGS) -I." \
|
||||
LNS="$(HOSTLN) -sf"
|
||||
|
||||
ifeq ($(BR2_SHARED_LIBS),y)
|
||||
KEYUTILS_MAKE_PARAMS += NO_ARLIB=1
|
||||
endif
|
||||
|
||||
# Touch cxx.stamp to avoid adding a C++ dependency
|
||||
define KEYUTILS_CONFIGURE_CMDS
|
||||
touch $(@D)/cxx.stamp
|
||||
endef
|
||||
|
||||
define KEYUTILS_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D)
|
||||
endef
|
||||
|
||||
define KEYUTILS_INSTALL_STAGING_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
define KEYUTILS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user