Use only hal-rootstrap package to build 08/316708/1 accepted/tizen/unified/20240828.082351 accepted/tizen/unified/dev/20240829.043857 accepted/tizen/unified/x/20240829.020352
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 27 Aug 2024 06:18:30 +0000 (15:18 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 27 Aug 2024 06:30:43 +0000 (15:30 +0900)
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>
CMakeLists.txt
include/hal-backend-common.h
packaging/hal-backend-device-common.spec

index 44595170f8de54adeb098d70f66017f4ebcfd683..99bad32cd4d1733753716c4fd625ca73cd041bd1 100644 (file)
@@ -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}")
index 2e87697c87ff6fc4d31a95457c52e4a94cf94f97..9e2df717e228672c8767bd96092af59c8ea86fa1 100644 (file)
 #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, ...)
index 84c1a4feeb62575aa88438896a6cadccea5f1921..8356f711891d1e2af3432052203afd335cdb8255 100644 (file)
@@ -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