Skip to content

Commit

Permalink
[aarch64] Do not hardcode libdir in default module path. Contributes …
Browse files Browse the repository at this point in the history
…to JB#49681

Plugins are under /usr/lib64 instead of /usr/lib on aarch64.

Signed-off-by: Matti Lehtimäki <matti.lehtimaki@jolla.com>
  • Loading branch information
mlehtima committed Jul 3, 2020
1 parent 1ea5dbb commit 23f06e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -202,6 +202,8 @@ CPPFLAGS += -DOSSOLOG_COMPILE
CPPFLAGS += -DMCE_VAR_DIR=$(VARDIR)
CPPFLAGS += -DMCE_RUN_DIR=$(RUNDIR)
CPPFLAGS += -DPRG_VERSION=$(VERSION)
# Default module path
CPPFLAGS += -DMCE_DEFAULT_MCE_MODULE_PATH=$(MODULEDIR)

ifeq ($(strip $(ENABLE_WAKELOCKS)),y)
CPPFLAGS += -DENABLE_WAKELOCKS
Expand Down
4 changes: 2 additions & 2 deletions inifiles/mce.ini
Expand Up @@ -2,10 +2,10 @@

[Modules]

# Path to modules
# Path to modules, usually architecture dependant
#
# Do not modify unless you're sure that you know what you're doing!
ModulePath=/usr/lib/mce/modules
#ModulePath=/usr/lib/mce/modules

# Modules
#
Expand Down
2 changes: 1 addition & 1 deletion mce-modules.h
Expand Up @@ -35,7 +35,7 @@
#define MCE_CONF_MODULES_MODULES "Modules"

/** Default value for module path */
#define DEFAULT_MCE_MODULE_PATH "/usr/lib/mce/modules"
#define DEFAULT_MCE_MODULE_PATH G_STRINGIFY(MCE_DEFAULT_MCE_MODULE_PATH)

void mce_modules_dump_info(void);
gboolean mce_modules_init(void);
Expand Down

0 comments on commit 23f06e7

Please sign in to comment.