View Issue Details

IDProjectCategoryView StatusLast Update
0000100fileGeneralpublic2019-09-11 22:55
ReporterSIGSTACKFAULT Assigned Tochristos  
Status resolvedResolutionfixed 
Platformx86_64 (vbox)OSUbuntuOS Version19.04
Product Version5.35 
Fixed in Version5.38 
Summary0000100: device tree configuration (.dts) files listed as "C source"
DescriptionDevice tree configuration files, `.dts` are listed as "C source" files despite being, well, not C source code.
Steps To ReproduceFor example, I'm going to use .dts files from the zephyr RTOS.

    git clone --depth 10
    file zephyr/boards/arm/nrf52840_mdk/nrf52840_mdk.dts

files in `zephyr/boards/*/*/*.dts` all do this. Some are listed as just "ASCII text". I'm not sure if that says anything about your C magic. One is marked as UTF-8 unicode but I think that's zephyr's fault.

`--extension` doesn't help either.



2019-08-16 14:50

reporter (98 bytes)   
git clone --depth 50
cd zephyr/boards
file */*/*.dts (98 bytes)   


2019-08-16 15:04

reporter   ~0003285

The magic string you're looking for is "/dts-v1/", but it's not necessarily at the start; there may be comments before it.


2019-09-11 22:55

manager   ~0003297

Added magic.

Issue History

Date Modified Username Field Change
2019-08-16 14:50 SIGSTACKFAULT New Issue
2019-08-16 14:50 SIGSTACKFAULT File Added:
2019-08-16 14:50 SIGSTACKFAULT Tag Attached: magic
2019-08-16 15:04 SIGSTACKFAULT Note Added: 0003285
2019-09-11 22:55 christos Assigned To => christos
2019-09-11 22:55 christos Status new => assigned
2019-09-11 22:55 christos Status assigned => resolved
2019-09-11 22:55 christos Resolution open => fixed
2019-09-11 22:55 christos Fixed in Version => 5.38
2019-09-11 22:55 christos Note Added: 0003297