summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--include/hal-backend-common.h8
-rw-r--r--packaging/hal-backend-device-common.spec6
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