arch/sim: Copy include/nuttx/config.h to the local folder

so the source code compiled by host environment can include config.h
directly and then avoid pass Kconfig option through Makefile manually

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic9fe6f846082cef2d0808dc717df8ae6ed929edf
This commit is contained in:
Xiang Xiao
2021-07-26 15:50:40 +08:00
committed by xiaoxiang
parent ccb8538b6d
commit ba9396d827
16 changed files with 39 additions and 57 deletions
+1 -1
View File
@@ -198,6 +198,6 @@ ifeq ($(CONFIG_SIM_SANITIZE),y)
endif
HOSTCFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
$(ARCHCPUFLAGS) $(HOSTINCLUDES) $(EXTRAFLAGS) -pipe
$(ARCHCPUFLAGS) $(HOSTINCLUDES) $(EXTRAFLAGS) -D__SIM__ -pipe
LDLINKFLAGS += -nostartfiles -nodefaultlibs