A Wiki page ( http://wiki.debian.org/EmdebianQuickStart) is also available for this section.
$ sudo apt-get install emdebian-tools subversion
This will ask you where you want to build packages, your username for emdebian svn access if you have one and whether you want to use apt-get or aptitude for toolchain package installation. dpkg-cross will offer you the chance to set a default cross-building architecture which saves a lot of typing later on. If you choose None, you will need to add '--arch ARCH' to all the emdebian-tools commands.
Run emsetup --simulate to
see what needs to be modified.
New users are recommended to use at least one
-v|--verbose option to all emdebian-tools
commands.
$ emsetup --verbose --simulate
Check that the output is acceptable, nothing has been installed yet. Changes during installation can be reversed by purging emdebian-tools.
Re-run emsetup. This sets up the
~/.dpkg-cross directory which contains apt caches and
configuration files. emsetup then installs the Emdebian
toolchain. apt will keep your toolchain updated as normal.
$ emsetup -a m68k
Once emsetup is complete, you can use
apt-get update and apt-get
upgrade to ensure you have the latest versions of apt-cross and
emdebian-tools because updates are uploaded to Emdebian between Debian versions.
Obtain the Debian package, with emsource
(which also runs em_make) to create the SVN records and
emdebian patch files.
Change into the new directory, check
debian/rules and execute emdebuild.
If the build is successful, emdebuild --svn adds the
.build log to SVN.
Upload the generated .changes file to the Emdebian target
repository. (emdebuild supports a --sign
option which is recommended when uploading to Emdebian.)