LFS - Binutils


INSTALLING BINUTILS package
Shifted to www.linuxfromscratch.org - Linux From Scratch - version 6.8 (the book was outdated so shifting to the website by the same other) - It starts with installation of binutils and not BASH. no problem though.

The main modifications I made is shifted the sources from /usr/src to a dedicated folder at $LFS/sources
The location where the tools are to be installed is $LFS/tools. A symbolic link is created for the same in the host systems

INSTALLATION OF BINUTILS
check for $LFS, $LFS_TGT else
export LFS=/mnt/lfs
export LFS_TGT=$(uname -m)-lfs-linux-gnu

1. download the Binutils-2.21.tar.gz into the $LFS/sources
2. tar xvzf binutils-2.21.tar.gz - extracts into a folder called binutils-2.21
3. mkdir $LFS/sources/binutils-build
4. cd $LFS/binutils-build
5. ../binutils-2.21/confiure --targer=$LFS_TGT --prefix=/tools --disable-nls --disable-werror
6. make
7. make install

LFS_TGT contains the description of the system. The config.guess inside binutils-2.21 contains information on the description of the machine assumed.
--prefix=/tools - tells the configure script to install in the /tools directory
--disable-werror - prevents build from stopping if there are warnings in host compiler

Cannot run the test scripts now because the testsuite framword (Tcl, Expect and DejaGNU is not available yet).

Abishek Ramdas
NYU Poly

Comments

Popular posts from this blog

Generating 16k ROM using Xilinx IP COREGEN and simulating it in modelsim

Setting up atalanta ATPG to work on Linux

Sparse matrix - 3 tuple representation