X86->Alpha Kernel cross compiler

Jim_Nance@avanticorp.com
Wed, 13 Mar 96 16:12:16 EST


A few days ago I tried to compile MD support into my Linux/alpha kernel.
It did not compile, and I realized that people developing the linux kernel
on x86 platforms have no way of knowing if their code will even compile on
the non-x86 linux platforms. In order to help address that problem, I
have decided to create a series of cross compilers which will allow x86
kernel developers to test their code on other platforms. I have just
uploaded the first one to tsx-11.mit.edu. Its in /incoming now, and
has the name axp-cross-0.1.bin.tar.gz. You can grab it out of that
directory, but you will have to do it blindly, since you can not do an
ls in /incoming. I have included the README below. Look for a Linux/Sparc
cross compiler comming soon.

Jim

------------------------------------------------------------------------------
INTRODUCTION

This is a Linux/i386 -> Linux/axp cross compiler for the Linux Kernel
only. You will have to get the user libraries and header files if you
want to cross compile user programs.

The reason for producing this is to allow people doing kernel development
on i386 machines to make sure that their changes will at least compile
under Linux/axp. I hope to have a Linux/Sparc cross compiler done soon
so it will be possible to test on 3 architectures.

INSTALLATION

Unpacking this archive should have generated 2 files:
README -> This file
compiler-bin.tar.gz -> The cross compiler

To install simply do:

su
cd /
tar xzvf compiler-bin.tar.gz

The cross compiler will be installed under /usr/local/alpha-dec-linux and
/usr/local/lib/gcc-lib/alpha-dec-linux

COMPILING

To compile kernel a recent 1.3.XX kernel, you must supply ARCH and
CROSS_COMPILE arguments to the make command. Here is a complete example:

cd /usr/src/linux
make clean
make ARCH=alpha CROSS_COMPILE=/usr/local/alpha-dec-linux/bin/ config
make ARCH=alpha CROSS_COMPILE=/usr/local/alpha-dec-linux/bin/ dep
make ARCH=alpha CROSS_COMPILE=/usr/local/alpha-dec-linux/bin/

**NOTE** Compiling the de4x5.c file with optimization will cause a
segmentation Violation. To avoid this, do not configure the
de4x5 network driver.

ADMINISTRATIVE

Please send any comments you may have to jlnance@sailboat.acs.uncwil.edu
or jlnance@avanticorp.com.

This package was produced from GPLed source contained in the packages
gccaxp-2.7.1-1.srpm.rpm and binutils-2.6-1.srpm.rpm available from
ftp.redhat.com. If you want source and can not locate these files,
please contact me.