Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.12 KB

README.md

File metadata and controls

42 lines (34 loc) · 1.12 KB

Build the kernel from source with gcc container

A container to build linux kernel with the latest gcc.

Required stuff

  • Linux Kernel Source code, check out locally
  • docker-compose

WorkFlow

$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
$ cd linux-stable
$ git checkout linux-4.18.y
# or your branch/commit
# cd back to this directory
# edit default_settings.env to point correct places

$ docker-compose build
$ docker-compose up

Default Environment Variables

Variable Default Value
KERNEL_SRC /src/linux
BUILD_OUTPUT /tmp/
OLD_CONFIG /tmp/old_config

References:

author: tuan t. pham