Code Monkey home page Code Monkey logo

automate-lfs-build's Introduction

automate-lfs-build

set of script which can be used to automate LFS build.

Requirements

  • $ apt install build-essential bison texinfo gawk git python2.7 kpartx -y
  • passes version-check.sh

scripts

Scripts must be executed in the same order as shown below

  • version-check.sh

    • This should be first script which should be executed, make sure there are no errors before proceding further.
  • setup_lfs_user

    • This script is responsible for creating lfs user and setting up bash for lfs.
  • build_toolchain

    • This script is responsible for setting up toolchain, must be executed with lfs user permission.
  • build_packages

    • This script is responsible for building minimum linux with busybox
  • create_image

    • This is optional script for creating an ISO image.

Notes

  • scripts has been tested only on Ubuntu 18.04.1 LTS

  • iso image has been tested with qemu using below command
    $ qemu-system-x86_64 -drive format=raw,file=$LFS/iso/lfs.iso -nographic -enable-kvm -m 512M

  • Below procedure should work seemlessly, considering LFS env has been set

$ mkdir -p $LFS/automate-lfs-build
$ git clone https://github.com/ranjithum/automate-lfs-build $LFS/automate-lfs-build
$ cd $LFS/automate-lfs-build
$ mkdir -p $LFS/lfs-source; wget --input-file=./lfs-packages.txt --continue --directory-prefix=$LFS/lfs-source
$ ./version-check.sh
$ ./setup_lfs_user
$ su - lfs
$ cd automate-lfs-build
$ ./build_toolchain
$ exit
$ ./build_packages
$ ./create_image

automate-lfs-build's People

Contributors

ranjithum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.