public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 1/5] disk/part: Only build hostfs special handling when CONFIG_SANDBOX is set
@ 2015-09-17 22:46 Hans de Goede
  2015-09-17 22:46 ` [U-Boot] [PATCH v2 2/5] ubifs: Modify ubifs u-boot wrapper function prototypes for generic fs use Hans de Goede
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Hans de Goede @ 2015-09-17 22:46 UTC (permalink / raw)
  To: u-boot

This is not necessary / useful when not building with CONFIG_SANDBOX and
with the addition of ubifs support to the generic fs commands it actually
gets in the way, since both operate on a fake / NULL blkdev.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Changes in v2:
-New patch in v2 of the patch-set
---
 disk/part.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/disk/part.c b/disk/part.c
index 43485c9..8c65cdb 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -511,6 +511,7 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str,
 	int part;
 	disk_partition_t tmpinfo;
 
+#ifdef CONFIG_SANDBOX
 	/*
 	 * Special-case a pseudo block device "hostfs", to allow access to the
 	 * host's own filesystem.
@@ -529,6 +530,7 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str,
 
 		return 0;
 	}
+#endif
 
 	/* If no dev_part_str, use bootdevice environment variable */
 	if (!dev_part_str || !strlen(dev_part_str) ||
-- 
2.4.3

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

end of thread, other threads:[~2015-10-24 21:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-17 22:46 [U-Boot] [PATCH v2 1/5] disk/part: Only build hostfs special handling when CONFIG_SANDBOX is set Hans de Goede
2015-09-17 22:46 ` [U-Boot] [PATCH v2 2/5] ubifs: Modify ubifs u-boot wrapper function prototypes for generic fs use Hans de Goede
2015-10-24 21:15   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-17 22:46 ` [U-Boot] [PATCH v2 3/5] ubifs: Add functions " Hans de Goede
2015-10-24 21:15   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-17 22:46 ` [U-Boot] [PATCH v2 4/5] ubifs: Add generic fs support Hans de Goede
2015-10-24 21:15   ` [U-Boot] [U-Boot,v2,4/5] " Tom Rini
2015-09-17 22:46 ` [U-Boot] [PATCH v2 5/5] distro_bootcmd: Add support for booting from ubifs Hans de Goede
2015-10-24 21:15   ` [U-Boot] [U-Boot, v2, " Tom Rini
2015-09-21 18:24 ` [U-Boot] [PATCH v2 1/5] disk/part: Only build hostfs special handling when CONFIG_SANDBOX is set Stephen Warren
2015-10-24 21:15 ` [U-Boot] [U-Boot, v2, " Tom Rini

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