Re: [PATCH v4 28/30] selftests/hid: Append extra cflags
From: Benjamin Tissoires
Date: Fri Mar 13 2026 - 09:47:56 EST
On Mar 11 2026, Leo Yan wrote:
> Append EXTRA_CFLAGS to CFLAGS so that additional flags can be applied to
> the compiler.
>
> Signed-off-by: Leo Yan <leo.yan@xxxxxxx>
> ---
> tools/testing/selftests/hid/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid/Makefile
> index 50ec9e0406abaf316fba232c5da1967e27d0fa9b..686c5f79ca592c2ce94e37b39ab5c3ebe8483f79 100644
> --- a/tools/testing/selftests/hid/Makefile
> +++ b/tools/testing/selftests/hid/Makefile
> @@ -26,6 +26,7 @@ HOSTPKG_CONFIG := pkg-config
>
> CFLAGS += -g -O0 -rdynamic -Wall -Werror -I$(OUTPUT)
> CFLAGS += -I$(OUTPUT)/tools/include
> +CFLAGS += $(EXTRA_CFLAGS)
Acked-by: Benjamin Tissoires <bentiss@xxxxxxxxxx>
Cheers,
Benjamin
>
> LDLIBS += -lelf -lz -lrt -lpthread
>
>
> --
> 2.34.1
>
>