View Issue Details

IDProjectCategoryView StatusLast Update
0000100file[All Projects] Generalpublic2019-09-11 22:55
ReporterSIGSTACKFAULTAssigned Tochristos 
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64 (vbox)OSUbuntuOS Version19.04
Product Version5.35 
Target VersionFixed in VersionHEAD 
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 https://github.com/zephyrproject-rtos/zephyr --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.
Tagsmagic

Activities

SIGSTACKFAULT

2019-08-16 14:50

reporter  

reproduce.sh (98 bytes)

SIGSTACKFAULT

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.

christos

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: reproduce.sh
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 => HEAD
2019-09-11 22:55 christos Note Added: 0003297