Yocto common place holder for includes which used multiple recipe
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
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.
Alex
Quoted 24 lines · Salahaldeen via lists.yoctoproject.org
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 (#62985): https://lists.yoctoproject.org/g/yocto/message/62985
Mute This Topic: https://lists.yoctoproject.org/mt/105687839/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi Alex
thanks for your quick reply.
Quoted 4 lines · Alexander Kanavin
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
Quoted 30 lines
Alex
Quoted 20 lines · Salahaldeen via lists.yoctoproject.org
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
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
Quoted 51 lines · Salahaldeen via Lists.Yoctoproject.Org
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
Quoted 7 lines · Alexander Kanavin
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
Quoted 64 lines
Alex
Quoted 54 lines · Salahaldeen via Lists.Yoctoproject.Org
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
Thanks I will give a try