LFS work daily

本文档详细介绍了使用LFS(Linux From Scratch)构建系统的过程,包括软件包的选择、配置及安装流程。首先介绍如何下载并准备必要的软件包,然后逐步说明从Binutils和GCC开始的构建过程,直至整个LFS系统的完成。

I am going to work with LFS now.

Time begin:

first:  The target

Packages supplied to satisfy the LSB requirements:

LSB Core:

Bash, Bc, Binutils, Coreutils, Diffutils, File, Findutils, Gawk, Grep, Gzip, M4, Man-DB, Ncurses, Procps, Psmisc, Sed, Shadow, Tar, Util-linux, Zlib

LSB C++:

Gcc

LSB Desktop:

None

LSB Runtime Languages:

Perl

LSB Printing:

None

LSB Multimeda:

None

second: How To for newbie

1.Download software package,unpacking the FIles,read the README and/or INSTALL.

 

   
".tar.gz" or ".tgz" (known as a "tarball")"bz2:"patch utility

gzip -cd filename | tar xvf -

gunzip -c filename | tar xvf -

bzip2 -cd filename | tar xvf - 

OR

tar xyvf filename

patch < patchfile

 

2.configure and make install.

makefileImakeINSTALL/configure

make

make install

make -n

make clean

xmkmf -a./configure
  • Read the README file and other applicable docs.
  • Run xmkmf -a, or the INSTALL or configure script.
  • Check the Makefile.
  • If necessary, run make clean, make Makefiles, make includes, and make depend.
  • Run make.
  • Check file permissions.
  • If necessary, run make install.

3.Process of build LFS system

first : Binutils and GCC will be built.

second : toolchain will be built.

third : the full LFS system is built.

fourth : the LFS-Bootscripts are set up.

fifth : the kernel and the boot loader are set up.

4.Preparing for the Build

   Partition :

  boot / 100M

  root / 10G

  swap / 2G

  opt / 5-10G

useful website:

http://www.linuxfromscratch.org/faq/

http://catb.org/~esr/faqs/smart-questions.html

转载于:https://www.cnblogs.com/anyboo/p/3321695.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值