[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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user