add ipv6 support
This commit is contained in:
parent
0b37f9f273
commit
464dc49864
3 changed files with 9 additions and 4 deletions
6
.github/workflows/cron.yml
vendored
6
.github/workflows/cron.yml
vendored
|
@ -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}}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue