binutils-gdb/sim
Andrew Burgess 7fb45a6895 sim/opcodes: Allow use of out of tree cgen source directory
When configuring with '--enbale-cgen-maint' the default for both the
opcodes/ and sim/ directories is to assume that the cgen source is
within the binutils-gdb source tree as binutils-gdb/cgen/.

In the old cvs days, this worked well, as cgen was just another
sub-module of the single cvs repository and could easily be checked
out within the binutils-gdb directory, and managed by cvs in the
normal way.

Now that binutils-gdb is in git, while cgen is still in cvs, placing
the cgen respository within the binutils-gdb tree is more troublesome,
and it would be nice if the two tools could be kept separate.

Luckily there is already some initial code in the configure.ac files
for both opcodes/ and sim/ to support having cgen be located outside
of the binutils-gdb tree, however, this was speculative code written
imagining a future where cgen would be built and installed to some
location.

Right now there is no install support for cgen, and so the configure
code in opcodes/ and sim/ doesn't really do anything useful.  In this
commit I repurpose this code to allow binutils-gdb to be configured so
that it can make use of a cgen source directory that is outside of the
binutils-gdb tree.

With this commit applied it is now possible to configure and build
binutils-gdb like this:

    /path/to/binutils-gdb/src/configure --enable-cgen-maint=/path/to/cgen/src/cgen/
    make all-opcodes
    make -C opcodes run-cgen-all

Just in case anyone is still using cgen inside the binutils-gdb tree,
I have left the default behaviour of '--enable-cgen-maint' (with no
parameter) unchanged, that is it looks for the cgen directory as
'binutils-gdb/cgen/'.

opcodes/ChangeLog:

	* configure.ac (enable-cgen-maint): Support passing path to cgen
	source tree.
	* configure: Regenerate.

sim/ChangeLog:

	* common/acinclude.m4 (enable-cgen-maint): Support passing path to
	cgen source tree.
	* cris/configure: Regenerate.
	* frv/configure: Regenerate.
	* iq2000/configure: Regenerate.
	* lm32/configure: Regenerate.
	* m32r/configure: Regenerate.
	* or1k/configure: Regenerate.
	* sh64/configure: Regenerate.
2018-12-06 12:21:10 +00:00
..
aarch64 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
arm Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
avr Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
bfin Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
common sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
cr16 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
cris sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
d10v Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
erc32 [src/erc32] Use ncurses instead of termcap on Cygwin too 2018-10-30 16:41:12 +00:00
frv sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
ft32 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
h8300 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
igen Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
iq2000 sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
lm32 sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
m32c Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
m32r sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
m68hc11 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
mcore Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
microblaze Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
mips Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
mn10300 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
moxie Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
msp430 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
or1k sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
ppc Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
rl78 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
rx Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
sh Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
sh64 sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
testsuite or1k: Add the l.muld, l.muldu, l.macu, l.msbu insns 2018-10-05 11:41:42 +09:00
v850 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
.gitignore sim: drop common/cconfig.h in favor of a single config.h 2016-01-09 03:52:30 -05:00
ChangeLog sim/opcodes: Allow use of out of tree cgen source directory 2018-12-06 12:21:10 +00:00
MAINTAINERS Update my e-mail address, limit maintenance to MIPS I-IV ISAs 2018-07-21 00:14:01 +01:00
Makefile.in Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
README-HACKING sim: punt WITH_DEVICES & tconfig.h support 2015-12-26 20:38:31 -05:00
configure Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
configure.ac Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
configure.tgt sim: or1k: add or1k target to sim 2017-12-12 23:44:14 +09:00