> -----Original Message----- > From: Gao, Liming [mailto:liming....@intel.com] > Sent: Tuesday, October 16, 2018 10:58 AM > To: Pankaj Bansal <pankaj.ban...@nxp.com>; Ard Biesheuvel > <ard.biesheu...@linaro.org> > Cc: Zhu, Yonghong <yonghong....@intel.com>; Leif Lindholm > <leif.lindh...@linaro.org>; Kinney, Michael D <michael.d.kin...@intel.com>; > edk2-devel@lists.01.org; Udit Kumar <udit.ku...@nxp.com>; Varun Sethi > <v.se...@nxp.com> > Subject: RE: PACKAGES_PATH in !include path in Dsc files > > 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 You Liming Gao. It worked for me. > > Thanks > Liming > >-----Original Message----- > >From: Pankaj Bansal [mailto:pankaj.ban...@nxp.com] > >Sent: Tuesday, October 16, 2018 1:24 PM > >To: Ard Biesheuvel <ard.biesheu...@linaro.org> > >Cc: Gao, Liming <liming....@intel.com>; Zhu, Yonghong > ><yonghong....@intel.com>; Leif Lindholm <leif.lindh...@linaro.org>; > >Kinney, Michael D <michael.d.kin...@intel.com>; > >edk2-devel@lists.01.org; Udit Kumar <udit.ku...@nxp.com>; Varun Sethi > ><v.se...@nxp.com> > >Subject: RE: PACKAGES_PATH in !include path in Dsc files > > > > > > > >> -----Original Message----- > >> From: Ard Biesheuvel [mailto:ard.biesheu...@linaro.org] > >> Sent: Tuesday, October 16, 2018 8:41 AM > >> To: Pankaj Bansal <pankaj.ban...@nxp.com> > >> Cc: Gao, Liming <liming....@intel.com>; Zhu, Yonghong > >> <yonghong....@intel.com>; Leif Lindholm <leif.lindh...@linaro.org>; > >Michael > >> D Kinney <michael.d.kin...@intel.com>; edk2-devel@lists.01.org; Udit > >Kumar > >> <udit.ku...@nxp.com>; Varun Sethi <v.se...@nxp.com> > >> Subject: Re: PACKAGES_PATH in !include path in Dsc files > >> > >> On 16 October 2018 at 10:40, Pankaj Bansal <pankaj.ban...@nxp.com> > >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&data=02%7C01%7Cpankaj.bansal%40nxp.com%7C552da3f22b > >5 > >> > 84b7fac6008d63315ec8b%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0 > >> > %7C636752566592695047&sdata=JJWbAcZkj%2FtFaZC0bWONPb7ulCcj1 > >L2 > >> 4VKwCDGDx9OE%3D&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 edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel