Current SVN (r410) holds a fairly complete set of emdebian-tools scripts and I'm preparing for a 0.0.2 release and upload to Debian unstable. i.e. it needs testing! :-) Does anyone fancy being co-maintainer in Debian? The result of emdebian-tools is that a new Emdebian developer should only need to do: $ sudo apt-get install emdebian-tools $ emsetup --verbose --simulate # check that the output is acceptable, nothing changed yet. $ emsetup If ~/.dpkg_cross/cross_compile isn't fully configured yet, (hint in the manpage), then emsetup requests the use of --arch to determine the target architecture: $ emsetup -v -s --arch m68k # check that the output is acceptable, nothing changed yet. $ emsetup -a m68k I'm thinking that a wishlist bug against dpkg-cross could be handy so that dpkg-cross maybe uses debconf to ask the user for a default target architecture. emdebian-tools can't configure cross_compile itself because that conffile belongs to dpkg-cross. I considered (and spent hours experimenting with) debconf for emdebian-tools but in the end, it failed to meet the need - principally because I couldn't find a way for debconf to a) update the (locked) apt-get package list after inclusion of a new repository and b) install packages from that repository where the package list has to be generated from other debconf input (namely the chosen target architecture). Hence, a new script: emsetup. Doing it this way also means there are no dependencies on the installed toolchain packages - instead the scripts handle checking for the toolchain at runtime. So we have a potential two step process, with an advisory to make it three. Source: emdebian-tools Section: utils Priority: extra Maintainer: Neil Williams <codehelp@debian.org> Build-Depends: cdbs, debhelper (>= 5) Standards-Version: 3.7.2 Package: emdebian-tools Architecture: all Depends: ${perl:Depends}, ${misc:Depends}, apt, apt-cross, binutils, gawk, debhelper, dpkg-cross, dpkg-dev (>= 1.13.9), fakeroot, flex, automake, libfile-homedir-perl, libwww-perl, sudo, dpatch, autoconf, realpath Description: emdebian crossbuilding tool set A collection of scripts to ease cross-building Debian packages for Emdebian, reducing package size, separating translations into individual files and handling dependencies. . emsetup : Check your system for cross-build support and determine some defaults for other emdebian-tools scripts. Run this first, using the simulate option to see what changes may be needed. . emchain : Toolchain builder for cross compiling. If a pre-built toolchain is not found or not available, emchain can build a custom toolchain for your needs using the current Debian version of gcc. . em_make : Emdebianise a Debian package. Creates suitable changelog entries, omits certain debhelper scripts from debian/rules and maintains a patchset for emdebian. Removes all documentation and udeb packages from debian/control. . emlocale : Moves all translations out of the Debian package(s) and into individual locale packages, allowing the embedded user to only install the translations that are relevant to that system. First run is via em_make, subsequent runs update the list of available translation packages. . emdebuild : Emdebian version of debuild that handles cross-building the emdebianised tree. Requires a suitable cross-building toolchain to be installed for the requested architecture, e.g. gcc-4.1-arm-linux-gnu, available from the emdebian tools repository via emsetup or built for your particular configuration using emchain. . Homepage: http://www.emdebian.org/ A demo arch _all.deb for 0.0.2 is in my apt repository: http://linux.codehelp.co.uk/packages/pool/main/e/emdebian-tools/ There'll be some more updates and corrections before it's actually released in emdebian SVN (with --svn-tag) and then uploaded to the Debian new queue. I'm currently waiting for the ITP bug number. Future versions of emdebian-tools may include more scripts / tools - including possibly empath. -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
Attachment:
pgptLp714HvgG.pgp
Description: PGP signature