nuttx/atomic.h:replace ALL stdatomic.h with nuttx/stdatomic.h in nuttx/

Summary:
 1. use nuttx/atomic.h instead of stdatomic
 2. remove CONFIG_HAVE_ATOMIC,because we now support atomic on all platforms

Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
chenrun1 2024-08-06 16:00:56 +08:00 committed by Xiang Xiao
parent 8e1a042eef
commit cfcf347515
4 changed files with 8 additions and 73 deletions

View file

@ -67,8 +67,7 @@ LIBMETAL_HDRS_SEDEXP := \
s/@PROJECT_SYSTEM_UPPER@/nuttx/g; \
s/@PROJECT_PROCESSOR_UPPER@/$(LIBMETAL_ARCH)/g; \
s/@PROJECT_MACHINE_UPPER@/$(CONFIG_ARCH_CHIP)/g; \
s/cmakedefine HAVE_STDATOMIC_H/include <nuttx\/compiler.h>/g; \
s/defined(HAVE_STDATOMIC_H)/defined(CONFIG_HAVE_ATOMICS)/g; \
s/cmakedefine HAVE_STDATOMIC_H/define HAVE_STDATOMIC_H/g; \
s/cmakedefine/undef/g"
ifeq ($(wildcard libmetal/.git),)