On Tue, Apr 23, 2024 at 05:27 AM, Alexander Kanavin wrote: > > Yes this should be fine. But don't forget to inherit it in all the > recipes that would use these variables. > > Here's an example: > https://git.yoctoproject.org/poky/tree/meta/classes-recipe/gnomebase.bbclass >
Thanks I will give a try > > > Alex > > On Tue, 23 Apr 2024 at 14:19, Altous, Salahaldeen via > Lists.Yoctoproject.Org > <Salahaldeen.Altous=leica-camera....@lists.yoctoproject.org> wrote: > >> Hi Alex >> >> thanks for your quick reply. >> >> On Tue, Apr 23, 2024 at 05:02 AM, Alexander Kanavin wrote: >> >> I think you can simply make it a class and put under >> classes/some.bbclass? Plenty of recipes in oe-core do this, see e.g. >> gnomebase.bbclass. >> >> I need something like these these variables >> >> EXTERNAL_PROJECT_XXX_TYPE ?= "lib" >> EXTERNAL_PROJECT_XXX_NAME ?= "lc_xxx" >> EXTERNAL_PROJECT_XXX_GIT_URI ?= >> "${COMPANY_GIT_REPO}:test/independent-modules/lc_xxx.git" >> EXTERNAL_PROJECT_XXX_GIT_BRANCH ?= "development" >> EXTERNAL_PROJECT_XXX_GIT_TAG ?= "0.4.3-dev" >> >> EXTERNAL_PROJECT_YYY_TYPE ?= "lib" >> EXTERNAL_PROJECT_YYY_NAME ?= "lc-yyy" >> EXTERNAL_PROJECT_XXX_GIT_URI ?= >> "${COMPANY_GIT_REPO}:test/independent-modules/lc_xxx.git" >> EXTERNAL_PROJECT_YYY_GIT_BRANCH ?= "development" >> EXTERNAL_PROJECT_YYY_GIT_TAG ?= "0.2.1-dev" >> >> is this something possible with bbclass? >> >> Salahaldeen >> >> >> Alex >> >> On Tue, 23 Apr 2024 at 13:57, Altous, Salahaldeen via >> lists.yoctoproject.org >> <Salahaldeen.Altous=leica-camera....@lists.yoctoproject.org> wrote: >> >> Hi All, >> >> I need a common place holder to share one include files which can be used >> by multiple recipe (this include files includes some variables like >> SRC_URL, tag, gitbranch, ..., etc). >> >> I can copy it to each recipe but I am looking for the best practice to >> share a common inc file for all recipes in meta-xxx which can be found by >> default and this need to be under meta-xxx folder. >> >> thanks in advance. >> >> >> >> Regards, >> >> Salahaldeen Altous > > Thanks I will give a try
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62989): https://lists.yoctoproject.org/g/yocto/message/62989 Mute This Topic: https://lists.yoctoproject.org/mt/105687839/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-