Skip to contentSkip to conversation

bitbake freeze

DISCUSSION Justin Patrin 2 participants 2 messages Sep 4, 2006

lore
Share & tools
lore
#0 lore raw

I just remembered the old "freeze" command that John Bowler wrote a while ago and tried to use it. Unfortunately it doesn't seem to work with the current OE. I started hacking it and decided I should try python instead. After hacking some python in freeze.bb's do_build I realized I needed some features of bitbake but wasn't sure how to access them from a bb file. I ended up patching the bitbake shell to include a "freeze" command which does what I wanted it to.

http://oe.reversefold.com/bitbake-freeze.patch

I realize the shell isn't really the right place for this and that this might be nicer in a bb file somewhere but this is how I could get it working.

It currently makes an assumption about the relationship between TMPDIR and the conf directory (where local.conf resides). This should be configurable.

It also has code to both go through the Packages file in the default feed and to go through the directories in the work directory. While the Packages idea was a good one it doesn't take into account -native packages and therefore won't work 100% on its own. The code to go through the work directories assumes a 2 deep structure (as the multi-machine code does it). Since this is a confurable thing (part of OE) this wouldn't work in bitbake either really... Likely the Packages code should just be removed entirely as it's superfluous (the work directories give you everything) and it makes an assumption about feed structure and how up to date the feed's Packages is.

It also always assumes that you want anything in the directory where your provider's bb files are. This could be changed to give the original provider's bb file and not replace it with *.bb. It could even perhaps do both (as John's previous freeze did).

Let me know what you think and any suggestions for making the code better.

Signature · 1 line
Justin Patrin
#1 lore raw

Am Montag, den 04.09.2006, 00:28 -0700 schrieb Justin Patrin:

Quoted 3 lines

I just remembered the old "freeze" command that John Bowler wrote a while ago and tried to use it. Unfortunately it doesn't seem to work with the current OE.

[...]

Quoted 3 lines

I realize the shell isn't really the right place for this and that this might be nicer in a bb file somewhere but this is how I could get it working.

The shell is _exactly_ the right place for it -- since the command line parsing
went so fast, we need to come up with new use cases ;)

Quoted 1 line

Let me know what you think and any suggestions for making the code better.

I'm not familiar with the old freeze command (or I forgot it...), can you summarize
what you want to achieve?

Signature · 3 lines
Regards,

Michael 'Mickey' Lauer | FreeLancer | http://www.Vanille-Media.de