Initial Commit
- initial default booting image
This commit is contained in:
21
package/kmod/Config.in
Normal file
21
package/kmod/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_KMOD
|
||||
bool "kmod"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
handle kernel modules
|
||||
|
||||
http://git.kernel.org/?p=utils/kernel/kmod/kmod.git
|
||||
|
||||
if BR2_PACKAGE_KMOD
|
||||
|
||||
config BR2_PACKAGE_KMOD_TOOLS
|
||||
bool "kmod utilities"
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
help
|
||||
Install kmod module utilities (depmod, insmod, lsmod,
|
||||
modinfo, modprobe, rmmod).
|
||||
|
||||
endif
|
||||
|
||||
comment "kmod needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
19
package/kmod/Config.in.host
Normal file
19
package/kmod/Config.in.host
Normal file
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_HOST_KMOD
|
||||
bool "host kmod"
|
||||
help
|
||||
kmod is a set of tools to handle common tasks with Linux
|
||||
kernel modules like insert, remove, list, check properties,
|
||||
resolve dependencies and aliases.
|
||||
|
||||
if BR2_PACKAGE_HOST_KMOD
|
||||
|
||||
config BR2_PACKAGE_HOST_KMOD_GZ
|
||||
bool "support gzip-compressed modules"
|
||||
|
||||
config BR2_PACKAGE_HOST_KMOD_ZSTD
|
||||
bool "support zstd-compressed modules"
|
||||
|
||||
config BR2_PACKAGE_HOST_KMOD_XZ
|
||||
bool "support xz-compressed modules"
|
||||
|
||||
endif
|
||||
6
package/kmod/kmod.hash
Normal file
6
package/kmod/kmod.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://www.kernel.org/pub/linux/utils/kernel/kmod/sha256sums.asc
|
||||
sha256 5a5d5073070cc7e0c7a7a3c6ec2a0e1780850c8b47b3e3892226b93ffcb9cb54 kmod-34.2.tar.xz
|
||||
|
||||
# Locally calculated
|
||||
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 libkmod/COPYING
|
||||
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 COPYING
|
||||
104
package/kmod/kmod.mk
Normal file
104
package/kmod/kmod.mk
Normal file
@@ -0,0 +1,104 @@
|
||||
################################################################################
|
||||
#
|
||||
# kmod
|
||||
#
|
||||
################################################################################
|
||||
|
||||
KMOD_VERSION = 34.2
|
||||
KMOD_SOURCE = kmod-$(KMOD_VERSION).tar.xz
|
||||
KMOD_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/kmod
|
||||
KMOD_INSTALL_STAGING = YES
|
||||
KMOD_DEPENDENCIES = host-pkgconf
|
||||
HOST_KMOD_DEPENDENCIES = host-pkgconf
|
||||
|
||||
# license info for libkmod only, conditionally add more below
|
||||
KMOD_LICENSE = LGPL-2.1+ (library)
|
||||
KMOD_LICENSE_FILES = libkmod/COPYING
|
||||
|
||||
KMOD_CPE_ID_VENDOR = kernel
|
||||
|
||||
KMOD_CONF_OPTS = -Dmanpages=false
|
||||
HOST_KMOD_CONF_OPTS = -Dmanpages=false
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
|
||||
KMOD_CONF_OPTS += -Dbashcompletiondir=/usr/share/bash-completion/completions
|
||||
else
|
||||
KMOD_CONF_OPTS += -Dbashcompletiondir=no
|
||||
endif
|
||||
|
||||
KMOD_CONF_OPTS += -Dfishcompletiondir=no -Dzshcompletiondir=no
|
||||
|
||||
# load compression libraries (if any are enabled below) as needed
|
||||
# using dlopen()
|
||||
KMOD_CONF_OPTS += -Ddlopen=all
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
KMOD_DEPENDENCIES += zlib
|
||||
KMOD_CONF_OPTS += -Dzlib=enabled
|
||||
else
|
||||
KMOD_CONF_OPTS += -Dzlib=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
||||
KMOD_DEPENDENCIES += zstd
|
||||
KMOD_CONF_OPTS += -Dzstd=enabled
|
||||
else
|
||||
KMOD_CONF_OPTS += -Dzstd=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XZ),y)
|
||||
KMOD_DEPENDENCIES += xz
|
||||
KMOD_CONF_OPTS += -Dxz=enabled
|
||||
else
|
||||
KMOD_CONF_OPTS += -Dxz=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
KMOD_DEPENDENCIES += openssl
|
||||
KMOD_CONF_OPTS += -Dopenssl=enabled
|
||||
else
|
||||
KMOD_CONF_OPTS += -Dopenssl=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_KMOD_TOOLS),y)
|
||||
|
||||
# add license info for kmod tools
|
||||
KMOD_LICENSE += , GPL-2.0+ (tools)
|
||||
KMOD_LICENSE_FILES += COPYING
|
||||
|
||||
ifeq ($(BR2_ROOTFS_MERGED_USR),)
|
||||
# Busybox would install its modutils symlinks to /sbin, so kmod needs
|
||||
# to do the same to take priority (Busybox won't overwrite them, see
|
||||
# its install-noclobber).
|
||||
KMOD_CONF_OPTS += -Dsbindir=/sbin
|
||||
endif
|
||||
|
||||
else
|
||||
KMOD_CONF_OPTS += -Dtools=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HOST_KMOD_GZ),y)
|
||||
HOST_KMOD_DEPENDENCIES += host-zlib
|
||||
HOST_KMOD_CONF_OPTS += -Dzlib=enabled
|
||||
else
|
||||
HOST_KMOD_CONF_OPTS += -Dzlib=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HOST_KMOD_ZSTD),y)
|
||||
HOST_KMOD_DEPENDENCIES += host-zstd
|
||||
HOST_KMOD_CONF_OPTS += -Dzstd=enabled
|
||||
else
|
||||
HOST_KMOD_CONF_OPTS += -Dzstd=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HOST_KMOD_XZ),y)
|
||||
HOST_KMOD_DEPENDENCIES += host-xz
|
||||
HOST_KMOD_CONF_OPTS += -Dxz=enabled
|
||||
else
|
||||
HOST_KMOD_CONF_OPTS += -Dxz=disabled
|
||||
endif
|
||||
|
||||
HOST_KMOD_CONF_OPTS += -Dopenssl=disabled
|
||||
|
||||
$(eval $(meson-package))
|
||||
$(eval $(host-meson-package))
|
||||
Reference in New Issue
Block a user