]> git.ozlabs.org Git - petitboot/blobdiff - discover/pxe-parser.c
pb-discover: add dtb support for PXE config
[petitboot] / discover / pxe-parser.c
index 95547c389799ab06ed7dc4f5a06f937e9ed4743e..4812c374d1991b74ba938e9fd935154982a6b3d3 100644 (file)
@@ -189,6 +189,10 @@ static void pxe_process_pair(struct conf_context *ctx,
                type = strtoul(value, &end, 10);
                if (end != value && !(*end))
                        pxe_process_sysappend(ctx->dc, opt, type);
+
+       } else if (streq(name, "DTB") || streq(name, "FDT")) {
+               url = pxe_url_join(ctx->dc, ctx->dc->conf_url, value);
+               opt->dtb = create_url_resource(opt, url);
        }
 
 }