diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index eefd63f..50409cb 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -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}} diff --git a/README.md b/README.md index a2a88d5..e87658e 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cmd/compile/main.go b/cmd/compile/main.go index 6ea8131..9ecad70 100644 --- a/cmd/compile/main.go +++ b/cmd/compile/main.go @@ -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