summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlokilee73 <changjoo.lee@samsung.com>2021-01-14 16:35:20 +0900
committerlokilee73 <changjoo.lee@samsung.com>2021-01-14 17:38:06 +0900
commit94222adf65481696c65244cc03c506cfec696051 (patch)
tree9b8a6a16249db79430e0fe7af95d20ac7cc72c67
parent5073b9c0c189620bae1a182b068420b9fafad04b (diff)
downloaddevice-manager-plugin-artik-94222adf65481696c65244cc03c506cfec696051.tar.gz
device-manager-plugin-artik-94222adf65481696c65244cc03c506cfec696051.tar.bz2
device-manager-plugin-artik-94222adf65481696c65244cc03c506cfec696051.zip
Add FEATURE_DLOG and change LOG_TAG
Change-Id: Ia9dbb0510d59d0c96bf66bbc9970d7a1040daa9e Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rw-r--r--CMakeLists.txt4
-rw-r--r--hw/common/common.h2
-rw-r--r--packaging/device-manager-plugin-artik.spec2
3 files changed, 6 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bc89dd0..3e85ff1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,10 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall -Werror")
+IF(ENABLE_DLOG STREQUAL on)
+ ADD_DEFINITIONS("-DFEATURE_DLOG")
+ENDIF()
+
ADD_SUBDIRECTORY(hw/board)
ADD_SUBDIRECTORY(hw/display)
ADD_SUBDIRECTORY(hw/led)
diff --git a/hw/common/common.h b/hw/common/common.h
index d286e0e..6f56601 100644
--- a/hw/common/common.h
+++ b/hw/common/common.h
@@ -25,7 +25,7 @@
#include <unistd.h>
#ifdef FEATURE_DLOG
- #define LOG_TAG "HALBACKEND_DEVICE"
+ #define LOG_TAG "HAL_BACKEND_DEVICE"
#include <dlog.h>
#define _D(fmt, args...) SLOGD(fmt, ##args)
#define _I(fmt, args...) SLOGI(fmt, ##args)
diff --git a/packaging/device-manager-plugin-artik.spec b/packaging/device-manager-plugin-artik.spec
index 5f3b510..0eb74d9 100644
--- a/packaging/device-manager-plugin-artik.spec
+++ b/packaging/device-manager-plugin-artik.spec
@@ -28,7 +28,7 @@ Device manager plugin artik
cp %{SOURCE1} .
%build
-%cmake .
+%cmake . -DENABLE_DLOG=on \
make %{?jobs:-j%jobs}