[polyml] 04/13: Add support for Motorola 68000
James Clarke
jrtc27-guest at moszumanska.debian.org
Sat Mar 12 20:28:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
jrtc27-guest pushed a commit to branch master
in repository polyml.
commit 6e25e9536c38aa3282d309fc185e896821ddc79a
Author: James Clarke <jrtc27 at jrtc27.com>
Date: Fri Mar 11 16:55:21 2016 +0000
Add support for Motorola 68000
---
debian/changelog | 1 +
debian/patches/m68k.diff | 44 ++++++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 46 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 15e2969..87f889f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ polyml (5.6-3) UNRELEASED; urgency=low
* New patches:
- alpha.diff: Add support for alpha
+ - m68k.diff: Add support for m68k
-- James Clarke <jrtc27 at jrtc27.com> Tue, 02 Feb 2016 21:15:49 +0000
diff --git a/debian/patches/m68k.diff b/debian/patches/m68k.diff
new file mode 100644
index 0000000..5ab2d28
--- /dev/null
+++ b/debian/patches/m68k.diff
@@ -0,0 +1,44 @@
+Description: Add support for Motorola 68000
+Author: James Clarke <jrtc27 at jrtc27.com>
+Forwarded: https://github.com/polyml/polyml/pull/27
+Applied-Upstream: https://github.com/polyml/polyml/commit/50bb971b5fd9c392c1b5494e0e87cd85a8fd9186
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/config.h.in
++++ b/config.h.in
+@@ -566,6 +566,9 @@
+ /* Define if the host is an Itanium */
+ #undef HOSTARCHITECTURE_IA64
+
++/* Define if the host is a Motorola 68000 */
++#undef HOSTARCHITECTURE_M68K
++
+ /* Define if the host is a MIPS (32-bit) */
+ #undef HOSTARCHITECTURE_MIPS
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -447,6 +447,10 @@
+ AC_DEFINE([HOSTARCHITECTURE_IA64], [1], [Define if the host is an Itanium])
+ polyarch=interpret
+ ;;
++ m68k*)
++ AC_DEFINE([HOSTARCHITECTURE_M68K], [1], [Define if the host is a Motorola 68000])
++ polyarch=interpret
++ ;;
+ mips*)
+ AC_DEFINE([HOSTARCHITECTURE_MIPS], [1], [Define if the host is a MIPS (32-bit)])
+ polyarch=interpret
+--- a/libpolyml/elfexport.cpp
++++ b/libpolyml/elfexport.cpp
+@@ -390,6 +390,10 @@
+ fhdr.e_machine = EM_AARCH64;
+ directReloc = R_AARCH64_ABS64;
+ useRela = true;
++#elif defined(HOSTARCHITECTURE_M68K)
++ fhdr.e_machine = EM_68K;
++ directReloc = R_68K_32;
++ useRela = true;
+ #elif defined(HOSTARCHITECTURE_MIPS)
+ fhdr.e_machine = EM_MIPS;
+ directReloc = R_MIPS_32;
diff --git a/debian/patches/series b/debian/patches/series
index 07a1ca1..0900b99 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@ fix-script-args.diff
fix-heap-ratio-assert.diff
use-polyunsigned-consistently-for-stream-ids.diff
alpha.diff
+m68k.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/polyml.git
More information about the debian-science-commits
mailing list