02.04.2012 19:56, KP Kirchdoerfer написал: > Am 30.03.2012 21:25, schrieb Andrew: >> Hi all. >> Today I realized my idea of automation of package definition for initrd >> and moddb for each arch. It looks for me tiny and clear for >> understanding/modifying. >> Now there are template file with ##ARCH## tag and other files except >> kernel modules, and list of regexps for module names that are required >> for that package. >> It seems that nothing was forgotten in that operation - just removed >> some rarely-used modules; and some modules that are prerequisites for >> currently present in moddb were added in that way, + added some >> iptables-related and IPVS modules. >> So it waits testing, and now it seems that all environment is prepared >> for experiments in cross-compilation. > Hi Andrew; > > pls look into my previous mail, how much I enjoy the/your work for > cross-compiling. > > While I'm convinced that your approach works and is tiny, I'm not shure > if it's "understandable". I looked a long time in to your changes and my > impression is that you've "over-simplified" it. > > The logic to build the files for buildpacket.pl has been put into > buildtool.mk, the file to declare the modules is really simple. Anyway > it breaks the "rules" how to define the filelist for packages. > So it's different compared to any other package. While the current > approach is "stupid", it just works and until today it's always the same > for every package. No, same behavior was used for initrd for a long time. > I'm afraid that putting the logic into buildtool.mk , and to make a > difference in package definitions requires more documentation, raises > questions and is in fact not as easy to understand as we like. This is applicable only for 2 packages, and only for kernel modules included in that packages. > If it's really necessary for cross-compiling I'll swallow it, if not I'd > like to go with the common approach, just to keep it as simple as > possible over the whole buildtool setup. > > opinions? > kp > Another variant for cross-compiling - to have common file that has some replaceable insertions, a lot of specific files for each arch (like one for geode), and a lot of changes into buildimage.pl. And, of course, a lot of work for dependency tracking for modules (for ex., even in 4.2 in moddb there are some modules that are dependent on modules missed in moddb).
------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel