1
kernel
kloenk edited this page 2026-03-20 10:40:38 +00:00
Temporary kernel patch:
diff --git a/Makefile b/Makefile
index c9b7bee102e8..d4ae2b47757d 100644
--- a/Makefile
+++ b/Makefile
@@ -554,6 +554,10 @@ LZ4 = lz4
XZ = xz
ZSTD = zstd
TAR = tar
+ROKC ?= rokc
+
+ROKC_SYMBOL ?=
+ROKC_ARGS ?=
CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
-Wbitwise -Wno-return-void -Wno-unknown-attribute $(CF)
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 5baf1c44ffa2..01e91aff8339 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -125,6 +125,23 @@ testconfig: $(obj)/conf
$(if $(findstring 1,$(KBUILD_VERBOSE)),--capture=no)
clean-files += tests/.cache
+# rokc
+PHONY += rokctree
+treeconfig:
+ $(Q)$(ROKC) tree deps -c $(Kconfig) $(ROKC_SYMBOL) $(ROKC_ARGS)
+
+PHONY += checkconfig
+checkconfig:
+ $(Q)$(ROKC) check $(objtree)/.config $(Kconfig) $(ROKC_ARGS)
+
+PHONY += dumpenvconfig
+dumpenvconfig:
+ $(Q)$(ROKC) introspect dumpenv $(Kconfig) $(ROKC_ARGS)
+
+PHONY += introspectconfig
+introspectconfig:
+ $(Q)$(ROKC) introspect config $(Kconfig) $(ROKC_ARGS)
+
# Help text used by make help
help:
@echo 'Configuration targets:'