diff options
| author | Joe Lawrence <joe.lawrence@redhat.com> | 2026-03-10 16:37:45 -0400 |
|---|---|---|
| committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2026-03-16 12:46:48 -0700 |
| commit | 0573bcc4ffca498a6c644b0e1ccbe1a6d9b96a5c (patch) | |
| tree | ffc15a80245a5a1c0cd276a293ea5e3e98caacfd /scripts/livepatch | |
| parent | e4dbf70615e52255de3ff943ac08e0bbd080dcd6 (diff) | |
| download | lwn-0573bcc4ffca498a6c644b0e1ccbe1a6d9b96a5c.tar.gz lwn-0573bcc4ffca498a6c644b0e1ccbe1a6d9b96a5c.zip | |
livepatch/klp-build: add Makefile with check target
Add a standalone Makefile with a 'check' target that runs static code
analysis (shellcheck) on the klp-build script(s). This is intended
strictly as a development aid.
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://patch.msgid.link/20260310203751.1479229-7-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'scripts/livepatch')
| -rw-r--r-- | scripts/livepatch/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/livepatch/Makefile b/scripts/livepatch/Makefile new file mode 100644 index 000000000000..17b590213740 --- /dev/null +++ b/scripts/livepatch/Makefile @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: GPL-2.0 +# Standalone Makefile for developer tooling (not part of kbuild). + +SHELLCHECK := $(shell which shellcheck 2> /dev/null) + +SRCS := \ + klp-build + +.DEFAULT_GOAL := help +.PHONY: help +help: + @echo " check - Run shellcheck on $(SRCS)" + @echo " help - Show this help message" + +.PHONY: check +check: +ifndef SHELLCHECK + $(error shellcheck is not installed. Please install it to run checks) +endif + @$(SHELLCHECK) $(SHELLCHECK_OPTIONS) $(SRCS) |
