BUILD: add --with-platform-patches-dir=DIR flag to configure
allow to override default patch dir to arbitrary.
Этот коммит содержится в:
родитель
eb883ae98f
Коммит
a120fe4a14
@ -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
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user