Commit graph

4 commits

Author SHA1 Message Date
David Gibson
23cdf2379f Move everything into a subdirectory in preparation for merge into dtc. 2007-06-14 11:58:35 +10:00
David Gibson
9481605208 libfdt: Switch to dual GPL/BSD license
Change the license information at the top of each file from LGPL to
dual-GPL/BSD.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-06-13 16:30:48 +10:00
David Gibson
5434fcc7e0 libfdt: Fix fdt_strerror() bugs
This fixes several small bugs related to fdt_strerror().
	- an entry is added to the error table for FDT_ERR_BADLAYOUT.
	- Incorrect usage of fdt_strerror() in check_property() and
check_getprop() is corrected (they were passing a positive error code,
when fdt_strerror() expects a negative code).
	- Add code to properly retreive an error code from
fdt_get_property() in check_property().  With that a check that the
length returned by fdt_get_property() matches that stored in the
retreived property.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-02-23 14:40:10 +11:00
David Gibson
5b344f9c5a libfdt: Add fdt_strerror() function to library
This function moves the fdt_strerror() function, currently found in
the test code into the fdt library proper.  This makes life easier for
any library users who want to provide meaningful error messages.  The
function goes into a module of its own, so that users who don't need
the function won't get a copy of it linked in.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2006-12-21 09:57:08 +11:00