Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Joe Lawrence and committed by
Josh Poimboeuf
0573bcc4 e4dbf706

+20
+20
scripts/livepatch/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + # Standalone Makefile for developer tooling (not part of kbuild). 3 + 4 + SHELLCHECK := $(shell which shellcheck 2> /dev/null) 5 + 6 + SRCS := \ 7 + klp-build 8 + 9 + .DEFAULT_GOAL := help 10 + .PHONY: help 11 + help: 12 + @echo " check - Run shellcheck on $(SRCS)" 13 + @echo " help - Show this help message" 14 + 15 + .PHONY: check 16 + check: 17 + ifndef SHELLCHECK 18 + $(error shellcheck is not installed. Please install it to run checks) 19 + endif 20 + @$(SHELLCHECK) $(SHELLCHECK_OPTIONS) $(SRCS)