Using a poky recipe's files in a custom recipe
The current Poky I'm using (krogoth) has a recipe for dropbear, but I want to upgrade to use the latest version of dropbear.
For source control reasons, I don't want to modify what's in meta/recipes-core/dropbear and therefore want to have my own recipe in my own layer. Yet for cleanliness I'd also prefer not to have to replicate all its .inc file etc in my own layer.
Is there a clean way to be able to include meta's files within my own recipe? Is it a case of some sort of FILESEXTRAPATHS entry, and what would be the best way to cross reference to the poky layer?
Quoted 10 lines · On 12/15/2017 08:36 AM, [email protected] wrote:
The current Poky I'm using (krogoth) has a recipe for dropbear, but I want to upgrade to use the latest version of dropbear.
For source control reasons, I don't want to modify what's in meta/recipes-core/dropbear and therefore want to have my own recipe in my own layer. Yet for cleanliness I'd also prefer not to have to replicate all its .inc file etc in my own layer.
Is there a clean way to be able to include meta's files within my own recipe? Is it a case of some sort of FILESEXTRAPATHS entry, and what would be the best way to cross reference to the poky layer?
I'm thinking if you
require recipes-core/dropbear/dropbear.inc
it uses BBPATH to search for the inc file, so it will pick up the one in meta.
Philip
Quoted 15 lines · On 15 December 2017 at 14:35 Philip Balister wrote:
Quoted 9 lines · On 12/15/2017 08:36 AM, [email protected] wrote:
The current Poky I'm using (krogoth) has a recipe for dropbear, but I want to upgrade to use the latest version of dropbear.
For source control reasons, I don't want to modify what's in meta/recipes-core/dropbear and therefore want to have my own recipe in my own layer. Yet for cleanliness I'd also prefer not to have to replicate all its .inc file etc in my own layer.
Is there a clean way to be able to include meta's files within my own recipe? Is it a case of some sort of FILESEXTRAPATHS entry, and what would be the best way to cross reference to the poky layer?
Quoted 7 lines
I'm thinking if you
require recipes-core/dropbear/dropbear.inc
it uses BBPATH to search for the inc file, so it will pick up the one in meta.
Excellent. Many thanks, Philip - that's got it.