summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authortv <tv>1999-01-06 01:20:27 +0000
committertv <tv>1999-01-06 01:20:27 +0000
commit01a435ebbf9ec9aea37d4785fa29850051c87f7d (patch)
treea31b33206f7eb2c0f5be9bd80f2b41d1d9da5f07 /cross
parent55876d42b2b1e918f5ee3683debca7cef30c54d7 (diff)
downloadpkgsrc-01a435ebbf9ec9aea37d4785fa29850051c87f7d.tar.gz
Add the first NetBSD-targeted cross compiler, cross-netbsd-powerpc.
Installs only the compiler, no headers or runtime link libraries.
Diffstat (limited to 'cross')
-rw-r--r--cross/binutils/patches/patch-powerpc13
-rw-r--r--cross/powerpc-netbsd/Makefile20
-rw-r--r--cross/powerpc-netbsd/files/md55
-rw-r--r--cross/powerpc-netbsd/patches/patch-aa13
-rw-r--r--cross/powerpc-netbsd/pkg/COMMENT1
-rw-r--r--cross/powerpc-netbsd/pkg/DESCR1
-rw-r--r--cross/powerpc-netbsd/pkg/MESSAGE12
-rw-r--r--cross/powerpc-netbsd/pkg/PLIST1
8 files changed, 66 insertions, 0 deletions
diff --git a/cross/binutils/patches/patch-powerpc b/cross/binutils/patches/patch-powerpc
new file mode 100644
index 00000000000..e9b02fa1318
--- /dev/null
+++ b/cross/binutils/patches/patch-powerpc
@@ -0,0 +1,13 @@
+$NetBSD: patch-powerpc,v 1.1 1999/01/06 01:20:27 tv Exp $
+
+--- ./bfd/config.bfd.orig Fri May 1 11:48:05 1998
++++ ./bfd/config.bfd Mon Dec 28 17:43:18 1998
+@@ -467,7 +471,7 @@
+ powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
+ powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems*)
+ targ_defvec=bfd_elf32_powerpc_vec
+- targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec ppcboot_vec"
++ targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec bfd_powerpcle_pei_vec bfd_powerpc_pei_vec bfd_powerpcle_pe_vec bfd_powerpc_pe_vec ppcboot_vec pmac_xcoff_vec"
+ ;;
+ powerpc-*-macos* | powerpc-*-mpw*)
+ targ_defvec=pmac_xcoff_vec
diff --git a/cross/powerpc-netbsd/Makefile b/cross/powerpc-netbsd/Makefile
new file mode 100644
index 00000000000..a9d15ebc884
--- /dev/null
+++ b/cross/powerpc-netbsd/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 1999/01/06 01:20:28 tv Exp $
+#
+
+DISTVERSION= 1.3.0.0
+DISTFILES= # none
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.netbsd.org/
+
+WRKSRC= ${WRKDIR}/${EGCS_DISTNAME}
+
+USE_CROSS_BINUTILS= yes
+BINUTILS_GNUTARGET= elf32-powerpc
+BINUTILS_LDEMULATION= elf32ppc
+USE_CROSS_EGCS= yes
+EGCS_FAKE_RUNTIME= yes
+
+TARGET_ARCH= powerpc-netbsd
+
+.include "../COMMON/cross.mk"
diff --git a/cross/powerpc-netbsd/files/md5 b/cross/powerpc-netbsd/files/md5
new file mode 100644
index 00000000000..9ae43352075
--- /dev/null
+++ b/cross/powerpc-netbsd/files/md5
@@ -0,0 +1,5 @@
+$NetBSD: md5,v 1.1 1999/01/06 01:20:28 tv Exp $
+
+MD5 (binutils-2.9.1.tar.gz) = 8f9ad1a6e96742fd3069479171a63c22
+MD5 (egcs-1.1.1.tar.gz) = 0b3f0e856dcbb2241c183081fc7271af
+MD5 (egcs-1.1.1-NetBSD-19980104.diff.gz) = 8c4d952d999ead62f6604948c65c2454
diff --git a/cross/powerpc-netbsd/patches/patch-aa b/cross/powerpc-netbsd/patches/patch-aa
new file mode 100644
index 00000000000..9e2d89a7b1a
--- /dev/null
+++ b/cross/powerpc-netbsd/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1 1999/01/06 01:20:28 tv Exp $
+
+--- gcc/config/xm-netbsd.h.orig Tue Jan 5 16:59:00 1999
++++ gcc/config/xm-netbsd.h Tue Jan 5 16:59:29 1999
+@@ -22,3 +22,8 @@
+ running NetBSD. This file should not be specified as $xm_file itself;
+ instead $xm_file should be CPU/xm-netbsd.h, which should include both
+ CPU/xm-CPU.h and this file xm-netbsd.h. */
++
++/* XXX: temp fix for HOST_WIDE_INT breakage with PowerPC target */
++#undef HOST_BITS_PER_LONG
++#define HOST_BITS_PER_LONG 4
++
diff --git a/cross/powerpc-netbsd/pkg/COMMENT b/cross/powerpc-netbsd/pkg/COMMENT
new file mode 100644
index 00000000000..3ece50b3842
--- /dev/null
+++ b/cross/powerpc-netbsd/pkg/COMMENT
@@ -0,0 +1 @@
+Cross-compile environment for NetBSD/powerpc
diff --git a/cross/powerpc-netbsd/pkg/DESCR b/cross/powerpc-netbsd/pkg/DESCR
new file mode 100644
index 00000000000..051c5b5ec62
--- /dev/null
+++ b/cross/powerpc-netbsd/pkg/DESCR
@@ -0,0 +1 @@
+This cross-compile environment is for NetBSD/powerpc.
diff --git a/cross/powerpc-netbsd/pkg/MESSAGE b/cross/powerpc-netbsd/pkg/MESSAGE
new file mode 100644
index 00000000000..81b6a97fa18
--- /dev/null
+++ b/cross/powerpc-netbsd/pkg/MESSAGE
@@ -0,0 +1,12 @@
+=============================================================================
+$NetBSD: MESSAGE,v 1.1 1999/01/06 01:20:28 tv Exp $
+
+This pkg DOES NOT install headers or runtime link libraries. Only the
+compilers are installed.
+
+In order to have a complete development setup, you need to install
+includes and libraries in ${CROSSBASE}/powerpc-netbsd/include and
+${CROSSBASE}/powerpc-netbsd/lib respectively, or symlink these paths to
+the appropriate places.
+
+=============================================================================
diff --git a/cross/powerpc-netbsd/pkg/PLIST b/cross/powerpc-netbsd/pkg/PLIST
new file mode 100644
index 00000000000..324e5b7f2d0
--- /dev/null
+++ b/cross/powerpc-netbsd/pkg/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1 1999/01/06 01:20:28 tv Exp $