1
1

Merge pull request #993 from miked-mellanox/topic/platform_patches_arg

BUILD: add --with-platform-patches-dir=DIR
Этот коммит содержится в:
Jeff Squyres 2015-10-08 07:00:55 -05:00
родитель 232f97a80c a120fe4a14
Коммит 1929bb02ff

Просмотреть файл

@ -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