add ipv6 support

This commit is contained in:
oliverpool 2022-04-23 21:28:30 +02:00
parent 0b37f9f273
commit 464dc49864
3 changed files with 9 additions and 4 deletions

View file

@ -43,9 +43,13 @@ jobs:
if: steps.check.outputs.sha != ''
run: go run cmd/compile/main.go
- name: Show kernel config
if: steps.check.outputs.sha != ''
run: cat linux-sources/.config
- name: Commit the new kernel
if: steps.check.outputs.sha != ''
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: kernel ${{steps.fetch.outputs.version}}
tagging_message: v1.0.0-${{steps.fetch.outputs.version}}
tagging_message: v1.0.1-${{steps.fetch.outputs.version}}

View file

@ -28,7 +28,7 @@ go run cmd/compile/main.go
It will compile the kernel located in `linux-sources` using a [crossbuild docker image](https://github.com/gokrazy-community/crossbuild-armhf) and copy the resulting files in the `dist` folder.
It uses default kernel config (`make bcmrpi_defconfig`), as recommended by the [official documentation](https://www.raspberrypi.com/documentation/computers/linux_kernel.html#cross-compiling-the-kernel), with the addition of the SquashFS module (`CONFIG_SQUASHFS`, which is required for gokrazy).
It uses default kernel config (`make bcmrpi_defconfig`), as recommended by the [official documentation](https://www.raspberrypi.com/documentation/computers/linux_kernel.html#cross-compiling-the-kernel), with the addition of the SquashFS module (`CONFIG_SQUASHFS`, which is required for gokrazy) and `CONFIG_IPV6`.
## Update check

View file

@ -69,12 +69,13 @@ func run() error {
return err
}
// adjust config to add CONFIG_SQUASHFS
// adjust config to add CONFIG_SQUASHFS and CONFIG_IPV6
configPath := filepath.Join(kernelFolder, ".config")
err = adjustTextFile(configPath, func(line string) bool {
return strings.HasPrefix(line, "CONFIG_SQUASHFS=")
return strings.HasPrefix(line, "CONFIG_SQUASHFS=") || strings.HasPrefix(line, "CONFIG_IPV6=")
}, []string{
"CONFIG_SQUASHFS=y",
"CONFIG_IPV6=y",
})
if err != nil {
return err