On Fri, 28 Feb 2020 at 11:51, Pete Batard <pete@akeo.ie> wrote:
Hi Ard,
On 2020.02.28 10:45, Ard Biesheuvel wrote:
On Fri, 28 Feb 2020 at 11:39, Pete Batard <pete@akeo.ie> wrote:
Remove unneeded extra parenthesis on PCD, which can cause problems when used with ACPI ASL macros and add an [Includes] section to the .inf, so that the Genet.h header can be referenced where required.
This looks fishy. Won't this cause *every* module that incorporates this .dec to add . to its include path?
Yeah, I don't like it either. I kind of expected you guys to comment on it, so that we can discuss what you think the better approach should be.
Do you think it'd make sense to create a Drivers/Include/ section in Silicon/Broadcom/ and move the header there?
And if we do that, do you think the header should go to something like Include/Net or just reside at the top level of Include/?
What would be your preferred approach?
If the contents of the header need to be visible outside of the module, then the header needs to be moved outside of the module. So move the header to Silicon/Broadcom/Drivers/Include/Net/ and add Include under the [Includes] section Then, any component that includes the .dec can access the header via #include <Net/Genet.h>