]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools: testing: support EXTRA_CFLAGS in shared.mk
authorBrendan Jackman <jackmanb@google.com>
Thu, 28 Aug 2025 12:28:00 +0000 (12:28 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 13 Sep 2025 23:55:25 +0000 (16:55 -0700)
commit953dad21bb691b77265bf5a9acdec5769596b8e0
treeac2f7fdeedc372e4cf9bdc9ff23e294f497b921e
parentd794cd23dc81f4e61eb166a214ea22a5b6a09d02
tools: testing: support EXTRA_CFLAGS in shared.mk

This allows the user to set cflags when building tests that use this
shared build infrastructure.

For example, it enables building with -Werror so that patch-check scripts
will fail:

make -C tools/testing/vma -j EXTRA_CFLAGS=-Werror

Link: https://lkml.kernel.org/r/20250828-b4-vma-no-atomic-h-v2-3-02d146a58ed2@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Acked-by: Pedro Falcato <pfalcato@suse.de>
Cc: Jann Horn <jannh@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/shared/shared.mk