Re: dtsget?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Oct 23, 2019 at 7:33 AM Dobrowolski, Lukasz (Nokia -
PL/Wroclaw) <lukasz.dobrowolski@xxxxxxxxx> wrote:
>
> Hi!
>
> I have internal use case for an application that similar to fdtget but working directly on dts files.
> Do You see merit in upstreaming such thing?

Yes, but would like to understand the use better.

What problem are you trying to solve that fdtget doesn't work? Perhaps
it is too slow? Loss of type information (the little we have)?

> Maybe it would be useful in testing?

With C preprocessor defines and include files, you still need to run
the input through something right? Or you want to ignore include
files? If not, you're still going to need the front end of dtc at
least. Then you need either some output format or to tap into dtc's
livetree C structure. The checks code in dtc does the latter. I've
hacked up dtc checks before to dump out things like all compatible
strings when building a tree of dts files. Something I'd like to do is
make that plug-able such that we could have multiple checks modules
including ones in python. This would make it easier to add in the DT
schema checking to dtc. Or maybe another way to approach it is making
the dts->livetree parsing a library.

Rob



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux