app_shmem: include stub macro definitions

We'd like these macros to simply do nothing if the
feature isn't enabled rather than erroring out.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2019-02-21 13:41:49 -08:00 committed by Anas Nashif
commit 80e3a2c246

View file

@ -5,6 +5,8 @@
#include <misc/dlist.h>
#include <kernel.h>
#ifdef CONFIG_APP_SHARED_MEM
#if defined(CONFIG_X86)
#define MEM_DOMAIN_ALIGN_SIZE _STACK_BASE_ALIGN
#elif defined(STACK_ALIGN)
@ -94,4 +96,13 @@ struct z_app_region {
}; \
K_APP_BMEM(name) char name##_placeholder;
#else
#define K_APP_BMEM(ptn)
#define K_APP_DMEM(ptn)
#define K_APP_DMEM_SECTION(ptn) .data
#define K_APP_BMEM_SECTION(ptn) .bss
#define K_APPMEM_PARTITION_DEFINE(name)
#endif /* CONFIG_APP_SHARED_MEM */
#endif /* ZEPHYR_INCLUDE_APP_MEMORY_APP_MEMDOMAIN_H_ */