]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* cgen.sh: New thirteenth parameter opcfile, defaulting to
authorHans-Peter Nilsson <hp@axis.com>
Wed, 1 Dec 2004 02:29:30 +0000 (02:29 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Wed, 1 Dec 2004 02:29:30 +0000 (02:29 +0000)
/dev/null.
<case desc>: Pass -OPC opcfile.
* Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth
parameter to cgen.sh.

sim/common/Make-common.in
sim/common/cgen.sh

index 6ccf986103db6898492e0ff14b46932039f80707..dbcc0ebe16971a2d7a00cb1d5cb60109709142b9 100644 (file)
@@ -739,6 +739,6 @@ cgen-desc: force
        $(SHELL) $(srccom)/cgen.sh desc $(srcdir) \
                $(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
                $(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" \
-               $(archfile) ignored
+               $(archfile) ignored $(opcfile)
 
 ## End COMMON_POST_CONFIG_FRAG
index 172edcb7ca330ed85918774fe79cc76157e7c110..87188354683df9e7566ff9c6bd8b29427f21d93b 100644 (file)
@@ -3,7 +3,7 @@
 #
 # Usage: /bin/sh cgen.sh {"arch"|"cpu"|"decode"|"defs"|"cpu-decode"} \
 #      srcdir cgen cgendir cgenflags \
-#      arch archflags cpu mach suffix archfile extrafiles
+#      arch archflags cpu mach suffix archfile extrafiles opcfile
 #
 # We store the generated files in the source directory until we decide to
 # ship a Scheme interpreter (or other implementation) with gdb/binutils.
@@ -26,9 +26,12 @@ shift ; mach=$9
 shift ; suffix=$9
 shift ; archfile=$9
 shift ; extrafiles=$9
+shift ; opcfile=$9
 
 rootdir=${srcdir}/../..
 
+test -z "${opcfile}" && opcfile=/dev/null
+
 if test -z "$isa" ; then
   isa=all
   prefix=$cpu
@@ -196,6 +199,7 @@ desc)
        ${cgen} -s ${cgendir}/cgen-opc.scm \
                -s ${cgendir} \
                ${cgenflags} \
+               -OPC ${opcfile} \
                -f "${archflags}" \
                -m ${mach} \
                -a ${archfile} \