[make] fix three misuses of TOBOOL

Forgot to expand the variable in the call to the TOBOOL function which
would cause the result to always be true. In this case always resulted
in the test code for these three modules to be included.
This commit is contained in:
Travis Geiselbrecht
2025-09-03 15:12:45 -07:00
parent 9325c18b27
commit 2377c3d440
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ MODULE_SRCS += $(LOCAL_DIR)/debug.c
MODULE_SRCS += $(LOCAL_DIR)/fs.c
MODULE_SRCS += $(LOCAL_DIR)/shell.c
ifeq ($(call TOBOOL,WITH_TESTS),true)
ifeq ($(call TOBOOL,$(WITH_TESTS)),true)
MODULE_DEPS += $(LOCAL_DIR)/test
endif

View File

@@ -4,7 +4,7 @@ MODULE := $(LOCAL_DIR)
MODULE_SRCS += $(LOCAL_DIR)/spifs.c
ifeq ($(call TOBOOL,WITH_TESTS),true)
ifeq ($(call TOBOOL,$(WITH_TESTS)),true)
MODULE_DEPS += $(LOCAL_DIR)/test
endif

View File

@@ -28,7 +28,7 @@ MODULE_COMPILEFLAGS += -fno-builtin
MODULE_OPTIONS := extra_warnings
ifeq ($(call TOBOOL,WITH_TESTS),true)
ifeq ($(call TOBOOL,$(WITH_TESTS)),true)
MODULE_DEPS += $(LOCAL_DIR)/test
endif