aboutsummaryrefslogtreecommitdiff
path: root/tools/Internals/tools/renesas_shc.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Internals/tools/renesas_shc.py')
-rwxr-xr-xtools/Internals/tools/renesas_shc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/Internals/tools/renesas_shc.py b/tools/Internals/tools/renesas_shc.py
index 29d4b4b..ad587df 100755
--- a/tools/Internals/tools/renesas_shc.py
+++ b/tools/Internals/tools/renesas_shc.py
@@ -15,7 +15,7 @@ __all__ = ["Renesas_SHC"]
#*****************************************************************************#
# Discovery, configuration #
#*****************************************************************************#
-def __getparams(typ, arch, objfmt, std):
+def __getparams(typ, arch, endian, objfmt, std):
""" Get the parameters. """
# Check the architecture, the output format, and the standards.
@@ -29,7 +29,8 @@ def __getparams(typ, arch, objfmt, std):
# Get the flags.
CPU = arch.upper()
- flags = ['-cpu=%s'%arch, '-endian=big', '-size', '-gbr=auto', '-noinline']
+ flags = ['-cpu=%s'%arch, '-endian={}'.format(endian), '-size',
+ '-gbr=auto', '-noinline']
if arch[-3:] == 'dsp':
flags.append('-dspc')