Hi Mats, On Fri, Apr 12, 2013 at 03:58:01PM +0200, Mats Liljegren wrote: > I need to archive source for virtual/kernel when building. This is needed > for other builds that uses the bitbake build result. > > I saw that there is archive-patched-source class, which seems to do what I > want plus a lot more. The problem with it is that it seems to be intended > for other use case than mine, which means that it does a lot more work than > I need. > The archive-*-source classes are primarily intended to assist in providing materials for license compliance for the entire target image. That being said, it shouldn't be too difficult to apply them to a single package.
> Is there a way to either tame archive-patched-source to only be applicable > for virtual/kernel, or is there other ways of accomplishing what I want? > I assume you have a line in your local.conf that looks something like: INHERIT += "archive-patched-source" This means that the class will be inherited at the global level and therefor applied to all packages. It's perfectly reasonable to inherit the class in any specific package, by adding this line to its recipe: inherit archive-patched-source I hope this gives you what you're looking for. Take a look at the Yocto Project dev manual[1] for further information on the source archiver. -Kevin [1] http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#maintaining-open-source-license-compliance-during-your-products-lifecycle > Regards > Mats > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto