This is an automated email from the ASF dual-hosted git repository.

ligd pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 3514c6c70 drivertest/Makefile: add CONFIG_BUILD_FLAT limit for 
drivertest_block.c
3514c6c70 is described below

commit 3514c6c7040f0bd6b44d7326524ba0229d9a21de
Author: Yongrong Wang <wangyongr...@xiaomi.com>
AuthorDate: Fri Aug 9 14:24:12 2024 +0800

    drivertest/Makefile: add CONFIG_BUILD_FLAT limit for drivertest_block.c
    
    If BUILD_FLAT is not enabled, the app and CPU run in user mode and
    kernel mode respectively. The kernel and app are in different
    memory address spaces. Different apps are in the same memory address
    space. drivertest_block.c cannot directly call the kernel API.
    
    Signed-off-by: Yongrong Wang <wangyongr...@xiaomi.com>
---
 testing/drivertest/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/drivertest/Makefile b/testing/drivertest/Makefile
index f99355fc9..444b3fc6c 100644
--- a/testing/drivertest/Makefile
+++ b/testing/drivertest/Makefile
@@ -29,7 +29,7 @@ MAINSRC  += drivertest_simple.c
 PROGNAME += cmocka_driver_simple
 endif
 
-ifeq ($(CONFIG_BCH),y)
+ifeq ($(CONFIG_BCH)$(CONFIG_BUILD_FLAT),yy)
 CFLAGS += ${INCDIR_PREFIX}${TOPDIR}/fs
 PROGNAME += cmocka_driver_block
 MAINSRC  += drivertest_block.c

Reply via email to