From: "Laszlo Ersek" <lersek@redhat.com>
To: devel@edk2.groups.io, leif@nuviainc.com
Cc: Bob Feng <bob.c.feng@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
Yuwei Chen <yuwei.chen@intel.com>
Subject: Re: [edk2-devel] expected behaviour of WorkspaceAutoGen.py?
Date: Wed, 7 Oct 2020 15:59:08 +0200 [thread overview]
Message-ID: <698bf2bd-63db-337e-5a04-3b0d8211f6ae@redhat.com> (raw)
In-Reply-To: <20201006183045.GQ5623@vanye>
On 10/06/20 20:30, Leif Lindholm wrote:
> Hi BaseTools maintainers,
>
> Posting mostly for this to be available in the list archive, but I'm
> also curious as to whether this is expected behaviour, and would like
> confirmation of my understanding on the behaviour.
>
> We started very lazily creating a new platform port based on
> edk2-platforms Platform/Qemu/SbsaQemu/, by creating just my own
> .dsc/.fdf and .dec files. Then we created a single library to override
> one in SbsaQemu, which used a Pcd from our new .dec - initialized in
> the .fdf.
>
> Now, that library was the only thing with a dependency on our new
> .dec, and (since it's a library), it is not directly listed in the
> .fdf.
>
> When I run try to build the platform, this triggers the
> "PCD (%s.%s) used in FDF is not declared in DEC files."
> error in BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py.
>
> Adding a dummy dependency on the .dec to one of the .inf files listed
> in the .fdf resolved this issue.
>
> So, two questions:
> 1) Have I correctly described the behaviour?
> 2) Is this intended behaviour?
IMO you should not get a build error, as long as the new library
instance INF correctly specifies the dependency on both DEC files in its
[Packages] section -- old DEC for lib class, new DEC for PCD declaration
--, *and* the new library instance INF file lists the PCD, *and* the new
library instance is used for resolving the lib class in question, in the
new DSC file.
What access methods are permitted for the PCD in question, in the new
DEC file? I vaguely recall problems when trying to set dynamic PCDs in
FDF files, using the SET statement.
Also, <https://bugzilla.tianocore.org/show_bug.cgi?id=1264> seems
distantly related. Commit eb99b52f9888e99f449b8b984ee5a095027b5fd9
modified the neighborhood of the error message you mention.
Thanks
Laszlo
>
> Best Regards,
>
> Leif
>
>
>
>
>
next prev parent reply other threads:[~2020-10-07 13:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-06 18:30 expected behaviour of WorkspaceAutoGen.py? Leif Lindholm
2020-10-07 13:59 ` Laszlo Ersek [this message]
2020-10-09 3:42 ` [edk2-devel] " Bob Feng
2020-10-09 11:25 ` Laszlo Ersek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=698bf2bd-63db-337e-5a04-3b0d8211f6ae@redhat.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox