Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] linux: Don't enable DEVTMPFS support for kernels older than 3.x.
@ 2014-04-18 19:28 Ryan Barnett
  2014-04-18 19:38 ` Peter Korsgaard
  2014-04-18 19:39 ` Thomas Petazzoni
  0 siblings, 2 replies; 9+ messages in thread
From: Ryan Barnett @ 2014-04-18 19:28 UTC (permalink / raw)
  To: buildroot

From: Matt Poduska <mjpodusk@rockwellcollins.com>

In the case where DEVTMPFS is desired for older kernels where the
support is experimental, it's still possible to enable the option in
the board's specific linux .config instead of relying on buildroot to
make the modification.

Signed-off-by: Matt Poduska <mjpodusk@rockwellcollins.com>
Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
---
 linux/linux.mk |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/linux/linux.mk b/linux/linux.mk
index e270705..694ea16 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -183,9 +183,11 @@ define LINUX_CONFIGURE_CMDS
 		$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_SOURCE,\"$(BINARIES_DIR)/rootfs.cpio\",$(@D)/.config)
 		$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_UID,0,$(@D)/.config)
 		$(call KCONFIG_SET_OPT,CONFIG_INITRAMFS_ROOT_GID,0,$(@D)/.config))
-	$(if $(BR2_ROOTFS_DEVICE_CREATION_STATIC),,
-		$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS,$(@D)/.config)
-		$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config))
+	# Kernels prior to 2.6.32 don't support DEVTMPFS, which is also experimental prior to 3.x
+	$(if $(findstring x2.6.,x$(LINUX_VERSION)),,
+		$(if $(BR2_ROOTFS_DEVICE_CREATION_STATIC),,
+			$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS,$(@D)/.config)
+			$(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config)))
 	$(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV),
 		$(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER,$(@D)/.config))
 	$(if $(BR2_PACKAGE_KTAP),
-- 
1.7.9.5

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

end of thread, other threads:[~2014-04-25 13:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-18 19:28 [Buildroot] [PATCH 1/1] linux: Don't enable DEVTMPFS support for kernels older than 3.x Ryan Barnett
2014-04-18 19:38 ` Peter Korsgaard
2014-04-18 19:39 ` Thomas Petazzoni
2014-04-22 10:41   ` Luca Ceresoli
2014-04-23 22:45     ` rjbarnet at rockwellcollins.com
2014-04-24  6:49       ` Peter Korsgaard
2014-04-24 19:47         ` Ryan Barnett
2014-04-24 20:00           ` Peter Korsgaard
2014-04-25 13:09             ` Ryan Barnett

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