drivers/rptun: add cmake support for rptun_secure

1. Add cmake support for rptun_serure;
2. Move rptun_secure.c before rptun_ivshmem.c in Make.defs to follow
   the order in Kconfig.

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang 2024-10-02 23:47:58 +08:00 committed by Xiang Xiao
parent a88693f519
commit af6eb7226e
2 changed files with 8 additions and 4 deletions

View File

@ -22,6 +22,10 @@ if(CONFIG_RPTUN)
list(APPEND SRCS rptun.c)
if(CONFIG_RPTUN_SECURE)
list(APPEND SRCS rptun_secure.c)
endif()
if(CONFIG_RPTUN_IVSHMEM)
list(APPEND SRCS rptun_ivshmem.c)
endif()

View File

@ -24,14 +24,14 @@ ifeq ($(CONFIG_RPTUN),y)
CSRCS += rptun.c
ifeq ($(CONFIG_RPTUN_IVSHMEM),y)
CSRCS += rptun_ivshmem.c
endif
ifeq ($(CONFIG_RPTUN_SECURE),y)
CSRCS += rptun_secure.c
endif
ifeq ($(CONFIG_RPTUN_IVSHMEM),y)
CSRCS += rptun_ivshmem.c
endif
DEPPATH += --dep-path rptun
VPATH += :rptun
CFLAGS += ${INCDIR_PREFIX}$(TOPDIR)$(DELIM)drivers$(DELIM)rptun