Merging openmoko into OE
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[DANGER: cross-post]
Harald Welte schreef:
Quoted 33 lines · Koen Kooi
Quoted 2 lines
What are the plans, and how can the community help with carrying those out?
Our current agenda is more focussed on "getting things working at all" rather than "doing everything correct in the first run". I wish it was different, but we're really under a lot of pressure here.
As far as the buildsystem is addressed, there are some distinct features which we're lacking currently. I have hired an experienced python hacker to add those things properly to bitbake and then talk to you guys about how this code can be merged.
Our primary requirements, with regard to the build system, are:
1) do proper and reliable caching, dependency resolving, and decisions on when to build what, while staying in-sync with upstream repositories. We're working on somce code that adds methods to the fetchers (so far: only svn) to determine the 'last changed date' of the upstream repo. Then we create a string as concatentation of all source uri repositories, and use that as PR. This gets rid of the bogus timestamps and neverending rebuilds of the same source code.
Also, the tarballs in 'sources' (which get mirrored to downloads.openmoko.org/sources) will then contain e.g. the svn revision number, not the checkout date.
This whole logic will be optional, and only be active for SRCDATE="now" packages.
Using this method we can e.g. only rebuild the uboot package if either upstream git or our quilt patchset in svn have changed.
Quoted 8 lines
I know this might conflict with where bitbake is heading, or what is currently in 1.7.x. We will investigate this later, once we have something that fits our needs first. I know this is very un-free-software-like, but we really are short of months of time [and staff] and have to compromise somewhere.
2) run automatized builds on one of our buildhosts, continuously, sending reports about build failures directly into bugzilla.
Holger has modified(/rewritten) tinderbox code to do such a thing. It need a recent bugzilla with xmlrpc turned on.
Quoted 4 lines
3) find a cleaner way for the deploy/images directory. There need to be per-release symlinks so that an automatized flashing tool can always assume that the current kernel for one release/snapshot/branch has a fixed name (can be symlinks).
Ok, that's not too hard, I recall Richard making a start with that for the zaurus machines.
Quoted 3 lines
Also, the statically linked native
openocd, dfu-util and sjf2410 binaries need to go to a different directory.
Rod is looking into proper statical linking. We probably need a DEPLOY_DIR_TOOLS or something where the tools will live.
Quoted 1 line
4) find a way how to correctly clean up packages after a build.
s/packages/images/
Quoted 2 lines
Something like: If I rebuild a kernel uImage, then only the most current one is supposed to be in 'images', older ones get moved to 'attic'.
That one is a bit nasty, since people might want to have it all in one dir, and might freak out when OE moves it away to another dir. I'm not one of those people :)
Quoted 1 line
5) find a way how to completely clean up a package, including all
s/package/recipe/
Quoted 2 lines
related download cache, bitbake rule cache, .ipk's and/or 'images' that it created
Holger and I discussed something like that for the packaged-staging project, but we didn't come up with a clean way to present it to the user. That was last year, and I'm sure others can come up with something.
Quoted 3 lines
6) find how how we can automatically create a full 'snapshot' from a current build-directory, by just using the latest version of every kerne/uboot image and .ipk
What kind of snapshot are you talking about? A flashable image, a tarball or the OE recipes, ... , ... ?
Quoted 2 lines
7) related: reimplement ipkg backend to use some indexed database. It's just too slow
You can make it about twice as fast by doing:
for i in find . -name Packages ; do grep -v ^Source: $i|gzip -c9>$i.gz ;gunzip -c $i.gz>$i ; done
Marcin looked at it briefly, and it seems that using an sqlite3 database will use up the same size for the list of available packages.
Quoted 2 lines
8) think about signing binary packages and feeds plus signature verification on the device
That'd be nice and can probably implementing within the current control file format.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFF6/d2MkyGM64RGpERAuuoAKCPPoGoWwlrDMPLOxPQsWn1XZslsgCff9Im EXlcf1BGqRgLBrxsBxvRpU8=
=rBfW
-----END PGP SIGNATURE-----
Quoted 13 lines · Koen Kooi
Harald Welte schreef:
Quoted 12 lines · Koen Kooi
Quoted 2 lines
What are the plans, and how can the community help with carrying those out?
Our current agenda is more focussed on "getting things working at all" rather than "doing everything correct in the first run". I wish it was different, but we're really under a lot of pressure here.
As far as the buildsystem is addressed, there are some distinct features which we're lacking currently. I have hired an experienced python hacker to add those things properly to bitbake and then talk to you guys about how this code can be merged.
Could the experienced python hacker at least talk to the active bitbake developers before they go too far with this as it might be we can help each other and save time. I'd hate to see two implementations duplicating effort. I'm also a bit upset we're only learning of this through a forwarded email and were not approached directly.
Is this developer looking at all these issues or just the bitbake ones?
Quoted 17 lines
Quoted 17 lines
Our primary requirements, with regard to the build system, are:
1) do proper and reliable caching, dependency resolving, and decisions on when to build what, while staying in-sync with upstream repositories. We're working on somce code that adds methods to the fetchers (so far: only svn) to determine the 'last changed date' of the upstream repo. Then we create a string as concatentation of all source uri repositories, and use that as PR. This gets rid of the bogus timestamps and neverending rebuilds of the same source code.
Also, the tarballs in 'sources' (which get mirrored to downloads.openmoko.org/sources) will then contain e.g. the svn revision number, not the checkout date.
This whole logic will be optional, and only be active for SRCDATE="now" packages.
Quoted 8 lines
Quoted 8 lines
Using this method we can e.g. only rebuild the uboot package if either upstream git or our quilt patchset in svn have changed.
I know this might conflict with where bitbake is heading, or what is currently in 1.7.x. We will investigate this later, once we have something that fits our needs first. I know this is very un-free-software-like, but we really are short of months of time [and staff] and have to compromise somewhere.
There were significant fetcher changes in 1.7.x. I wouldn't suggest trying to implement this against 1.6.x for that reason but it would mean upgrading your bitbake which is probably out of the question.
FWIW, bitbake is shaping up for a stable 1.8.x series now.
Quoted 6 lines
Quoted 4 lines
3) find a cleaner way for the deploy/images directory. There need to be per-release symlinks so that an automatized flashing tool can always assume that the current kernel for one release/snapshot/branch has a fixed name (can be symlinks).
Ok, that's not too hard, I recall Richard making a start with that for the zaurus machines.
Its not Zaurus specific and I have this working in poky for all its images/kernels. Its relatively simple to do.
Quoted 6 lines
Quoted 3 lines
Also, the statically linked native
openocd, dfu-util and sjf2410 binaries need to go to a different directory.Rod is looking into proper statical linking. We probably need a
DEPLOY_DIR_TOOLSor something where the tools will live.
This is certainly easily fixed.
Quoted 9 lines
Quoted 1 line
4) find a way how to correctly clean up packages after a build.
s/packages/images/
Quoted 2 lines
Something like: If I rebuild a kernel uImage, then only the most current one is supposed to be in 'images', older ones get moved to 'attic'.
That one is a bit nasty, since people might want to have it all in one dir, and might freak out when OE moves it away to another dir. I'm not one of those people :)
Its a case of adding some class which post processes after do_rootfs and do_deploy. That way any distro/user that wants to use it can but nobody is forced into it. Again, this should be easily implemented.
Quoted 10 lines
Quoted 1 line
5) find a way how to completely clean up a package, including all
s/package/recipe/
Quoted 2 lines
related download cache, bitbake rule cache, .ipk's and/or 'images' that it created
Holger and I discussed something like that for the packaged-staging project, but we didn't come up with a clean way to present it to the user. That was last year, and I'm sure others can come up with something.
This needs packaged staging which is quite an effort. Please do discuss this before implementation as we've tried things before and know roughly how this can work.
Quoted 2 lines
Quoted 2 lines
7) related: reimplement ipkg backend to use some indexed database. It's just too slow
Are we talking about on device use or use during image generation? On device is tricky but there are simple ways of speeding up image generation that just need implementation.
Regards,
Richard
Quoted 10 lines · Richard Purdie
Quoted 4 lines
Quoted 4 lines
As far as the buildsystem is addressed, there are some distinct features which we're lacking currently. I have hired an experienced python hacker to add those things properly to bitbake and then talk to you guys about how this code can be merged.
Could the experienced python hacker at least talk to the active bitbake developers before they go too far with this as it might be we can help each other and save time. I'd hate to see two implementations duplicating effort. I'm also a bit upset we're only learning of this through a forwarded email and were not approached directly.
IIRC, mickey said he wold ping you, but maybe that just got lost before he went on holidays. It has been an awfully busy time.
And please don't be too upset. The time loss will be ours, i.e. a monetary loss. We're committed to do whatever changes/merging required even after our initial 1.6.x implementation.
As indicated, we need this yesterday, and that's why we just do what we think is right, even though that might be a one-way road and we might have to do it differently at some later point, when there's less of a time constraint and more time for actual design discussions and the like.
Quoted 1 line
Is this developer looking at all these issues or just the bitbake ones?
unclear, will be decided upon once the bitbake ones are solved
Quoted 26 lines
Quoted 17 lines
Quoted 17 lines
Our primary requirements, with regard to the build system, are:
1) do proper and reliable caching, dependency resolving, and decisions on when to build what, while staying in-sync with upstream repositories. We're working on somce code that adds methods to the fetchers (so far: only svn) to determine the 'last changed date' of the upstream repo. Then we create a string as concatentation of all source uri repositories, and use that as PR. This gets rid of the bogus timestamps and neverending rebuilds of the same source code.
Also, the tarballs in 'sources' (which get mirrored to downloads.openmoko.org/sources) will then contain e.g. the svn revision number, not the checkout date.
This whole logic will be optional, and only be active for SRCDATE="now" packages.
Quoted 8 lines
Quoted 8 lines
Using this method we can e.g. only rebuild the uboot package if either upstream git or our quilt patchset in svn have changed.
I know this might conflict with where bitbake is heading, or what is currently in 1.7.x. We will investigate this later, once we have something that fits our needs first. I know this is very un-free-software-like, but we really are short of months of time [and staff] and have to compromise somewhere.
Quoted 3 lines
There were significant fetcher changes in 1.7.x. I wouldn't suggest trying to implement this against 1.6.x for that reason but it would mean upgrading your bitbake which is probably out of the question.
we're aware of this, still we want to add it to 1.6.x first (I'm now testing 1.6.6) before going ahead with 1.7/1.8. Don't worry, _we_ will take care of the fallout and merging.
Quoted 1 line
FWIW, bitbake is shaping up for a stable 1.8.x series now.
yes, we've noticed that.
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
3) find a cleaner way for the deploy/images directory. There need to be per-release symlinks so that an automatized flashing tool can always assume that the current kernel for one release/snapshot/branch has a fixed name (can be symlinks).
Ok, that's not too hard, I recall Richard making a start with that for the zaurus machines.
Its not Zaurus specific and I have this working in poky for all its images/kernels. Its relatively simple to do.
is that available as bbclass or how do we activate that feature?
Quoted 4 lines
Quoted 2 lines
Rod is looking into proper statical linking. We probably need a
DEPLOY_DIR_TOOLSor something where the tools will live.This is certainly easily fixed.
yes, we'll look into it
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
4) find a way how to correctly clean up packages after a build.
s/packages/images/
Quoted 2 lines
Something like: If I rebuild a kernel uImage, then only the most current one is supposed to be in 'images', older ones get moved to 'attic'.
Quoted 6 lines
Quoted 2 lines
That one is a bit nasty, since people might want to have it all in one dir, and might freak out when OE moves it away to another dir. I'm not one of those people :)
Its a case of adding some class which post processes after
do_rootfsanddo_deploy. That way any distro/user that wants to use it can but nobody is forced into it. Again, this should be easily implemented.
yes, that's what i thought.
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
5) find a way how to completely clean up a package, including all
s/package/recipe/
Quoted 2 lines
related download cache, bitbake rule cache, .ipk's and/or 'images' that it created
Quoted 7 lines
Quoted 3 lines
Holger and I discussed something like that for the packaged-staging project, but we didn't come up with a clean way to present it to the user. That was last year, and I'm sure others can come up with something.
This needs packaged staging which is quite an effort. Please do discuss this before implementation as we've tried things before and know roughly how this can work.
ok, will do. this is less important at the moment.
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
7) related: reimplement ipkg backend to use some indexed database. It's just too slow
Are we talking about on device use or use during image generation? On device is tricky but there are simple ways of speeding up image generation that just need implementation.
image generation is not an issue at all.
We're talking about on-device use which is way too slow for our needs, especially considering the number of packages and that we'll have a GUI application in front/on top, in addition to that.
If there are existing plans/ideas in this area, or somebody with some ipkg background has a good proposal and wants to implement it as paid contractor, this would be the time to talk about it.
Signature · 3 lines
- Harald Welte <[email protected]> http://openmoko.org/ ============================================================================ Software for the world's first truly open Free Software mobile phone
Quoted 6 lines · Harald Welte
Quoted 5 lines · Richard Purdie
Quoted 4 lines
Quoted 4 lines
As far as the buildsystem is addressed, there are some distinct features which we're lacking currently. I have hired an experienced python hacker to add those things properly to bitbake and then talk to you guys about how this code can be merged.
Quoted 8 lines
Quoted 5 lines
Could the experienced python hacker at least talk to the active bitbake developers before they go too far with this as it might be we can help each other and save time. I'd hate to see two implementations duplicating effort. I'm also a bit upset we're only learning of this through a forwarded email and were not approached directly.
IIRC, mickey said he wold ping you, but maybe that just got lost before he went on holidays. It has been an awfully busy time.
Mickey mentioned something very briefly about a problem but he was in a hurry and I'd actually misunderstood the problem looking at this :/. I also thought he'd found a solution that worked for now meaning more time could be spent solving it properly.
In future, please do send a mail to the bitbake development list if there are problems like this.
Quoted 3 lines
And please don't be too upset. The time loss will be ours, i.e. a monetary loss. We're committed to do whatever changes/merging required even after our initial 1.6.x implementation.
Fair enough, I understand the problem.
Quoted 3 lines
Quoted 1 line
FWIW, bitbake is shaping up for a stable 1.8.x series now.
yes, we've noticed that.
Even if you don't switch to using 1.8.x, it would be good if you did have time to test it and let us known what (if any :) issues you have with it. I'm about to send something to the lists requesting testing before we release 1.8.0.
Quoted 11 lines
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
3) find a cleaner way for the deploy/images directory. There need to be per-release symlinks so that an automatized flashing tool can always assume that the current kernel for one release/snapshot/branch has a fixed name (can be symlinks).
Ok, that's not too hard, I recall Richard making a start with that for the zaurus machines.
Its not Zaurus specific and I have this working in poky for all its images/kernels. Its relatively simple to do.
is that available as bbclass or how do we activate that feature?
It should just work but I suspect the changes haven't all been merged from poky -> OE.dev though (just due to lack of time). I'll look into it.
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 1 line
5) find a way how to completely clean up a package, including all
s/package/recipe/
Quoted 2 lines
related download cache, bitbake rule cache, .ipk's and/or 'images' that it created
Holger and I discussed something like that for the packaged-staging project, but we didn't come up with a clean way to present it to the user. That was last year, and I'm sure others can come up with something.
Quoted 5 lines
Quoted 3 lines
This needs packaged staging which is quite an effort. Please do discuss this before implementation as we've tried things before and know roughly how this can work.
ok, will do. this is less important at the moment.
This is a long term project aim for OpenEmbedded (and me personally) since it doesn't just solve this problem but solves a number of others too. It would be great to see it developed.
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
7) related: reimplement ipkg backend to use some indexed database. It's just too slow
Are we talking about on device use or use during image generation? On device is tricky but there are simple ways of speeding up image generation that just need implementation.
image generation is not an issue at all.
Quoted 7 lines
We're talking about on-device use which is way too slow for our needs, especially considering the number of packages and that we'll have a GUI application in front/on top, in addition to that.
If there are existing plans/ideas in this area, or somebody with some ipkg background has a good proposal and wants to implement it as paid contractor, this would be the time to talk about it.
I think lots of people, me included have looked at the ipkg code and wanted to see it rewritten with something like a sqlite backend rather than parsing its ascii files all the time.
Cheers,
Richard
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richard Purdie schreef:
Quoted 14 lines · Harald Welte
Quoted 13 lines · Richard Purdie
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
7) related: reimplement ipkg backend to use some indexed database. It's just too slow
Are we talking about on device use or use during image generation? On device is tricky but there are simple ways of speeding up image generation that just need implementation.
image generation is not an issue at all.
We're talking about on-device use which is way too slow for our needs, especially considering the number of packages and that we'll have a GUI application in front/on top, in addition to that.
Quoted 7 lines
Quoted 3 lines
If there are existing plans/ideas in this area, or somebody with some ipkg background has a good proposal and wants to implement it as paid contractor, this would be the time to talk about it.
I think lots of people, me included have looked at the ipkg code and wanted to see it rewritten with something like a sqlite backend rather than parsing its ascii files all the time.
Ipkg got 2x faster when turning up the memory bus to 200MHz, so a large part is spent copying few megs worth of lists to and from memory. On 64MB devices a big part of the slowness comes from OOM and swapping :(
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFF7D9cMkyGM64RGpERAt5wAKCEklyebJUEcO/092Gi52yCuO/0mACfdYD1 vNn7+1m87O7GJjbG2DC32Xs=
=66b3
-----END PGP SIGNATURE-----
Quoted 4 lines · Richard Purdie
Mickey mentioned something very briefly about a problem but he was in a hurry and I'd actually misunderstood the problem looking at this :/. I also thought he'd found a solution that worked for now meaning more time could be spent solving it properly.
the interim solution was to rebuild everything all the time (srcdate in PR), but that's no longer acceptable now.
Quoted 2 lines
In future, please do send a mail to the bitbake development list if there are problems like this.
'k
Quoted 4 lines
Even if you don't switch to using 1.8.x, it would be good if you did have time to test it and let us known what (if any :) issues you have with it. I'm about to send something to the lists requesting testing before we release 1.8.0.
i'll see if I can find somebody 'qualified' to do that :)
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Holger and I discussed something like that for the packaged-staging project, but we didn't come up with a clean way to present it to the user. That was last year, and I'm sure others can come up with something.
This needs packaged staging which is quite an effort. Please do discuss this before implementation as we've tried things before and know roughly how this can work.
Quoted 5 lines
Quoted 1 line
ok, will do. this is less important at the moment.
This is a long term project aim for OpenEmbedded (and me personally) since it doesn't just solve this problem but solves a number of others too. It would be great to see it developed.
well, what I actaully would love to see is native host distro rpm/dpkg file creation for at least the toolchain, but in the end acutally also the staging, yes.
Another issue that we're running into is this inevitable rebuild-everything-from-scratch when you just want to temporarily test something. There should be an easy way to keep all native packages, toolchain, etc. and only rebuild everything for the target, i.e. start again with bootloader/kernel/glibc/... for arm in our case.
Quoted 7 lines
Quoted 3 lines
If there are existing plans/ideas in this area, or somebody with some ipkg background has a good proposal and wants to implement it as paid contractor, this would be the time to talk about it.
I think lots of people, me included have looked at the ipkg code and wanted to see it rewritten with something like a sqlite backend rather than parsing its ascii files all the time.
So did anyone make actual plans on how to go about this?
Or alternatively: Is there somebody who would be available on short notice and interested in implementign such a backend as a paid contract job? Please step up now :)
Signature · 3 lines
- Harald Welte <[email protected]> http://openmoko.org/ ============================================================================ Software for the world's first truly open Free Software mobile phone
Quoted 4 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1[DANGER: cross-post]
hehe.
Quoted 5 lines
Quoted 2 lines
2) run automatized builds on one of our buildhosts, continuously, sending reports about build failures directly into bugzilla.
Holger has modified(/rewritten) tinderbox code to do such a thing. It need a recent bugzilla with xmlrpc turned on.
mh, 'recent bugzilla' sounds not very promising, I'm usually very reluctant to use anything outside of 'debian stable' since it requires manual care of security updates, etc. But I guess this is an important enough reason to do it.
Is Holgers code available somewhere?
Quoted 6 lines
Quoted 4 lines
3) find a cleaner way for the deploy/images directory. There need to be per-release symlinks so that an automatized flashing tool can always assume that the current kernel for one release/snapshot/branch has a fixed name (can be symlinks).
Ok, that's not too hard, I recall Richard making a start with that for the zaurus machines.
yes. The question is: should we put this into our kernel/uboot recipes, or use some modified kernel.bbclass for it? or implement it as script completely outside OE?
Quoted 6 lines
Quoted 3 lines
Also, the statically linked native
openocd, dfu-util and sjf2410 binaries need to go to a different directory.Rod is looking into proper statical linking. We probably need a
DEPLOY_DIR_TOOLSor something where the tools will live.
DEPLOY_DIR_TOOLS: good.
Quoted 9 lines
Quoted 1 line
4) find a way how to correctly clean up packages after a build.
s/packages/images/
Quoted 2 lines
Something like: If I rebuild a kernel uImage, then only the most current one is supposed to be in 'images', older ones get moved to 'attic'.
That one is a bit nasty, since people might want to have it all in one dir, and might freak out when OE moves it away to another dir. I'm not one of those people :)
I'm not asking that this becomes a general policy. I just state that Openmoko needs this feature, at lest in some scenarios. So if we can come up with an option for that.
Quoted 11 lines
Quoted 1 line
5) find a way how to completely clean up a package, including all
s/package/recipe/
Quoted 2 lines
related download cache, bitbake rule cache, .ipk's and/or 'images' that it created
Holger and I discussed something like that for the packaged-staging project, but we didn't come up with a clean way to present it to the user. That was last year, and I'm sure others can come up with something.
Yes, we will investigate this after
Quoted 6 lines
Quoted 3 lines
6) find how how we can automatically create a full 'snapshot' from a current build-directory, by just using the latest version of every kerne/uboot image and .ipk
What kind of snapshot are you talking about? A flashable image, a tarball or the OE recipes, ... , ... ?
'snapshot' in this context is defined as the most current of each
1) uboot image
2) kernel image
3) any ipk's that exist
So basically I want to be able to do incremental builds, where dozens of versions of images and ipk's accumulate in the 'deploy' and its subdirectories. Then when I feel confident that the most recent stuff is worth as a snapshot that people {testers,developers} should use, I want to separate those files from all the historical junkt that has accumulated, without starting another multiple-hour recompile-everything-from-scratch.
Quoted 10 lines
Quoted 2 lines
7) related: reimplement ipkg backend to use some indexed database. It's just too slow
You can make it about twice as fast by doing:
for i in
find . -name Packages; do grep -v ^Source: $i|gzip -c9>$i.gz ;gunzip -c $i.gz>$i ; doneMarcin looked at it briefly, and it seems that using an sqlite3 database will use up the same size for the list of available packages.
Oh, I'm not worried about the size of the list of packages (download speed), I'm worried about the access times to scan that list. And any more indexed format which doesn't require scanning/parsing of all that ascii data everytime you execute ipkg.
Quoted 4 lines
Quoted 2 lines
8) think about signing binary packages and feeds plus signature verification on the device
That'd be nice and can probably implementing within the current control file format.
great. we'll look into that at some point in the future, before phaes-2 (september) in our terminology.
Signature · 3 lines
- Harald Welte <[email protected]> http://openmoko.org/ ============================================================================ Software for the world's first truly open Free Software mobile phone
Quoted 11 lines · Harald Welte
Quoted 6 lines · Koen Kooi
Quoted 4 lines
3) find a cleaner way for the deploy/images directory. There need to be per-release symlinks so that an automatized flashing tool can always assume that the current kernel for one release/snapshot/branch has a fixed name (can be symlinks).
Ok, that's not too hard, I recall Richard making a start with that for the zaurus machines.
yes. The question is: should we put this into our kernel/uboot recipes, or use some modified kernel.bbclass for it? or implement it as script completely outside OE?
I've added this for images with a small change to image.bbclass. It does require the image type to be equal to the image filename extension which sometimes isn't the case but usually isn't a problem to arrange.
For kernels, add something like linux-rp.inc has in do_deploy:
rm -f ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin
ln -s ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin
although experience says a relative link like:
cd ${DEPLOY_DIR_IMAGE}/
rm -f ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin
ln -s ${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}.bin ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin
might be better.
There might be other do_deploy methods you need to tweak too but hopefully you get the idea.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Also, the statically linked native
openocd, dfu-util and sjf2410 binaries need to go to a different directory.Rod is looking into proper statical linking. We probably need a
DEPLOY_DIR_TOOLSor something where the tools will live.
DEPLOY_DIR_TOOLS: good.
I've just committed a definition of DEPLOY_DIR_TOOLS to OE.dev. Simply update anything you want installed to a tools directory to use this variable instead of DEPLOY_DIR_IMAGE.
Anyone who really dislikes this can doDEPLOY_DIR_TOOLS = "${DEPLOY_DIR}/images"
in their distro or local.conf ;-).
Cheers,
Richard
Am 05.03.2007 um 11:56 schrieb Koen Kooi:
Quoted 12 lines
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1[DANGER: cross-post]
Harald Welte schreef:
Quoted 6 lines · Koen Kooi
something that fits our needs first. I know this is very un-free-software-like, but we really are short of months of
time [and
staff] and have to compromise somewhere.
Hello,
I know Richard will respond as well, probably with the same complaint and in a much better way. Yes you are right it is very un-free-software-like and I feel ashamed of the lack of communication on that matter. Specially as BitBake and Quality (identifying issues (programatically), identifying them and providing solutions) are two topics I have high interest in.
I hope you have enough budget for your python expert to spend the time on merging and integrating his work upstream once he is done. This is the only way to differentiate from the people than run away with our work normally.
On a pure technical note we invite your expert to talk with us and I sincerly hope he is using this offer.
kind regards
z.
PS: I find it rather funny that both Richard and me work on this during our spare time but both have bosses that would allow us to carry these things out during work time...
Quoted 3 lines · Holger Freyther
Specially as BitBake and Quality (identifying issues (programatically), identifying them and providing solutions) are two topics I have high interest in.
again, I rather prefer having some real code as basis for discussion, rather than talking vaporwaere :)
Quoted 2 lines
I hope you have enough budget for your python expert to spend the time on merging and integrating his work upstream once he is done.
absolutely :)
Quoted 2 lines
This is the only way to differentiate from the people than run away with our work normally.
You don't need to tell me that :)
Quoted 2 lines
On a pure technical note we invite your expert to talk with us and I sincerly hope he is using this offer.
Henryk will be in touch with you soon. btw: I stated skilled or experienced python developer. To indicate that nobody else involved with OpenMoko [but mickey] qualifies as such.
Signature · 3 lines
- Harald Welte <[email protected]> http://openmoko.org/ ============================================================================ Software for the world's first truly open Free Software mobile phone