SET(LIBRARY_NAME "hal-backend-sensor")
SET(HAL_LIBDIR ${CMAKE_HAL_LIBDIR_PREFIX})
SET(HAL_LICENSEDIR ${CMAKE_HAL_LICENSEDIR_PREFIX})
-SET(DEPENDENTS "dlog hal-api-common hal-api-sensor")
+SET(DEPENDENTS "hal-rootstrap")
SET(ACCEL "ON")
ExcludeArch: %{arm} riscv64
BuildRequires: cmake
-BuildRequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(hal-api-common)
-BuildRequires: pkgconfig(hal-api-sensor)
+BuildRequires: pkgconfig(hal-rootstrap)
%description
Sensor HAL backend drivers for emulator targets
#define LOG_DUMP(fp, fmt, arg...) do { if (fp) fprintf(fp, fmt, ##arg); else _E(fmt, ##arg); } while (0)
+#define ALOGD(format, ...) dlog_print(DLOG_DEBUG, LOG_TAG, format, ##__VA_ARGS__)
+#define ALOGE(format, ...) dlog_print(DLOG_ERROR, LOG_TAG, format, ##__VA_ARGS__)
+#define ALOGW(format, ...) dlog_print(DLOG_WARN, LOG_TAG, format, ##__VA_ARGS__)
+#define ALOGI(format, ...) dlog_print(DLOG_INFO, LOG_TAG, format, ##__VA_ARGS__)
+
#ifdef _DEBUG
-#define DBG SLOGD
+#define DBG ALOGD
#else
#define DBG(...) do { } while (0)
#endif
-#define ERR SLOGE
-#define WARN SLOGW
-#define INFO SLOGI
+#define ERR ALOGE
+#define WARN ALOGW
+#define INFO ALOGI
#define _E ERR
#define _W WARN
#define _I INFO