Build libfdt for user space to use.
Sources for libfdt come from contrib/dtc/libfdt.
Differential D6814
Add libfdt user space library stevek on Jun 11 2016, 7:32 PM. Authored by Tags None Referenced Files
Details
Diff Detail
Event TimelineComment Actions Why can't you use ofwdump(8) for this ? Isn't all the needed information is in there ? Comment Actions Not if you're trying to do something programmatically with libfdt. We use this interface at Juniper to feed the kernel's representation of the DTB to libfdt. We also have another library that looks up I2C nodes in the FDT using libfdt to determine the slave IDs for I2C devices in order to access them. Comment Actions Having thought about this I'm not opposed to this. I think it should be two commits, one for the kernel bits, and another to build libfdt.a.
Comment Actions Sure, makes sense to me.
Comment Actions This should be attached to the build, and used by the GNU dtc.
Comment Actions I'm wondering should libfdt be conditionally built and, if so, should it be based on MK_FDT and MK_GPL_DTC (since the dtc build will be using it after the suggested changes)?
Comment Actions I think it should be conditional on MK_FDT, but not on MK_GPL_DTC, because the library itself is BSD-licensed. Comment Actions Yes. And there will be a day, I think, where we don't have the gpl dtc in the tree, but still have libfdt.
|