aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-07-14 12:48:01 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-07-14 13:58:18 +0200
commit3764e9c41cf80d2ba3a391bb7ea014241ab34170 (patch)
treef440e1245b1ea760fbc7bbf2a0289314c2b7f52b /gen_configkernel.sh
parentAdd --strace support (diff)
downloadgenkernel-3764e9c41cf80d2ba3a391bb7ea014241ab34170.tar.gz
genkernel-3764e9c41cf80d2ba3a391bb7ea014241ab34170.tar.bz2
genkernel-3764e9c41cf80d2ba3a391bb7ea014241ab34170.zip
Add bcache support
Kernel command-line argument only, adds "dobcache". Bug: https://bugs.gentoo.org/605094 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_configkernel.sh')
-rwxr-xr-xgen_configkernel.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/gen_configkernel.sh b/gen_configkernel.sh
index 5ab0d43..6860f1a 100755
--- a/gen_configkernel.sh
+++ b/gen_configkernel.sh
@@ -246,6 +246,15 @@ config_kernel() {
*) cfg_CONFIG_BLK_DEV_DM=${newcfg_setting}
esac
+ # Make sure all modules required bcache are enabled in the kernel, if --bcache
+ if isTrue "${CMD_BCACHE}"
+ then
+ print_info 2 "$(get_indent 1)>> Ensure that required kernel options for bcache support are set ..."
+ kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_MD" "y"
+ kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_BCACHE" "${newcfg_setting}" &&
+ required_kernel_options+=( 'CONFIG_BCACHE' )
+ fi
+
# Make sure lvm modules are enabled in the kernel, if --lvm
if isTrue "${CMD_LVM}"
then