From: Yunhee Seo Date: Tue, 27 Aug 2024 06:18:30 +0000 (+0900) Subject: Use only hal-rootstrap package to build X-Git-Tag: accepted/tizen/unified/20240828.082351^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F316708%2F1;p=platform%2Fhal%2Fbackend%2Fdevice-common.git Use only hal-rootstrap package to build As support hal-abi-versioning, the hal-backend package should be built using only the hal-rootstrap. To remove dependency to dlog internal, dlog internal function is removed. Change-Id: Id38a3de8dac2675254d28d5b762c2755c0d400c8 Signed-off-by: Yunhee Seo --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4459517..99bad32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ SET(SRCS ) INCLUDE(FindPkgConfig) -pkg_check_modules(hal-backend-device-common_pkgs REQUIRED libusbgx libsyscommon dlog libudev) +pkg_check_modules(hal-backend-device-common_pkgs REQUIRED hal-rootstrap) FOREACH(flag ${hal-backend-device-common_pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") diff --git a/include/hal-backend-common.h b/include/hal-backend-common.h index 2e87697..9e2df71 100644 --- a/include/hal-backend-common.h +++ b/include/hal-backend-common.h @@ -21,10 +21,10 @@ #ifdef FEATURE_DLOG #define LOG_TAG "HAL_BACKEND_DEVICE" #include - #define _D(fmt, args...) SLOGD(fmt, ##args) - #define _I(fmt, args...) SLOGI(fmt, ##args) - #define _W(fmt, args...) SLOGW(fmt, ##args) - #define _E(fmt, args...) SLOGE(fmt, ##args) + #define _D(fmt, args...) dlog_print(DLOG_DEBUG, LOG_TAG, fmt, ##args) + #define _I(fmt, args...) dlog_print(DLOG_INFO, LOG_TAG, fmt, ##args) + #define _W(fmt, args...) dlog_print(DLOG_WARN, LOG_TAG, fmt, ##args) + #define _E(fmt, args...) dlog_print(DLOG_ERROR, LOG_TAG, fmt, ##args) #else #define _D(x, ...) #define _I(x, ...) diff --git a/packaging/hal-backend-device-common.spec b/packaging/hal-backend-device-common.spec index 84c1a4f..8356f71 100644 --- a/packaging/hal-backend-device-common.spec +++ b/packaging/hal-backend-device-common.spec @@ -7,11 +7,7 @@ License: Apache-2.0 Source0: %{name}-%{version}.tar.gz Source1: %{name}.manifest BuildRequires: cmake -BuildRequires: pkgconfig(libusbgx) -BuildRequires: pkgconfig(hal-api-device) -BuildRequires: pkgconfig(libsyscommon) -BuildRequires: pkgconfig(dlog) -BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(hal-rootstrap) %description Library for HAL backend device modules