Commit b6383ab8 by Thomas Schwinge Committed by Thomas Schwinge

Allow for overriding a module's srcdir.

	* Makefile.tpl (configure-[+prefix+][+module+])
	(configure-stage[+id+]-[+prefix+][+module+]): If specified, use
	"module_srcdir" instead of "module" for locating a module's srcdir.
	* Makefile.in: Regenerate.

From-SVN: r211643
parent 2a7a8388
2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
* Makefile.tpl (configure-[+prefix+][+module+])
(configure-stage[+id+]-[+prefix+][+module+]): If specified, use
"module_srcdir" instead of "module" for locating a module's srcdir.
* Makefile.in: Regenerate.
2014-06-10 Matthew Fortune <matthew.fortune@imgtec.com> 2014-06-10 Matthew Fortune <matthew.fortune@imgtec.com>
* MAINTAINERS (Write After Approval): Add myself. * MAINTAINERS (Write After Approval): Add myself.
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -1002,12 +1002,13 @@ configure-[+prefix+][+module+]: [+ IF bootstrap +][+ ELSE +] ...@@ -1002,12 +1002,13 @@ configure-[+prefix+][+module+]: [+ IF bootstrap +][+ ELSE +]
*) topdir=`echo [+subdir+]/[+module+]/ | \ *) topdir=`echo [+subdir+]/[+module+]/ | \
sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
esac; \ esac; \
srcdiroption="--srcdir=$${topdir}/[+module+]"; \ module_srcdir=[+? module_srcdir (get "module_srcdir") (get "module")+]; \
libsrcdir="$$s/[+module+]"; \
[+ IF no-config-site +]rm -f no-such-file || : ; \ [+ IF no-config-site +]rm -f no-such-file || : ; \
CONFIG_SITE=no-such-file [+ ENDIF +]$(SHELL) $${libsrcdir}/configure \ CONFIG_SITE=no-such-file [+ ENDIF +]$(SHELL) \
$$s/$$module_srcdir/configure \
--srcdir=$${topdir}/$$module_srcdir \
[+args+] --build=${build_alias} --host=[+host_alias+] \ [+args+] --build=${build_alias} --host=[+host_alias+] \
--target=[+target_alias+] $${srcdiroption} [+extra_configure_flags+] \ --target=[+target_alias+] [+extra_configure_flags+] \
|| exit 1 || exit 1
@endif [+prefix+][+module+] @endif [+prefix+][+module+]
...@@ -1055,12 +1056,12 @@ configure-stage[+id+]-[+prefix+][+module+]: ...@@ -1055,12 +1056,12 @@ configure-stage[+id+]-[+prefix+][+module+]:
*) topdir=`echo [+subdir+]/[+module+]/ | \ *) topdir=`echo [+subdir+]/[+module+]/ | \
sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
esac; \ esac; \
srcdiroption="--srcdir=$${topdir}/[+module+]"; \ module_srcdir=[+? module_srcdir (get "module_srcdir") (get "module")+]; \
libsrcdir="$$s/[+module+]"; \ $(SHELL) $$s/$$module_srcdir/configure \
$(SHELL) $${libsrcdir}/configure \ --srcdir=$${topdir}/$$module_srcdir \
[+args+] --build=${build_alias} --host=[+host_alias+] \ [+args+] --build=${build_alias} --host=[+host_alias+] \
--target=[+target_alias+] $${srcdiroption} [+ IF prev +]\ --target=[+target_alias+] \
--with-build-libsubdir=$(HOST_SUBDIR) [+ ENDIF prev +]\ [+ IF prev +] --with-build-libsubdir=$(HOST_SUBDIR) [+ ENDIF prev +] \
$(STAGE[+id+]_CONFIGURE_FLAGS)[+ IF extra_configure_flags +] \ $(STAGE[+id+]_CONFIGURE_FLAGS)[+ IF extra_configure_flags +] \
[+extra_configure_flags+][+ ENDIF extra_configure_flags +] [+extra_configure_flags+][+ ENDIF extra_configure_flags +]
@endif [+prefix+][+module+]-bootstrap @endif [+prefix+][+module+]-bootstrap
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment