Commits

Bas Westerbaan committed 530cb0b

Add arm6hf platform.

  • Participants
  • Parent commits 1508555
  • Branches release-2.0-beta2

Comments (0)

Files changed (3)

File pypy/config/translationoption.py

     'host',
     'distutils',
     'arm',
+    'arm6hf',
 ]
 
 translation_optiondescription = OptionDescription(

File pypy/translator/platform/__init__.py

     elif new_platform == 'arm':
         from pypy.translator.platform.arm import ARM
         return ARM(cc)
+    elif new_platform == 'arm6hf':
+        from pypy.translator.platform.arm import ARM6HF
+        return ARM6HF(cc)
     elif new_platform == 'distutils':
         from pypy.translator.platform.distutils_platform import DistutilsPlatform
         return DistutilsPlatform()

File pypy/translator/platform/arm.py

         returncode, stdout, stderr = _run_subprocess(
             'sb2', SB2ARGS + ['make', '-C', str(path)] + extra_opts)
         self._handle_error(returncode, stdout, stderr, path.join('make'))
+
+class ARM6HF(ARM):
+    def include_dirs_for_libffi(self):
+        return [SB2 + '/usr/include/arm-linux-gnueabihf/']
+    def library_dirs_for_libffi(self):
+        return [SB2 + '/usr/lib/arm-linux-gnueabihf/']