summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-01-02 14:37:47 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2017-01-02 14:37:47 -0800
commit7b26070d4c57e59a4df26b29175be2d46518e919 (patch)
tree3475153d45eacd3d75c7a81e9d163ef7843673ab
parentkconfig: disable MULTIPATH by default, enabled by --multipath (diff)
downloadgenkernel-7b26070d4c57e59a4df26b29175be2d46518e919.tar.gz
genkernel-7b26070d4c57e59a4df26b29175be2d46518e919.tar.bz2
genkernel-7b26070d4c57e59a4df26b29175be2d46518e919.zip
gen_configkernel: ensure ISCSI sysfs params present.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xgen_configkernel.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/gen_configkernel.sh b/gen_configkernel.sh
index 8d3534b9..9c37649f 100755
--- a/gen_configkernel.sh
+++ b/gen_configkernel.sh
@@ -167,6 +167,11 @@ config_kernel() {
# CONFIG_ISCSI_TCP
if isTrue ${CMD_ISCSI}
then
+ cfg_CONFIG_ISCSI_BOOT_SYSFS=$(kconfig_get_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_ISCSI_BOOT_SYSFS")
+ case "$cfg_CONFIG_ISCSI_BOOT_SYSFS" in
+ y|m) ;; # Do nothing
+ *) cfg_CONFIG_ISCSI_BOOT_SYSFS='m'
+ esac
cfg_CONFIG_ISCSI_TCP=$(kconfig_get_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_ISCSI_TCP")
case "$cfg_CONFIG_ISCSI_TCP" in
y|m) ;; # Do nothing
@@ -177,6 +182,7 @@ config_kernel() {
y|m) ;; # Do nothing
*) cfg_CONFIG_SCSI_ISCSI_ATTRS='m'
esac
+ kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_ISCSI_BOOT_SYSFS" "${cfg_CONFIG_ISCSI_BOOT_SYSFS}"
kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_ISCSI_TCP" "${cfg_CONFIG_ISCSI_TCP}"
kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_SCSI_ISCSI_ATTRS" "${cfg_CONFIG_SCSI_ISCSI_ATTRS}"
fi