mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 05:48:20 +08:00
* cgen.sh: New thirteenth parameter opcfile, defaulting to
/dev/null. <case desc>: Pass -OPC opcfile. * Make-common.in (cgen-desc): Pass $(opcfile) as thirteenth parameter to cgen.sh.
This commit is contained in:
@ -739,6 +739,6 @@ cgen-desc: force
|
|||||||
$(SHELL) $(srccom)/cgen.sh desc $(srcdir) \
|
$(SHELL) $(srccom)/cgen.sh desc $(srcdir) \
|
||||||
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
|
$(CGEN) $(CGENDIR) "$(CGENFLAGS)" \
|
||||||
$(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" \
|
$(arch) "$(FLAGS)" $(cpu) "$(isa)" $(mach) "$(SUFFIX)" \
|
||||||
$(archfile) ignored
|
$(archfile) ignored $(opcfile)
|
||||||
|
|
||||||
## End COMMON_POST_CONFIG_FRAG
|
## End COMMON_POST_CONFIG_FRAG
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
# Usage: /bin/sh cgen.sh {"arch"|"cpu"|"decode"|"defs"|"cpu-decode"} \
|
# Usage: /bin/sh cgen.sh {"arch"|"cpu"|"decode"|"defs"|"cpu-decode"} \
|
||||||
# srcdir cgen cgendir cgenflags \
|
# 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
|
# We store the generated files in the source directory until we decide to
|
||||||
# ship a Scheme interpreter (or other implementation) with gdb/binutils.
|
# ship a Scheme interpreter (or other implementation) with gdb/binutils.
|
||||||
@ -26,9 +26,12 @@ shift ; mach=$9
|
|||||||
shift ; suffix=$9
|
shift ; suffix=$9
|
||||||
shift ; archfile=$9
|
shift ; archfile=$9
|
||||||
shift ; extrafiles=$9
|
shift ; extrafiles=$9
|
||||||
|
shift ; opcfile=$9
|
||||||
|
|
||||||
rootdir=${srcdir}/../..
|
rootdir=${srcdir}/../..
|
||||||
|
|
||||||
|
test -z "${opcfile}" && opcfile=/dev/null
|
||||||
|
|
||||||
if test -z "$isa" ; then
|
if test -z "$isa" ; then
|
||||||
isa=all
|
isa=all
|
||||||
prefix=$cpu
|
prefix=$cpu
|
||||||
@ -196,6 +199,7 @@ desc)
|
|||||||
${cgen} -s ${cgendir}/cgen-opc.scm \
|
${cgen} -s ${cgendir}/cgen-opc.scm \
|
||||||
-s ${cgendir} \
|
-s ${cgendir} \
|
||||||
${cgenflags} \
|
${cgenflags} \
|
||||||
|
-OPC ${opcfile} \
|
||||||
-f "${archflags}" \
|
-f "${archflags}" \
|
||||||
-m ${mach} \
|
-m ${mach} \
|
||||||
-a ${archfile} \
|
-a ${archfile} \
|
||||||
|
Reference in New Issue
Block a user