From bc3fada2ce249cd21b7f0ac6145db9ba92fdbc02 Mon Sep 17 00:00:00 2001 From: guoshichao Date: Thu, 27 Jul 2023 15:55:40 +0800 Subject: [PATCH] apps/testing/ltp: conditional build the testcases based on defconfig Signed-off-by: guoshichao --- testing/ltp/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/testing/ltp/Makefile b/testing/ltp/Makefile index 45f0b52ce..19aa31d08 100644 --- a/testing/ltp/Makefile +++ b/testing/ltp/Makefile @@ -194,6 +194,29 @@ BLACKWORDS += setegid BLACKWORDS += geteuid BLACKWORDS += getegid endif +ifeq ($(CONFIG_PTHREAD_CLEANUP_STACKSIZE),0) +BLACKWORDS += pthread_cleanup_push +BLACKWORDS += pthread_cleanup_pop +endif +ifeq ($(CONFIG_LIBC_EXECFUNCS),) +BLACKWORDS += execl +BLACKWORDS += execvp +BLACKWORDS += execlp +BLACKWORDS += execvpe +endif +ifeq ($(CONFIG_FS_SHMFS),) +BLACKWORDS += shm_open +BLACKWORDS += shm_unlink +endif +ifeq ($(LIBC_LOCALE_CATALOG),) +BLACKWORDS += catopen +BLACKWORDS += catgets +BLACKWORDS += catclose +endif +ifeq ($(CONFIG_MM_SHM),) +BLACKWORDS += shmget +BLACKWORDS += shmat +endif MAINWORDS += "main("