summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-03-12 11:09:08 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-03-13 07:34:33 +0100
commitf6589670eb73eb5719d94e7beae27849535d8987 (patch)
treed148b69aeb0e642bb017ce7986a47dad5e5c48d7 /lib
parent1ad4b32702ddc3b801e8cd35441d2a9b3a41bb19 (diff)
downloadbarebox-f6589670eb73eb5719d94e7beae27849535d8987.tar.gz
barebox-f6589670eb73eb5719d94e7beae27849535d8987.tar.xz
of: partition: Also add partitions created by addpart to the boot dtb
A partition added interactively using addpart was added in of_partition_fixup() before commit aec676b568 ("cdev: record whether partition is parsed from OF"). Restore that behaviour. To do that a new flag DEVFS_PARTITION_FOR_FIXUP is created that behaves very similar what DEVFS_PARTITION_FROM_OF did before. The only difference is that addpart makes use of it (and that stat uses a different string to describe it). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.barebox.org/20240312100918.604105-1-u.kleine-koenig@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/cmdlinepart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmdlinepart.c b/lib/cmdlinepart.c
index 5e95760bae..f1bfda641c 100644
--- a/lib/cmdlinepart.c
+++ b/lib/cmdlinepart.c
@@ -29,7 +29,7 @@ int cmdlinepart_do_parse_one(const char *devname, const char *partstr,
loff_t size;
char *end;
char buf[PATH_MAX] = {};
- unsigned long flags = 0;
+ unsigned long flags = DEVFS_PARTITION_FOR_FIXUP;
struct cdev *cdev;
memset(buf, 0, PATH_MAX);