From 47bbcddbd4caff05a2f5eb81ca07d566c60e421b Mon Sep 17 00:00:00 2001 From: local-build Date: Tue, 7 Apr 2026 22:21:17 -0500 Subject: [PATCH] Support EXTRA_KERNEL_ARGS --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0db2bcf..69ff2a7 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,9 @@ CONFIG_TXT ?= dtparam=i2c_arm=on EXTENSIONS ?= EXTENSION_ARGS = $(foreach ext,$(EXTENSIONS),--system-extension-image $(ext)) +EXTRA_KERNEL_ARGS ?= +EXTRA_KERNEL = $(foreach arg,$(EXTRA_KERNEL_ARGS),--extra-kernel-arg $(arg)) + PKG_REPOSITORY = https://github.com/siderolabs/pkgs.git TALOS_REPOSITORY = https://github.com/siderolabs/talos.git SBCOVERLAY_REPOSITORY = https://github.com/siderolabs/sbc-raspberrypi @@ -142,7 +145,8 @@ image: --overlay-name="rpi_5" \ --overlay-image="$(REGISTRY)/$(REGISTRY_USERNAME)/sbc-raspberrypi:$(SBCOVERLAY_TAG)" \ --overlay-option="configTxtAppend=$$CONFIG_TXT" \ - $(EXTENSION_ARGS) + $(EXTENSION_ARGS) \ + $(EXTRA_KERNEL) .PHONY: release release: