[Crosstoolchain-logs] [device-tree-compiler] 296/357: dtc: give advance warning that "-S" is going away.

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 315c5d095ebdf29f1912186e76ab9f95e694b18a
Author: Paul Gortmaker <paul.gortmaker at windriver.com>
Date:   Wed Jul 30 09:59:16 2008 -0400

    dtc: give advance warning that "-S" is going away.
    
    The "-S" option allowed the specification of a minimum size for
    the blob, however the main reason for caring about the size is
    so there is enough padding to add a chosen node by u-boot or
    whoever.  In which case, folks don't really care about the absolute
    size, but rather the size of the padding added for this -- which
    is what the "-p" option does.  Having the "-S" just confuses people.
    
    Signed-off-by: Paul Gortmaker <paul.gortmaker at windriver.com>
---
 dtc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dtc.c b/dtc.c
index d8fd43b..84bee2d 100644
--- a/dtc.c
+++ b/dtc.c
@@ -182,6 +182,9 @@ int main(int argc, char *argv[])
 	if (minsize && padsize)
 		die("Can't set both -p and -S\n");
 
+	if (minsize)
+		fprintf(stderr, "DTC: Use of \"-S\" is deprecated; it will be removed soon, use \"-p\" instead\n");
+
 	fprintf(stderr, "DTC: %s->%s  on file \"%s\"\n",
 		inform, outform, arg);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list