lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 04 Jun 2008 14:28:40 +0300
From:	Dmitri Vorobiev <dmitri.vorobiev@...ial.fi>
To:	Stephen Rothwell <sfr@...b.auug.org.au>
CC:	linux-next@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: linux-next: Tree for June 3

Stephen Rothwell wrote:

> If maintainers want to give
> advice about cross compilers/configs that work, we are always open to add
> more builds.

Below is the procedure I have followed to build a working
cross-toolchain for MIPS.

1) You'll need the following versions of binutils and gcc:

binutils-2.16.1.tar.bz2
gcc-core-3.4.4.tar.bz2

2) Let's assume that the following environment variables
are set up.

	o CROSS_SRC is where the binutils and gcc tarballs
	  are unpacked.

	o CROSS_PREFIX is where you keep the cross-compilation
	  zoo. You'll need to have $CROSS_PREFIX/bin in your
	
	  PATH.

	o CROSS_BUILD is the temporary directory used for
	  building the cross-toolchain.

3) Build and install binutils:

$ cd $CROSS_BUILD

$ $CROSS_SRC/binutils-2.16.1/configure --prefix=$CROSS_PREFIX \
--target=mips-unknown-linux-gnu

$ make

$ make install

$ rm -rf *

4) Build and install gcc:

$ cd $CROSS_BUILD

$ $CROSS_SRC/gcc-3.4.4/configure --prefix=$CROSS_PREFIX \
--target=mips-unknown-linux-gnu \
--disable-threads \
--disable-nls \
--disable-shared \
--enable-languages=c

$ make

$ make install

$ rm -rf *

5) This is basically it for the big-endian toolchain. Little-
endian version can be built using "mipsel-unknown-linux-gnu"
for the --target option.

As for the configuration, I'm attaching a customized .config that
I am using for my own testing. Note that modules are disabled for
this config.

Thanks,
Dmitri

View attachment "config-mips-malta" of type "text/plain" (18856 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ