summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--discover/pxe-parser.c4
-rw-r--r--test/parser/test-pxe-single.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/discover/pxe-parser.c b/discover/pxe-parser.c
index 95547c3..4812c37 100644
--- a/discover/pxe-parser.c
+++ b/discover/pxe-parser.c
@@ -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);
}
}
diff --git a/test/parser/test-pxe-single.c b/test/parser/test-pxe-single.c
index 56c404c..3c3ab2b 100644
--- a/test/parser/test-pxe-single.c
+++ b/test/parser/test-pxe-single.c
@@ -8,6 +8,7 @@ label linux
kernel ./pxe/de-ad-de-ad-be-ef.vmlinuz
append command line
initrd=./pxe/de-ad-de-ad-be-ef.initrd
+dtb ./pxe/de-ad-de-ad-be-ef.dtb
#endif
void run_test(struct parser_test *test)
@@ -35,4 +36,6 @@ void run_test(struct parser_test *test)
"tftp://host/dir/./pxe/de-ad-de-ad-be-ef.vmlinuz");
check_resolved_url_resource(opt->initrd,
"tftp://host/dir/./pxe/de-ad-de-ad-be-ef.initrd");
+ check_resolved_url_resource(opt->dtb,
+ "tftp://host/dir/./pxe/de-ad-de-ad-be-ef.dtb");
}
OpenPOWER on IntegriCloud