Something else I forgot to add to my email from this morning.
For people who does not know, BaseTools uses SQLite database to store some
information.
In theory, the PCDs could also be retrieved from the build database (even if
I have not tried).
Maybe the name of the tables could be more transparent (if it is possible)
to be usable.
~/tianocore$ cd Conf/.cache/
~/tianocore/Conf/.cache$ sqlite3 build.db
SQLite version 3.6.22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables
DataModel _1011_113 _1011_30 _1011_47 _1011_64 _1011_8 _1011_96
File _1011_114 _1011_31 _1011_48 _1011_65 _1011_80 _1011_97
_1011_10 _1011_12 _1011_32 _1011_49 _1011_66 _1011_81 _1011_98
_1011_100 _1011_13 _1011_33 _1011_5 _1011_67 _1011_82 _1011_99
_1011_101 _1011_14 _1011_34 _1011_50 _1011_68 _1011_83 _1012_20
_1011_102 _1011_15 _1011_35 _1011_51 _1011_69 _1011_84 _1012_21
_1011_103 _1011_16 _1011_36 _1011_52 _1011_7 _1011_85 _1012_22
_1011_104 _1011_17 _1011_38 _1011_53 _1011_70 _1011_87 _1012_23
_1011_105 _1011_18 _1011_39 _1011_54 _1011_71 _1011_88 _1012_37
_1011_106 _1011_19 _1011_4 _1011_55 _1011_72 _1011_89 _1012_56
_1011_107 _1011_24 _1011_40 _1011_58 _1011_73 _1011_9 _1012_57
_1011_108 _1011_25 _1011_41 _1011_59 _1011_74 _1011_90 _1012_86
_1011_109 _1011_26 _1011_42 _1011_6 _1011_75 _1011_91 _1013_1
_1011_11 _1011_27 _1011_43 _1011_60 _1011_76 _1011_92 _1013_2
_1011_110 _1011_28 _1011_44 _1011_61 _1011_77 _1011_93
_1011_111 _1011_29 _1011_45 _1011_62 _1011_78 _1011_94
_1011_112 _1011_3 _1011_46 _1011_63 _1011_79 _1011_95
sqlite> .schema DataModel
CREATE TABLE DataModel (
ID INTEGER PRIMARY KEY,
CrossIndex INTEGER NOT NULL,
Name VARCHAR NOT NULL,
Description VARCHAR
);
sqlite> .schema File
CREATE TABLE File (
ID INTEGER PRIMARY KEY,
Name VARCHAR NOT NULL,
ExtName VARCHAR,
Path VARCHAR,
FullPath VARCHAR NOT NULL,
Model INTEGER DEFAULT 0,
TimeStamp SINGLE NOT NULL
);
sqlite> .schema _1011_113
CREATE TABLE _1011_113 (
ID REAL PRIMARY KEY,
Model INTEGER NOT NULL,
Value1 TEXT NOT NULL,
Value2 TEXT,
Value3 TEXT,
Scope1 TEXT,
Scope2 TEXT,
BelongsToItem REAL NOT NULL,
StartLine INTEGER NOT NULL,
StartColumn INTEGER NOT NULL,
EndLine INTEGER NOT NULL,
EndColumn INTEGER NOT NULL,
Enabled INTEGER DEFAULT 0
);
sqlite> select * from _1013_2;
(...)
2.00000361|5100|PCDSFIXEDATBUILD|||COMMON|COMMON|1.00000011|1.00000011|250|-
1|250|-1|1
2.00000362|4001|gArmPlatformTokenSpaceGuid|PcdFirmwareVendor|"ARM Versatile
Express"|COMMON|COMMON|1.00000011|1.00000011|251|-1|251|-1|1
2.00000363|4001|gEmbeddedTokenSpaceGuid|PcdEmbeddedPrompt|"VExpress"|COMMON|
COMMON|1.00000011|1.00000011|253|-1|253|-1|1
2.00000364|4001|gEfiMdePkgTokenSpaceGuid|PcdMaximumUnicodeStringLength|10000
00|COMMON|COMMON|1.00000011|1.00000011|254|-1|254|-1|1
(...)
> -----Original Message-----
> From: Olivier Martin [mailto:[email protected]]
> Sent: 04 December 2013 11:17
> To: [email protected]
> Subject: RE: [edk2] Getting PCD values for tools that post process the
> build.
>
> FYI, I have a similar script in
> tianocore/ArmPlatformPkg/Scripts/Ds5/build_report.py.
> This python script uses the build report to access the PCDs.
>
> Example:
> build = build_report.BuildReport(report_log)
> build.PCDs['gArmTokenSpaceGuid']['PcdSecureFvSize']
>
>
> > -----Original Message-----
> > From: Andrew Fish [mailto:[email protected]]
> > Sent: 04 December 2013 01:40
> > To: [email protected]
> > Subject: Re: [edk2] Getting PCD values for tools that post process
> the
> > build.
> >
> >
> > On Dec 3, 2013, at 5:34 PM, Gao, Liming <[email protected]> wrote:
> >
> > > Andrew:
> > > You mean Build Report file. Build command has -y REPORTFILE and -Y
> > REPORTTYPE option to generate build text report file. You can just
> > generate PCD report, then parse report file to get PCD value. The
> > command can be: build -y Pcd_Log.txt -Y PCD
> > >
> >
> > That is what I prototyped, a Python script to extract a PCD value
> from
> > the log file. I was thinking I might as well build the entire log
> file
> > and place it in a build products location as part of the build.
> >
> > Thanks,
> >
> > Andrew Fish
> >
> > > Thanks
> > > Liming
> > > -----Original Message-----
> > > From: Andrew Fish [mailto:[email protected]]
> > > Sent: Wednesday, December 04, 2013 3:19 AM
> > > To: [email protected]
> > > Subject: [edk2] Getting PCD values for tools that post process the
> > build.
> > >
> > > Is there a recommended solution to get PCD values for consumption
> in
> > a post build step?
> > >
> > > The only thing I could think of is to post process the build log?
> > >
> > > Thanks,
> > >
> > > Andrew Fish
> > >
> > > -------------------------------------------------------------------
> --
> > ---------
> > > Rapidly troubleshoot problems before they affect your business.
> Most
> > IT organizations don't have a clear picture of how application
> > performance affects their revenue. With AppDynamics, you get 100%
> > visibility into your Java,.NET, & PHP application. Start your 15-day
> > FREE TRIAL of AppDynamics Pro!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.cl
> > ktrk
> > > _______________________________________________
> > > edk2-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/edk2-devel
> > >
> > > -------------------------------------------------------------------
> --
> > ---------
> > > Sponsored by Intel(R) XDK
> > > Develop, test and display web and hybrid apps with a single code
> > base.
> > > Download it for free now!
> > >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.c
> > lktrk
> > > _______________________________________________
> > > edk2-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/edk2-devel
> >
> >
> > ---------------------------------------------------------------------
> --
> > -------
> > Sponsored by Intel(R) XDK
> > Develop, test and display web and hybrid apps with a single code
> base.
> > Download it for free now!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.c
> > lktrk
> > _______________________________________________
> > edk2-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/edk2-devel
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel