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:
parent
a88693f519
commit
af6eb7226e
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue