From a120fe4a147ce0a8cd9dbba1041d055aad60a58f Mon Sep 17 00:00:00 2001 From: Mike Dubman Date: Wed, 7 Oct 2015 16:18:48 +0300 Subject: [PATCH] BUILD: add --with-platform-patches-dir=DIR flag to configure allow to override default patch dir to arbitrary. --- config/opal_load_platform.m4 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/config/opal_load_platform.m4 b/config/opal_load_platform.m4 index 8f2e8d3830..d401f88221 100644 --- a/config/opal_load_platform.m4 +++ b/config/opal_load_platform.m4 @@ -23,6 +23,10 @@ dnl # OPAL_LOAD_PLATFORM() # -------------------- AC_DEFUN([OPAL_LOAD_PLATFORM], [ + AC_ARG_WITH([platform-patches-dir], + [AC_HELP_STRING([--with-platform-patches-dir=DIR], + [Location of the platform patches directory. If you use this option, you must also use --with-platform.])]) + AC_ARG_WITH([platform], [AC_HELP_STRING([--with-platform=FILE], [Load options for build from FILE. Options on the @@ -97,7 +101,12 @@ AC_DEFUN([OPAL_LOAD_PLATFORM], [ AC_SUBST(OPAL_PARAM_FROM_PLATFORM, "no") fi - patch_dir=${patch_dir:="${with_platform}.patches"} + if test -d "$with_platform_patches_dir"; then + patch_dir=$with_platform_patches_dir + else + patch_dir="${with_platform}.patches" + fi + patch_done="${srcdir}/.platform_patches" patch_found=no