1
1

BUILD: add --with-platform-patches-dir=DIR flag to configure

allow to override default patch dir to arbitrary.
Этот коммит содержится в:
Mike Dubman 2015-10-07 16:18:48 +03:00
родитель eb883ae98f
Коммит a120fe4a14

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

@ -23,6 +23,10 @@ dnl
# OPAL_LOAD_PLATFORM() # OPAL_LOAD_PLATFORM()
# -------------------- # --------------------
AC_DEFUN([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_ARG_WITH([platform],
[AC_HELP_STRING([--with-platform=FILE], [AC_HELP_STRING([--with-platform=FILE],
[Load options for build from FILE. Options on the [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") AC_SUBST(OPAL_PARAM_FROM_PLATFORM, "no")
fi 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_done="${srcdir}/.platform_patches"
patch_found=no patch_found=no