On Fri, Nov 02, 2007 at 12:18:33PM -0600, Myles Watson wrote:
I've been spinning my wheels because of a stale payload.
In the fallback directory, the payload file depends on the ../{../}*/payload.elf file. If you change that to ../../payload.lzma.elf to retry, it won't get the new file if payload is newer than payload.lzma.elf.
It seems like there are several possible fixes, but the one I like is changing buildtarget to remove the payload* files from normal, fallback, etc. The problem is that it doesn't look like buildtarget knows about those directories.
Is there a better way?
If I understand you right, you want to change something in the code and then rebuild an image? If so, I recommend to _always_ 'rm -rf BUILDDIR' and re-do the "./buildtarget foo/bar" etc.
That's the safest thing to do, you can then be sure that no old stuff is still left around and being incorrectly re-used. Yes, it's not really elegant or fast, but it's the one thing that works for sure.
HTH, Uwe.