| 1 |
HOWTO cross-build m68k linux-image |
| 2 |
|
| 3 |
Building linux-image packages takes a while, especially on the "slower |
| 4 |
arches", ie m68k. Cross-compiling is an alternative, and it works very well |
| 5 |
for m68k. |
| 6 |
|
| 7 |
You need to set up a cross-compiler. The toolchain-source package has some |
| 8 |
limitations, I prefer using cross-tools, see this page for instructions: |
| 9 |
|
| 10 |
http://people.debian.org/~cts/debian-m68k/cross-compile/ |
| 11 |
|
| 12 |
Now you only have to tell the debian build system, that you do want to build |
| 13 |
packages for m68k. It used to be sufficient to pass an option to debuild, |
| 14 |
since recently you also have to set an environment variable, like this: |
| 15 |
|
| 16 |
DEB_HOST_ARCH=m68k debuild -B -am68k |
| 17 |
|
| 18 |
If you also want to build source packages, omit the -B. |
| 19 |
|
| 20 |
If you want to build images for just one of the currently nine subarches, |
| 21 |
you can uncomment some lines in the flavours section in: |
| 22 |
debian/arch/m68k/defines |
| 23 |
|
| 24 |
The first run of debuild will give you an error message that updating the |
| 25 |
configs suceeded, the second run will build the images. |
| 26 |
|