davidchisnall / dtc

FreeBSD Device Tree Compiler
19 stars 15 forks source link

version output fix #19

Closed evadot closed 7 years ago

evadot commented 7 years ago

Version output should be on stdout as most of the tools that parse this information don't play with redirection. Also add a 'gnu compatible' version (For now matching on 1.4.0) U-Boot check the version for some target so we need some compliance on this.

Signed-off-by: Emmanuel Vadot manu@freebsd.org

davidchisnall commented 7 years ago

I've merged this, but I wonder if 'gnu' is correct here: it's GPL'd, but not a GNU project. Does GPL dtc have any other name, or some string that u-boot looks for?

evadot commented 7 years ago

Right, gpl compatible might be better, I'll open a new pull request to change that. U-Boot just take the last word (awk '{print $NF}') and use this to check the version. GPL dtc just print the same line but DTC is upper cased.