From: Krisztian Litkey Date: Mon, 11 Feb 2013 13:59:56 +0000 (+0200) Subject: collect-symbols: added -P (preprocessor) and -q (quiet) options. X-Git-Tag: accepted/2.0alpha/20130219.205908~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4326edf2ba67c073426d76b6a44dc06cd44c50c9;p=profile%2Fivi%2Fmurphy.git collect-symbols: added -P (preprocessor) and -q (quiet) options. Added the -P command line option to allow overriding the default preprocessor command (gcc). Also added a -q option to allow easier backward compatibility with the original gen-linker-script script. Verbosity now defaults to 1 and can be decreased using the -q option. --- diff --git a/utils/collect-symbols.c b/utils/collect-symbols.c index 881f27e..536582f 100644 --- a/utils/collect-symbols.c +++ b/utils/collect-symbols.c @@ -54,6 +54,7 @@ typedef struct { } ringbuf_t; typedef struct { + char *preproc; /* preprocessor to use */ char *pattern; /* symbol pattern */ char **files; /* files to parse for symbols */ int nfile; /* number of files */ @@ -69,7 +70,7 @@ typedef struct { } symtab_t; -static int verbosity = 0; +static int verbosity = 1; static void fatal_error(const char *fmt, ...) @@ -108,11 +109,13 @@ static void print_usage(const char *argv0, int exit_code, const char *fmt, ...) printf("usage: %s [options]\n\n" "The possible options are:\n" + " -P --preproc preprocessor to use [gcc]\n" " -c, --compiler-flags flags to pass to compiler\n" " -p, --pattern symbol regexp pattern\n" " -o, --output write output to the given file\n" " -g, --gnu-ld