From 8bbe8e1ab5b251ce13cb24369547bd3d96950fec Mon Sep 17 00:00:00 2001 From: TTLLDD Date: Tue, 1 Sep 2026 17:39:11 +0800 Subject: [PATCH] [components][lwp] Remove terminal/ from global CPPPATH The terminal subsystem's own headers (terminal.h, tty_config.h, ...) are resolved by the compiler's quoted-include directory lookup for sources inside components/lwp/terminal; nothing else depends on the path. Stop polluting the global CPPPATH with this internal directory, following the convention discussed in #10980. --- components/lwp/SConscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/lwp/SConscript b/components/lwp/SConscript index 1c97444e514d..19da1baf1f68 100644 --- a/components/lwp/SConscript +++ b/components/lwp/SConscript @@ -45,10 +45,11 @@ if platform in platform_file.keys(): # support platforms CPPPATH += [cwd + '/arch/' + arch + '/' + cpu] # Terminal I/O Subsystem +# terminal/*.c resolve their own headers via quoted-include directory lookup; +# keep the internal path out of the global CPPPATH termios_path = ['./terminal/', './terminal/freebsd/'] for item in termios_path: src += Glob(item + '*.c') -CPPPATH += ['./terminal/'] # Remove optional sources if not GetDepend(['LWP_USING_RUNTIME']):