From 71560bafb5735220696ca24a42ba4a668b55949b Mon Sep 17 00:00:00 2001 From: Shell Date: Fri, 23 Feb 2024 17:49:15 +0800 Subject: 🎯 Sync smart & scheduler codes (#8537) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Shell Co-authored-by: xqyjlj --- src/SConscript | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/SConscript') diff --git a/src/SConscript b/src/SConscript index 3f3ef4455d..4d6f813bfe 100644 --- a/src/SConscript +++ b/src/SConscript @@ -26,8 +26,7 @@ if GetDepend('RT_USING_DEVICE') == False: if GetDepend('RT_USING_SMP') == False: SrcRemove(src, ['cpu.c', 'scheduler_mp.c']) - -if GetDepend('RT_USING_SMP') == True: +else: SrcRemove(src, ['scheduler_up.c']) LOCAL_CFLAGS = '' @@ -43,6 +42,6 @@ if rtconfig.PLATFORM in GetGCCLikePLATFORM(): LOCAL_CFLAGS += ' -Wimplicit-fallthrough' # implicit fallthrough warning LOCAL_CFLAGS += ' -Wduplicated-cond -Wduplicated-branches' # duplicated condition warning -group = DefineGroup('Kernel', src, depend=[''], CPPPATH=inc, CPPDEFINES=['__RTTHREAD__'], LOCAL_CFLAGS=LOCAL_CFLAGS) +group = DefineGroup('Kernel', src, depend=[''], CPPPATH=inc, CPPDEFINES=['__RTTHREAD__'], LOCAL_CFLAGS=LOCAL_CFLAGS, LOCAL_CPPDEFINES=['__RT_KERNEL_SOURCE__']) Return('group') -- cgit v1.3.1