summaryrefslogtreecommitdiffstats
path: root/test/parser
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2016-05-09 15:38:47 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-05-24 11:08:11 +1000
commit6993af8a4b8bb3c6b1d12172b346c5aa41b7dc61 (patch)
tree8f0ddd99b7b9da47ad937d99e8b1f81decc175a3 /test/parser
parent87fa4885310b6c6b79e31d79d192ba9ea90cf236 (diff)
downloadtalos-petitboot-6993af8a4b8bb3c6b1d12172b346c5aa41b7dc61.tar.gz
talos-petitboot-6993af8a4b8bb3c6b1d12172b346c5aa41b7dc61.zip
pb-discover: add dtb support for PXE config
Currently there is no way to manually specify a DTB file when with a PXE network boot configuration file. This makes it difficult when you need to work with or emulate a special snowflake machines with special snowflake hardware. Some ARM systems provide this feature with the "fdt" option so this patch adds support for using the ftd or dtb configuration options to the PXE config parser. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'test/parser')
-rw-r--r--test/parser/test-pxe-single.c3
1 files changed, 3 insertions, 0 deletions
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