- prop = fdt_getprop(ctx->dtb, node, "linux,stdout-path", &prop_len);
- if (!prop) {
- fprintf(stderr, "Failed to find linux,stdout-path\n");
- return -1;
- }
-
+ /*
+ * linux,stdout-path is deprecated after v3.14 but we don't know
+ * what the next kernel will be, so set both.
+ */
+ fdt_set_check(ctx->dtb, node, fdt_setprop_string, "stdout-path",
+ stdout_path);