Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /, defaults/
Date: Tue, 26 Nov 2019 13:50:26
Message-Id: 1574776040.b8bf4c4ae97f8d077a8e6b9cb23593e45d9ea966.whissi@gentoo
1 commit: b8bf4c4ae97f8d077a8e6b9cb23593e45d9ea966
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 26 13:36:31 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 26 13:47:20 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=b8bf4c4a
7
8 gen_configkernel.sh: config_kernel(): Add virtiofs support
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 defaults/modules_load | 2 +-
13 gen_configkernel.sh | 12 ++++++++++++
14 2 files changed, 13 insertions(+), 1 deletion(-)
15
16 diff --git a/defaults/modules_load b/defaults/modules_load
17 index ed5e197..1b85842 100644
18 --- a/defaults/modules_load
19 +++ b/defaults/modules_load
20 @@ -27,7 +27,7 @@ MODULES_PCMCIA="pcmcia pcmcia_core yenta_socket pd6729 i82092 i82365 tcic ds ide
21 MODULES_USB="ehci-pci ehci-hcd xhci-hcd xhci-pci xhci-plat xhci-plat-hcd uhci usb-ohci hid usb-storage uas uhci-hcd ohci-hcd usbhid hid-generic sl811-hcd hid-a4tech hid-apple hid-belkin hid-cherry hid-chicony hid-cypress hid-dummy hid-ezkey hid-gyration hid-logitech hid-logitech-dj hid-microsoft hid-monterey hid-petalynx hid-pl hid-samsung hid-sony hid-sunplus"
22
23 # Filesystems
24 -MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs zfs f2fs fuse loop squashfs aufs overlay cramfs configfs fscrypto msdos"
25 +MODULES_FS="ext2 ext3 ext4 btrfs reiserfs jfs nfs xfs zfs f2fs fuse virtiofs loop squashfs aufs overlay cramfs configfs fscrypto msdos"
26
27 # Crypto
28 MODULES_CRYPTO="sha256_generic cbc crc32 crc32c crc32c_generic crc32_generic aes_generic xts af_alg algif_skcipher algif_hash algif_aead algif_rng"
29
30 diff --git a/gen_configkernel.sh b/gen_configkernel.sh
31 index 7dbcadd..7840491 100755
32 --- a/gen_configkernel.sh
33 +++ b/gen_configkernel.sh
34 @@ -790,6 +790,18 @@ config_kernel() {
35
36 [ ${KV_NUMERIC} -ge 4010 ] &&
37 kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_CRYPTO_DEV_VIRTIO" "${newvirtio_setting}"
38 +
39 + if [ ${KV_NUMERIC} -ge 5004 ]
40 + then
41 + local cfg_CONFIG_FUSE_FS=$(kconfig_get_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_FUSE_FS")
42 + case "${cfg_CONFIG_FUSE_FS}" in
43 + y|m) ;; # Do nothing
44 + *) cfg_CONFIG_FUSE_FS=${newvirtio_setting}
45 + esac
46 +
47 + kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_FUSE_FS" "${cfg_CONFIG_FUSE_FS}"
48 + kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_VIRTIO_FS" "${cfg_CONFIG_FUSE_FS}"
49 + fi
50 fi
51
52 # Microcode setting, intended for early microcode loading, if --microcode