diff options
author | Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de> | 2021-12-13 20:00:21 +0100 |
---|---|---|
committer | StefanBruens <stefan.bruens@rwth-aachen.de> | 2022-04-19 15:19:22 +0000 |
commit | 8b7afb56502a41145c7c12d5000af29829f1a760 (patch) | |
tree | 9a0c4f03fc4fe9081e053dcc329b74b12996cb1d | |
parent | d9d5fc1666f2de03ba44d9a5ea9d2a26e545db76 (diff) | |
download | shared-mime-info-8b7afb56502a41145c7c12d5000af29829f1a760.tar.gz |
Add mimetype for Flattened Devicetree (binary)
-rw-r--r-- | data/freedesktop.org.xml.in | 10 | ||||
-rw-r--r-- | tests/mime-detection/devicetree.dtb | bin | 0 -> 72 bytes | |||
-rw-r--r-- | tests/mime-detection/list | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index 68476bb3..ac5c2afa 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -7920,6 +7920,16 @@ command to generate the output files. </magic> </mime-type> + <mime-type type="text/x-devicetree-binary"> + <comment>Flattened Devicetree</comment> + <acronym>DTB</acronym> + <expanded-acronym>Device Tree Binary</expanded-acronym> + <glob pattern="*.dtb"/> + <magic> + <match type="big32" value="0xd00dfeed" offset="0"/> + </magic> + </mime-type> + <mime-type type="image/avif"> <comment>AVIF image</comment> <acronym>AVIF</acronym> diff --git a/tests/mime-detection/devicetree.dtb b/tests/mime-detection/devicetree.dtb Binary files differnew file mode 100644 index 00000000..90ef5c00 --- /dev/null +++ b/tests/mime-detection/devicetree.dtb diff --git a/tests/mime-detection/list b/tests/mime-detection/list index cb20f435..c300bec6 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -904,6 +904,10 @@ devicetree1.dts text/x-devicetree-source xoo devicetree2.dts text/x-devicetree-source xoo devicetree.dtsi text/x-devicetree-source +# Flattened Device Tree (binary) +# dtc -I dts -O dtb -o test.dtb test1.dts +devicetree.dtb text/x-devicetree-binary + # AV1 Image File Format (AVIF) # https://aomediacodec.github.io/av1-avif/ test.avif image/avif |