Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/lvm2: enable device-mapper in Kernel config
@ 2024-04-12 22:24 Julien Olivain
  2024-04-12 22:24 ` [Buildroot] [PATCH 2/2] support/testing: lvm2: remove kernel config fragment Julien Olivain
  2024-05-09 15:46 ` [Buildroot] [PATCH 1/2] package/lvm2: enable device-mapper in Kernel config Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: Julien Olivain @ 2024-04-12 22:24 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain

LVM2 has a hard dependency on the device-mapper presence in the Kernel.
This commit enables those mandatory Kernel configuration by defining
the _LINUX_CONFIG_FIXUPS macro. This will make sure the final system
image will end up in a working configuration.

This was suggested by Arnout in [1].

[1] https://lists.buildroot.org/pipermail/buildroot/2024-April/688776.html

Suggested-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
 package/lvm2/lvm2.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/lvm2/lvm2.mk b/package/lvm2/lvm2.mk
index bda16489550..4fcfddb1bbd 100644
--- a/package/lvm2/lvm2.mk
+++ b/package/lvm2/lvm2.mk
@@ -76,5 +76,10 @@ HOST_LVM2_CONF_OPTS = \
 	--disable-selinux \
 	--with-confdir=$(HOST_DIR)/etc
 
+define LVM2_LINUX_CONFIG_FIXUPS
+	$(call KCONFIG_ENABLE_OPT,CONFIG_MD)
+	$(call KCONFIG_ENABLE_OPT,CONFIG_BLK_DEV_DM)
+endef
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.44.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-03 15:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-12 22:24 [Buildroot] [PATCH 1/2] package/lvm2: enable device-mapper in Kernel config Julien Olivain
2024-04-12 22:24 ` [Buildroot] [PATCH 2/2] support/testing: lvm2: remove kernel config fragment Julien Olivain
2024-05-09 15:46 ` [Buildroot] [PATCH 1/2] package/lvm2: enable device-mapper in Kernel config Thomas Petazzoni via buildroot
2024-06-03 15:17   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox