A container to build linux kernel with the latest gcc.
- Linux Kernel Source code, check out locally
- docker-compose
$ 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
| Variable | Default Value | 
|---|---|
| KERNEL_SRC | /src/linux | 
| BUILD_OUTPUT | /tmp/ | 
| OLD_CONFIG | /tmp/old_config | 
References:
- KernelBuildfrom- kernelnewbies
- build_kernel.shscript
author: tuan t. pham