Commit 54951c63 by David Malcolm Committed by David Malcolm

config-list.mk: add GCC_SRC_DIR

contrib/ChangeLog:
	* config-list.mk (GCC_SRC_DIR): New variable.
	(make-log-dir): Use GCC_SRC_DIR.
	($(LIST)): Likewise.

From-SVN: r237269
parent e01b4e16
2016-06-09 David Malcolm <dmalcolm@redhat.com>
* config-list.mk (GCC_SRC_DIR): New variable.
(make-log-dir): Use GCC_SRC_DIR.
($(LIST)): Likewise.
2016-06-09 Martin Liska <mliska@suse.cz> 2016-06-09 Martin Liska <mliska@suse.cz>
* analyze_brprob_spec.py: New file. * analyze_brprob_spec.py: New file.
......
...@@ -3,13 +3,32 @@ host_options='--with-mpc=/opt/cfarm/mpc' # gcc10 ...@@ -3,13 +3,32 @@ host_options='--with-mpc=/opt/cfarm/mpc' # gcc10
TEST=all-gcc TEST=all-gcc
# Make sure you have a recent enough gcc (with ada support) in your path so # Make sure you have a recent enough gcc (with ada support) in your path so
# that --enable-werror-always will work. # that --enable-werror-always will work.
# To use, create a sibling directory to the gcc sources and cd into this. # To use, create a build directory with plenty of free disk space - a build of
# all configurations can take 450GB.
# By default, this file assumes the build directory is in a sibling directory
# to the gcc sources, but you can override GCC_SRC_DIR to specify where to
# find them. GCC_SRC_DIR is used in the directory below the build directory,
# hence the two ".." in the default value; if overriding it, it's easiest to
# supply an absolute path.
GCC_SRC_DIR=../../gcc
# Use -j / -l make arguments and nice to assure a smooth resource-efficient # Use -j / -l make arguments and nice to assure a smooth resource-efficient
# load on the build machine, e.g. for 24 cores: # load on the build machine, e.g. for 24 cores:
# svn co svn://gcc.gnu.org/svn/gcc/branches/foo-branch gcc # svn co svn://gcc.gnu.org/svn/gcc/branches/foo-branch gcc
# mkdir multi-mk; cd multi-mk # mkdir multi-mk; cd multi-mk
# nohup nice make -j25 -l36 -f ../gcc/contrib/config-list.mk > make.out 2>&1 & # nohup nice make -j25 -l36 -f ../gcc/contrib/config-list.mk > make.out 2>&1 &
# #
# Alternatively, if building against an existing gcc source tree:
#
# cd /somewhere/with/plenty/of/disk/space
# mkdir multi-mk; cd multi-mk
# nohup nice make \
# -j25 -l36 \
# -f /path/to/contrib/config-list.mk \
# GCC_SRC_DIR=/path/to/gcc/source/tree \
# > make.out 2>&1 &
#
# v850e1-elf is rejected by config.sub # v850e1-elf is rejected by config.sub
LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \ LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
alpha-linux-gnu alpha-freebsd6 alpha-netbsd alpha-openbsd \ alpha-linux-gnu alpha-freebsd6 alpha-netbsd alpha-openbsd \
...@@ -91,17 +110,17 @@ show: ...@@ -91,17 +110,17 @@ show:
empty= empty=
#Check for the presence of the MAINTAINERS file to make sure we are in a #Check for the presence of the MAINTAINERS file to make sure we've located
#suitable current working directory. #the gcc sources.
make-log-dir: ../gcc/MAINTAINERS make-log-dir: $(GCC_SRC_DIR)/MAINTAINERS
mkdir log -mkdir log
$(LIST): make-log-dir $(LIST): make-log-dir
-mkdir $@ -mkdir $@
( \ ( \
cd $@ && \ cd $@ && \
TGT=`echo $@ | awk 'BEGIN { FS = "OPT" }; { print $$1 }'` && \ TGT=`echo $@ | awk 'BEGIN { FS = "OPT" }; { print $$1 }'` && \
TGT=`../../gcc/config.sub $$TGT` && \ TGT=`$(GCC_SRC_DIR)/config.sub $$TGT` && \
case $$TGT in \ case $$TGT in \
*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) \ *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) \
ADDITIONAL_LANGUAGES=""; \ ADDITIONAL_LANGUAGES=""; \
...@@ -110,7 +129,7 @@ $(LIST): make-log-dir ...@@ -110,7 +129,7 @@ $(LIST): make-log-dir
ADDITIONAL_LANGUAGES=",go"; \ ADDITIONAL_LANGUAGES=",go"; \
;; \ ;; \
esac && \ esac && \
../../gcc/configure \ $(GCC_SRC_DIR)/configure \
--target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@)) \ --target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@)) \
--enable-werror-always ${host_options} \ --enable-werror-always ${host_options} \
--enable-languages=all,ada$$ADDITIONAL_LANGUAGES; \ --enable-languages=all,ada$$ADDITIONAL_LANGUAGES; \
......
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