Re: [PATCH v4 03/30] tools: lib: thermal: Initialize CFLAGS before including Makefile.include
From: Daniel Lezcano
Date: Mon Mar 16 2026 - 07:52:42 EST
On 3/11/26 09:29, Leo Yan wrote:
tools/scripts/Makefile.include may expand EXTRA_CFLAGS in a future
change. This could alter the initialization of CFLAGS in the thermal
Makefile, as the default options "-g -Wall" would never be set once
EXTRA_CFLAGS is expanded.
Prepare for this by moving the CFLAGS initialization before including
tools/scripts/Makefile.include, so it is not affected by the extended
EXTRA_CFLAGS.
Append EXTRA_CFLAGS to CFLAGS only after including Makefile.include and
place it last so that the extra flags propagate properly and can
override the default options.
Signed-off-by: Leo Yan <leo.yan@xxxxxxx>
---
Acked-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
Thanks !