diff options
author | YoungHun Kim <yh8004.kim@samsung.com> | 2021-06-02 07:51:17 +0900 |
---|---|---|
committer | YoungHun Kim <yh8004.kim@samsung.com> | 2021-06-02 07:51:20 +0900 |
commit | c77e07e04de87960c43f3cb472fef14877f93791 (patch) | |
tree | 51ed8c1d07dbde1233ce32cd5898d7a9008d4f72 | |
parent | 40ae5c80909b32e1fd04123b8d8e77799dded91d (diff) | |
download | murphy-c77e07e04de87960c43f3cb472fef14877f93791.tar.gz murphy-c77e07e04de87960c43f3cb472fef14877f93791.tar.bz2 murphy-c77e07e04de87960c43f3cb472fef14877f93791.zip |
Change path of configuration file
Change-Id: I9921664041c477d48cf3c44f634392431928cf75
-rw-r--r-- | packaging/murphy.spec | 5 | ||||
-rw-r--r-- | src/plugins/plugin-lua.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/packaging/murphy.spec b/packaging/murphy.spec index 621b198..32296d0 100644 --- a/packaging/murphy.spec +++ b/packaging/murphy.spec @@ -29,7 +29,7 @@ Summary: Resource policy framework Name: murphy Version: 0.0.75 -Release: 20 +Release: 21 License: BSD-3-Clause Group: System/Service URL: http://01.org/murphy/ @@ -186,6 +186,9 @@ This package contains various test binaries for Murphy. cp %{SOURCE1001} . %build +export CFLAGS="$CFLAGS -DSYSCONFDIR=\\\"%{_hal_sysconfdir}\\\"" +export CXXFLAGS="$CXXFLAGS -DSYSCONFDIR=\\\"%{_hal_sysconfdir}\\\"" + %if "%{asan}" == "1" %restore_fcommon export CFLAGS="-DTIZEN_DISABLE_MEMORY_CHECK" diff --git a/src/plugins/plugin-lua.c b/src/plugins/plugin-lua.c index 9674498..8d4072a 100644 --- a/src/plugins/plugin-lua.c +++ b/src/plugins/plugin-lua.c @@ -191,7 +191,7 @@ static void plugin_exit(mrp_plugin_t *plugin) #define PLUGIN_AUTHORS "Krisztian Litkey <kli@iki.fi>" #define PLUGIN_VERSION MRP_VERSION_INT(0, 0, 1) -#define DEFAULT_CONFIG "/etc/murphy/murphy.lua" +#define DEFAULT_CONFIG SYSCONFDIR"/murphy/murphy.lua" static mrp_plugin_arg_t plugin_args[] = { MRP_PLUGIN_ARGIDX(ARG_CONFIG , STRING, "config", DEFAULT_CONFIG), |