Re: [OE-core] [PATCH 0/4] extend buildhistory

2015-12-01 Thread Paul Eggleton
On Fri, 27 Nov 2015 13:34:27 Paul Eggleton wrote:
> One aspect that will probably change in the future is how it picks up the
> kernel configuration - for
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=5574 (which I hope to get
> to for 2.1, but no promises) we will need to write the kernel configuration
> to the sysroot so that we have somewhere we can look for it; if that's the
> case there'll be no need to copy it specially in
> buildhistory-extra.bbclass.

Hmm, I really should have checked kernel.bbclass before saying anything - it 
is already copying the kernel config to ${STAGING_KERNEL_BUILDDIR}/.config, so 
provided you look there at the right time (i.e. after do_shared_workdir of the 
kernel has executed) it should be possible to optimise how that's dealt with 
right now.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/4] extend buildhistory

2015-11-27 Thread Martin Jansa
On Fri, Nov 27, 2015 at 01:34:27PM +1300, Paul Eggleton wrote:
> On Wednesday 25 November 2015 10:30:28 Patrick Ohly wrote:
> > The initial implementation of YOCTO #8138
> > ("buildhistory-extra.bbclass: store more information about a build")
> > had some issues ("kconfig" file not preserved) but more importantly,
> > additional changes are needed to support also gathering information
> > about native recipes.
> > 
> > I am proposing to include only the "buildhistory.bbclass: support
> > extending the content of the build history" patch into OE-core.
> > 
> > The original buildhistory-extra.bbclass and the modifications made to
> > it are included here merely to provide the context for that change and
> > to publish the modifications.
> 
> For others' reference, buildhistory-extra.bbclass was previously attached to 
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=8138 - I didn't and 
> wouldn't 
> propose introducing it into OE-Core in its current form because it's kind of 
> turning buildhistory into something it wasn't designed for, though I don't 
> disagree that it's useful. Happy to hear opinions from others on this though.

I agree it's useful.

I wonder if we can abstract some of these functions to be able to run
some of them without the actual build - we want to generate BOM (Bill of
materials) before building the image and e.g. for verification builds we
generate them twice (for base metadata, then with verification changes
applied) and generate diff.

I've implemented this as separate task which traverse the dependency
tree from the image we're going to build and writes all interesting
metadata in JSON.

Regards,

> One aspect that will probably change in the future is how it picks up the 
> kernel configuration - for 
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=5574 (which I hope to get 
> to 
> for 2.1, but no promises) we will need to write the kernel configuration to 
> the 
> sysroot so that we have somewhere we can look for it; if that's the case 
> there'll be no need to copy it specially in buildhistory-extra.bbclass.
> 
> Cheers,
> Paul
> 
> -- 
> 
> Paul Eggleton
> Intel Open Source Technology Centre
> -- 
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com


signature.asc
Description: Digital signature
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 0/4] extend buildhistory

2015-11-26 Thread Paul Eggleton
On Wednesday 25 November 2015 10:30:28 Patrick Ohly wrote:
> The initial implementation of YOCTO #8138
> ("buildhistory-extra.bbclass: store more information about a build")
> had some issues ("kconfig" file not preserved) but more importantly,
> additional changes are needed to support also gathering information
> about native recipes.
> 
> I am proposing to include only the "buildhistory.bbclass: support
> extending the content of the build history" patch into OE-core.
> 
> The original buildhistory-extra.bbclass and the modifications made to
> it are included here merely to provide the context for that change and
> to publish the modifications.

For others' reference, buildhistory-extra.bbclass was previously attached to 
https://bugzilla.yoctoproject.org/show_bug.cgi?id=8138 - I didn't and wouldn't 
propose introducing it into OE-Core in its current form because it's kind of 
turning buildhistory into something it wasn't designed for, though I don't 
disagree that it's useful. Happy to hear opinions from others on this though.

One aspect that will probably change in the future is how it picks up the 
kernel configuration - for 
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5574 (which I hope to get to 
for 2.1, but no promises) we will need to write the kernel configuration to the 
sysroot so that we have somewhere we can look for it; if that's the case 
there'll be no need to copy it specially in buildhistory-extra.bbclass.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 0/4] extend buildhistory

2015-11-25 Thread Patrick Ohly
The initial implementation of YOCTO #8138
("buildhistory-extra.bbclass: store more information about a build")
had some issues ("kconfig" file not preserved) but more importantly,
additional changes are needed to support also gathering information
about native recipes.

I am proposing to include only the "buildhistory.bbclass: support
extending the content of the build history" patch into OE-core.

The original buildhistory-extra.bbclass and the modifications made to
it are included here merely to provide the context for that change and
to publish the modifications.

The following changes since commit d0f3f3a294d509560bd12b93b26eeec65cfee314:

  package_manager.py: Delete installed_pkgs.txt file (2015-11-24 15:55:33 +)

are available in the git repository at:

  git://github.com/pohly/openembedded-core buildhistory-extra
  https://github.com/pohly/openembedded-core/tree/buildhistory-extra

Ismo Puustinen (1):
  buildhistory-extra.bbclass: simplify usage

Patrick Ohly (2):
  buildhistory.bbclass: support extending the content of the build
history
  buildhistory-extra.bbclass: more complete and reliable data gathering

Paul Eggleton (1):
  buildhistory-extra.bbclass: store more information about a build

 meta/classes/buildhistory-extra.bbclass | 127 
 meta/classes/buildhistory.bbclass   |  13 +++-
 2 files changed, 139 insertions(+), 1 deletion(-)
 create mode 100644 meta/classes/buildhistory-extra.bbclass

-- 
2.1.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core