2016-10-13 10:53:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Build kernel release archives for use in building RancherOS
|
|
|
|
|
2017-02-15 23:36:59 +00:00
|
|
|
|
|
|
|
To build the tgz's and the kernel header & extras images, run:
|
|
|
|
|
2019-02-18 01:26:55 +00:00
|
|
|
```
|
|
|
|
git checkout tags/v4.14.98-rancher -b v4.14.98-rancher
|
|
|
|
|
|
|
|
KERNEL_TAG=4.14.98 make release
|
|
|
|
```
|
|
|
|
|
|
|
|
You should build it on an arm64 host if you want to get an arm64 kernel.
|
2017-02-15 23:36:59 +00:00
|
|
|
|
|
|
|
and if you're uploading them, set your GITHUB_TOKEN and login to docker hub, then run
|
|
|
|
|
|
|
|
(this requires https://github.com/aktau/github-release to be installed in your path)
|
|
|
|
|
|
|
|
`dist/publish.sh`
|
2016-10-13 10:53:35 +00:00
|
|
|
|
|
|
|
## packaging your own kernel builds
|
|
|
|
|
|
|
|
Assuming you have some kernel source you have built in `/usr/src/linux-4.8`, you can
|
|
|
|
package up the result by running
|
|
|
|
|
|
|
|
```
|
|
|
|
./scripts/package-kernel --srcdir /usr/src/linux-4.8
|
|
|
|
```
|
|
|
|
|
|
|
|
You may need to adjust the expected module list files.
|
|
|
|
|