summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/ifcompiler/initCompiler.C
diff options
context:
space:
mode:
authorCamVan Nguyen <ctnguyen@us.ibm.com>2012-04-16 16:49:12 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-04-19 17:11:31 -0500
commit4a47221cbf1a556c71e4a66b9742205e85b1c0a5 (patch)
tree781fd04735be8bb8a3c2306d1c2d300aa3daddc5 /src/usr/hwpf/ifcompiler/initCompiler.C
parent3f89cb472a8fb434b27fb0a9be39f053c3efe48e (diff)
downloadblackbird-hostboot-4a47221cbf1a556c71e4a66b9742205e85b1c0a5.tar.gz
blackbird-hostboot-4a47221cbf1a556c71e4a66b9742205e85b1c0a5.zip
Right justify SCOM data
Ability to specify search paths for include files Change-Id: I0179b0bb81bf645b91fe2a3c25e763a71c3b1121 RTC: 40443 RTC: 40447 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/906 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/ifcompiler/initCompiler.C')
-rwxr-xr-xsrc/usr/hwpf/ifcompiler/initCompiler.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/usr/hwpf/ifcompiler/initCompiler.C b/src/usr/hwpf/ifcompiler/initCompiler.C
index de8553e6c..36222c0e9 100755
--- a/src/usr/hwpf/ifcompiler/initCompiler.C
+++ b/src/usr/hwpf/ifcompiler/initCompiler.C
@@ -22,6 +22,7 @@
// andrewg 05/24/11 Port over for VPL/PgP
// andrewg 09/19/11 Updates based on review
// mjjones 11/17/11 Output attribute listing
+// camvanng 04/12/12 Ability to specify search paths for include files
// End Change Log *********************************************************************************
/**
@@ -50,6 +51,7 @@ using namespace std;
int yyline = 1;
init::ScomList * yyscomlist = NULL;
+vector<string> yyincludepath; //path to search for include files
ostringstream init::dbg;
ostringstream init::erros;
@@ -204,6 +206,7 @@ Parser::Parser(int narg, char ** argv)
else if (arg.compare(0,2,"-o") == 0) iv_outfile = argv[++i]; //dg003a
else if (arg.compare(0,3,"-if") == 0) iv_source_path = argv[++i];
else if (arg.compare(0,3,"-ec") == 0) iv_ec = strtoul(argv[++i],NULL,16); //dg002a
+ else if (arg.compare(0,2, "-I") == 0) yyincludepath.push_back(argv[++i]);
else if (arg.compare(0,9,"--compare") == 0)
{
compare.first = argv[++i];
@@ -253,6 +256,16 @@ Parser::Parser(int narg, char ** argv)
stats << "* attr: " << attr_listing_fn() << endl;
stats << "* binary: " << binseq_fn() << endl;
+ if (yyincludepath.size())
+ {
+ stats << "* search paths for include files:" << endl;
+ for (size_t i = 0; i < yyincludepath.size(); i++)
+ {
+ stats << "* " << yyincludepath.at(i) << endl;
+ }
+ stats << "*" << endl;
+ }
+
iv_scomlist = new ScomList(iv_source_path, header_files, stats, iv_ec); //dg002c
if(compare.second.size())
{
OpenPOWER on IntegriCloud