]> git.ipfire.org Git - thirdparty/grub.git/commit
util/grub-module-verifierXX: Enable running standalone checkers
authorPeter Jones <pjones@redhat.com>
Wed, 5 Oct 2022 13:48:37 +0000 (09:48 -0400)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 11 Oct 2022 12:15:55 +0000 (14:15 +0200)
commit51b968f85ab5abd9d2053e19c7b9054d90c91269
tree8f10b2b303e04dc7d6cc1018c7e6044a5cb3301b
parent34037747033879287864be289abb911a29751634
util/grub-module-verifierXX: Enable running standalone checkers

Allow treating util/grub-module-verifierXX.c as a file you can build
directly so syntax checkers like vim's "syntastic" plugin, which uses
"gcc -x c -fsyntax-only" to build it, will work.

One still has to do whatever setup is required to make it pick the
right include dirs, which -I options we use, etc., but this makes
it so you can do the checking on the file you're editing, rather
than on a different file.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/elf.h
util/grub-module-verifier32.c
util/grub-module-verifier64.c
util/grub-module-verifierXX.c