mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
checks: add chosen node checks
Add some checks for /chosen node. These check that chosen is located at the root level and that bootargs and stdout-path properties are strings. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
e671852042
commit
c81d389a10
3 changed files with 64 additions and 0 deletions
10
tests/bad-chosen.dts
Normal file
10
tests/bad-chosen.dts
Normal file
|
@ -0,0 +1,10 @@
|
|||
/dts-v1/;
|
||||
|
||||
/ {
|
||||
node2 {
|
||||
chosen {
|
||||
bootargs = <0xdeadbeef>;
|
||||
stdout-path = <1>;
|
||||
};
|
||||
};
|
||||
};
|
|
@ -547,6 +547,9 @@ dtc_tests () {
|
|||
|
||||
check_tests bad-ncells.dts address_cells_is_cell size_cells_is_cell interrupt_cells_is_cell
|
||||
check_tests bad-string-props.dts device_type_is_string model_is_string status_is_string label_is_string compatible_is_string_list names_is_string_list
|
||||
check_tests bad-chosen.dts chosen_node_is_root
|
||||
check_tests bad-chosen.dts chosen_node_bootargs
|
||||
check_tests bad-chosen.dts chosen_node_stdout_path
|
||||
check_tests bad-reg-ranges.dts reg_format ranges_format
|
||||
check_tests bad-empty-ranges.dts ranges_format
|
||||
check_tests reg-ranges-root.dts reg_format ranges_format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue