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

Alex

On Tue, 23 Apr 2024 at 14:19, Altous, Salahaldeen via
Lists.Yoctoproject.Org
<[email protected]> 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
> <[email protected]> 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
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62988): https://lists.yoctoproject.org/g/yocto/message/62988
Mute This Topic: https://lists.yoctoproject.org/mt/105687839/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to