diff options
author | Yunhee Seo <yuni.seo@samsung.com> | 2024-08-27 15:18:30 +0900 |
---|---|---|
committer | Yunhee Seo <yuni.seo@samsung.com> | 2024-08-27 15:30:43 +0900 |
commit | 3894702b6baee32ef7bb96504b2b746a3842bd44 (patch) | |
tree | 2cb6376486d86274d200f681a05d27f7e6151255 | |
parent | a027bd191c2407f449de5db34cc9cd5962e3d591 (diff) | |
download | device-common-3894702b6baee32ef7bb96504b2b746a3842bd44.tar.gz device-common-3894702b6baee32ef7bb96504b2b746a3842bd44.tar.bz2 device-common-3894702b6baee32ef7bb96504b2b746a3842bd44.zip |
Use only hal-rootstrap package to buildaccepted/tizen/unified/x/20240829.020352accepted/tizen/unified/dev/20240829.043857accepted/tizen/unified/20240828.082351
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 <yuni.seo@samsung.com>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | include/hal-backend-common.h | 8 | ||||
-rw-r--r-- | packaging/hal-backend-device-common.spec | 6 |
3 files changed, 6 insertions, 10 deletions
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 <dlog.h> - #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 |