tests/Makefile.common: Fix inverted USE_SYSTEM_CMOCKA condition
"-I$(cmockasrc)/include" should be added to TEST_CFLAGS if we are building cmocka from source (i.e., USE_SYSTEM_CMOCKA is NOT 1). Fix the condition in Makefile.common. Change-Id: I957066fb24f03712a5b4b396aa9e04f3861940ee Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90798 Reviewed-by: Hsuan-ting Chen <roccochen@google.com> Reviewed-by: Jakub "Kuba" Czapiga <czapiga@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
e64507638e
commit
d246e2ca7e
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ $($(1)-sysobjs): $(testobj)/$(1)/%.o: $$$$*.c $$($(1)-config-file)
|
|||
|
||||
# Link against Cmocka if not disabled
|
||||
ifeq ($(strip $(filter-out 0 n no,$($(1)-no_test_framework))),)
|
||||
ifneq ($(USE_SYSTEM_CMOCKA),)
|
||||
ifneq ($(USE_SYSTEM_CMOCKA),1)
|
||||
$($(1)-objs): TEST_CFLAGS += -I$(cmockasrc)/include
|
||||
$($(1)-bin): TEST_LDFLAGS += -L$(cmockaobj)/src -Wl,-rpath=$(cmockaobj)/src
|
||||
$($(1)-bin): TEST_CFLAGS += -I$(cmockasrc)/include
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue