lede/target/linux/generic/hack-6.12/920-device_tree_cmdline.patch

13 lines
422 B
Diff
Raw Normal View History

2024-11-21 13:16:25 +08:00
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -1052,6 +1052,9 @@ int __init early_init_dt_scan_chosen(cha
2024-11-21 13:16:25 +08:00
p = of_get_flat_dt_prop(node, "bootargs", &l);
if (p != NULL && l > 0)
strscpy(cmdline, p, min(l, COMMAND_LINE_SIZE));
+ p = of_get_flat_dt_prop(node, "bootargs-append", &l);
+ if (p != NULL && l > 0)
+ strlcat(cmdline, p, min_t(int, strlen(cmdline) + (int)l, COMMAND_LINE_SIZE));
handle_cmdline:
/*