From 719bba5486ebe681635f4a935689ee10f0ea0ca5 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Thu, 24 Aug 2017 15:40:40 +0100 Subject: [PATCH] docs: Update kernel docs with new build customisation Signed-off-by: Rolf Neugebauer --- docs/kernels.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/kernels.md b/docs/kernels.md index 786755e73..796389c1c 100644 --- a/docs/kernels.md +++ b/docs/kernels.md @@ -140,16 +140,27 @@ kernel: If you have committed your local changes, the `-dirty` will not be appended. Then you can also override the Hub organisation to use the -image elsewhere with: +image elsewhere with (and also disable image signing): ```sh -make ORG= +make ORG= NOTRUST=1 ``` The image will be uploaded to Hub and can be use in a YAML file as `/kernel:4.9.33` or as `/kernel:4.9.33-`. +The kernel build system has some provision to allow local +customisation to the build. + +If you want to override/add some kernel config options, you can add a +file called `kernel_config-foo` and then invoke the build with `make +EXTRA=-foo build_4.9.x-foo` and this will build an image with the +additional kernel config options enabled. + +If you want additional patches being applied, just copy them to the +`patches-4.X.x` and the build process will pick them up. + ## Working with Linux kernel patches for LinuxKit