Giter Club home page Giter Club logo

docker-kernel-builder's Introduction

Summary

Currently, Linux kernel v2.6.x can be compiled by GCC 5 and below. But latest distros, such as Fedora 28, Ubuntu 18.04 and so on are using GCC 7, 8 and above. This project provides an environment that you can compile linux kernel v2.6 with GCC 5 and below. The environment is based on Ubuntu 14.04 which include the required GCC.

How to make the build environment

0. Clone this repository

$ git clone https://github.com/memnoth-projects/docker-kernel-builder.git

$ cd docker-kernel-builder

1. Make an image from Dockerfile

$ docker build --tag kernel kernel-v2.6/

2. Make a container from the image

$ docker run -i -t --network host --name kern2.6 -v /path/to/kernel/source:/root/mpoint kernel /bin/bash

/path/to/kernel/source must be a path pointed to host folder where you have kernel source. Because the image does not include kernel source.

If you distro causes an error of SELinux during the command, add :Z flag in the end of -v like -v /path/to/kernel/source:/root/mpoint:Z.

See more about kernel build

How to build a custom linux kernel for QEMU

docker-kernel-builder's People

Contributors

lsahn-gh 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.