From 408d9358f674c8eff12a15822ee113a24a3c20cd Mon Sep 17 00:00:00 2001 From: Pan Xiuli Date: Sun, 10 Jun 2018 15:32:24 +0800 Subject: [PATCH] configure: Change install prefix for bin and keys Install prefix will not influce PEM install path. Add the check to let PEM can install with the prefix. Signed-off-by: Pan Xiuli --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 0f34acc90..a94890687 100644 --- a/configure.ac +++ b/configure.ac @@ -358,7 +358,11 @@ if test "$have_rimage" = "yes"; then fi fi +if test "x$prefix" == "xNONE"; then PEM_KEY_PREFIX="/usr/local/share/rimage" +else +PEM_KEY_PREFIX=$prefix"/share/rimage" +fi AC_DEFINE_UNQUOTED([PEM_KEY_PREFIX], ["$PEM_KEY_PREFIX"], ["Path for PEM keys"]) AC_SUBST(PEM_KEY_PREFIX) @@ -448,6 +452,7 @@ echo " Target Architecture: ${ARCH} Target Platform: ${PLATFORM} Target Core: ${XTENSA_CORE} +Install Prefix: ${prefix} PEM: ${PEM_KEY_PREFIX} Compiler: ${CC}