From 0ea5d5ddf1f36c2082742c927b01350b2d3e5ded Mon Sep 17 00:00:00 2001 From: Song Yoong Siang Date: Thu, 7 Nov 2024 13:52:52 +0800 Subject: [PATCH] clkmgr: update CLKMGR_CXXFLAGS to include CLKMGR_PUB_DIR. This update resolves issues related to missing header files during utest. utest result: $ make utest_clkmgr_client [CC] clkmgr/utest/subscription.cpp [CC] clkmgr/utest/client_state.cpp [LD] clkmgr/utest/utest_client [UTEST C++] [==========] Running 2 tests from 2 test cases. [----------] Global test environment set-up. [----------] 1 test from SubscriptionTest [ RUN ] SubscriptionTest.MacroMajor [ OK ] SubscriptionTest.MacroMajor (0 ms) [----------] 1 test from SubscriptionTest (0 ms total) [----------] 1 test from ClientStateTest [ RUN ] ClientStateTest.ApiTest [ OK ] ClientStateTest.ApiTest (0 ms) [----------] 1 test from ClientStateTest (0 ms total) [----------] Global test environment tear-down [==========] 2 tests from 2 test cases ran. (0 ms total) [ PASSED ] 2 tests. Signed-off-by: Song Yoong Siang --- clkmgr/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clkmgr/Makefile b/clkmgr/Makefile index 6d69e6f0..478de3c2 100644 --- a/clkmgr/Makefile +++ b/clkmgr/Makefile @@ -23,7 +23,7 @@ CLKMGR_GEN_CPP=$(Q_GEN)$(M4) -I $(CLKMGR_COMMON_DIR) -D lang=cpp $< > $@ CLKMGR_GEN_C=$(Q_GEN)$(M4) -I $(CLKMGR_COMMON_DIR) -D lang=c $< > $@ CLKMGR_LDLIBS:=$(foreach lib,pthread rt rtpi,-l$(lib)) -CLKMGR_CXXFLAGS:=-I$(CLKMGR_DIR) +CLKMGR_CXXFLAGS:=-I$(CLKMGR_DIR) -I$(CLKMGR_PUB_DIR) CLKMGR_COMMON_SRCS:=$(wildcard $(CLKMGR_COMMON_DIR)/*.cpp) CLKMGR_COMMON_LOBJS:=$(CLKMGR_COMMON_SRCS:.cpp=.lo)