Hi, 
  You can directly include it. BaseTools will search it from WORKSPACE and 
PACKAGES_PATH. So, you only need to set edk2-platforms directory into 
PACKAGES_PATH env. 

!include Silicon/NXP/<Silicon Name>.dsc

Thanks
Liming
>-----Original Message-----
>From: Pankaj Bansal [mailto:[email protected]]
>Sent: Tuesday, October 16, 2018 1:24 PM
>To: Ard Biesheuvel <[email protected]>
>Cc: Gao, Liming <[email protected]>; Zhu, Yonghong
><[email protected]>; Leif Lindholm <[email protected]>; Kinney,
>Michael D <[email protected]>; [email protected]; Udit
>Kumar <[email protected]>; Varun Sethi <[email protected]>
>Subject: RE: PACKAGES_PATH in !include path in Dsc files
>
>
>
>> -----Original Message-----
>> From: Ard Biesheuvel [mailto:[email protected]]
>> Sent: Tuesday, October 16, 2018 8:41 AM
>> To: Pankaj Bansal <[email protected]>
>> Cc: Gao, Liming <[email protected]>; Zhu, Yonghong
>> <[email protected]>; Leif Lindholm <[email protected]>;
>Michael
>> D Kinney <[email protected]>; [email protected]; Udit
>Kumar
>> <[email protected]>; Varun Sethi <[email protected]>
>> Subject: Re: PACKAGES_PATH in !include path in Dsc files
>>
>> On 16 October 2018 at 10:40, Pankaj Bansal <[email protected]>
>wrote:
>> > +edk2-platforms maintainers in To list
>> >
>> >
>> >
>> > Thank you Liming for replying.
>> >
>> >
>> >
>> > Our entire code is in edk2-platforms
>> >
>(https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgi
>> > thub.com%2Ftianocore%2Fedk2-
>>
>platforms&amp;data=02%7C01%7Cpankaj.bansal%40nxp.com%7C552da3f22b
>5
>> 84b7fac6008d63315ec8b%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0
>> %7C636752566592695047&amp;sdata=JJWbAcZkj%2FtFaZC0bWONPb7ulCcj1
>L2
>> 4VKwCDGDx9OE%3D&amp;reserved=0) which is denoted by
>PACKAGES_PATH.
>> >
>> > The PACKAGES_PATH directory can be anywhere in WORKSPACE
>depending on
>> > the sync directory defined by user.
>> >
>> > i.e. it can be $(WORKSPACE)/edk2-platforms or $(WORKSPACE)/<any
>> > directory name that user can define during git sync>
>> >
>> > As our dsc files are relative to PACKAGES_PATH, I want to specify
>> > their path in dsc file like this:
>> >
>> >
>> >
>> > !include $(PACKAGES_PATH)/Silicon/NXP/<Silicon Name>.dsc
>> >
>> >
>> >
>> > Using $(WORKSPACE), I cannot specify above path, as it can be at place
>> > other than $(WORKSPACE)/edk2-platforms
>> >
>>
>> But why do you need to !include things in the first place?
>>
>> Can you explain how you are trying to organize the files, and which file
>includes
>> which?
>
>I am trying to keep Silicon (SOC) specific dsc file in Silicon/NXP/<Chassis
>Name>/<Silicon Name>
>This silicon can be used in multiple Boards (Platforms).
>All these Platforms are present in Platform/NXP/<Platform Name>
>fd/fv binaries would be created for each platform.
>The chassis dsc file has description of components/PCDs that are specific to
>chassis to which the silicon belongs. It would be same for all silicons that
>belong to same chassis.
>The Silicon dsc file has description of components/PCDs that are specific to
>silicon and would be same for all platforms that use this silicon. It would
>include chassis dsc file
>The Platform dsc file would include the silicon dsc file.
>
>___________________________________
>| Platform (in Platform/NXP)                        |
>|    _____________________________      |
>|   | Silicon (in Silicon/NXP/<Chassis>) |     |
>|   |   _______________________        |     |
>|   |  | Chassis  (in Silicon/NXP)     |       |    |
>|   |  |______________________|       |     |
>|   |____________________________|     |
>|_________________________________|
>
>Regards,
>Pankaj Bansal
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to