add ARM configuration and enable on arm; tested on zaurus

XPCOM asm glue still missing, but basically functional
This commit is contained in:
pvalchev 2006-01-11 00:58:56 +00:00
parent b5e99b03a3
commit fd09355571
5 changed files with 47 additions and 15 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.13 2006/01/10 17:58:47 naddy Exp $
# $OpenBSD: Makefile,v 1.14 2006/01/11 00:58:56 pvalchev Exp $
ONLY_FOR_ARCHS= alpha amd64 i386 powerpc sparc64
ONLY_FOR_ARCHS= alpha amd64 i386 powerpc sparc64 arm
SHARED_ONLY= Yes
COMMENT= "mini mozilla"
DISTNAME= minimo-20050802
PKGNAME= ${DISTNAME}p2
PKGNAME= ${DISTNAME}p3
SO_VERSION= 1.0
# NOTE: Must bump minor version if any shlib's are removed from the
# components dir to avoid pkg_add -r issues.

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-config_rules_mk,v 1.3 2005/08/04 05:06:54 jolan Exp $
--- config/rules.mk.orig Tue Aug 2 14:26:31 2005
+++ config/rules.mk Tue Aug 2 14:40:23 2005
$OpenBSD: patch-config_rules_mk,v 1.4 2006/01/11 00:58:56 pvalchev Exp $
--- config/rules.mk.orig Tue Aug 2 13:26:31 2005
+++ config/rules.mk Sat Oct 8 18:35:46 2005
@@ -665,7 +665,7 @@ ifdef SHARED_LIBRARY
ifdef IS_COMPONENT
ifdef GRE_MODULE

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-nsprpub_pr_include_md__openbsd_cfg,v 1.1 2006/01/11 00:58:56 pvalchev Exp $
--- nsprpub/pr/include/md/_openbsd.cfg.orig Sat Oct 22 23:41:38 2005
+++ nsprpub/pr/include/md/_openbsd.cfg Sat Oct 22 23:41:46 2005
@@ -48,7 +48,7 @@
#define PR_AF_INET6 24 /* same as AF_INET6 */
-#if defined(__i386__)
+#if defined(__i386__) || defined(__arm__)
#define IS_LITTLE_ENDIAN 1
#undef IS_BIG_ENDIAN

View File

@ -1,12 +1,21 @@
$OpenBSD: patch-nsprpub_pr_include_md__openbsd_h,v 1.2 2005/07/13 04:49:56 jolan Exp $
--- nsprpub/pr/include/md/_openbsd.h.orig Tue Apr 27 19:33:44 2004
+++ nsprpub/pr/include/md/_openbsd.h Tue Jul 12 22:06:58 2005
@@ -56,7 +56,7 @@
$OpenBSD: patch-nsprpub_pr_include_md__openbsd_h,v 1.3 2006/01/11 00:58:56 pvalchev Exp $
--- nsprpub/pr/include/md/_openbsd.h.orig Tue Apr 27 18:33:44 2004
+++ nsprpub/pr/include/md/_openbsd.h Wed Dec 28 19:06:43 2005
@@ -54,6 +54,8 @@
#define _PR_SI_ARCHITECTURE "powerpc"
#elif defined(__sparc__)
#define _PR_SI_ARCHITECTURE "sparc"
+#elif defined(__arm__)
+#define _PR_SI_ARCHITECTURE "arm"
#endif
-#define PR_DLL_SUFFIX ".so.1.0"
+#define PR_DLL_SUFFIX ".so._SO_VERSION_"
#define _PR_VMBASE 0x30000000
#define _PR_STACK_VMBASE 0x50000000
#define PR_DLL_SUFFIX ".so.1.0"
@@ -97,6 +99,8 @@
#define JB_SP_INDEX 34
#elif defined(__amd64__)
#define JB_SP_INDEX 6
+#elif defined(__arm__)
+#define JB_SP_INDEX 23
#else
#error "Need to define SP index in jmp_buf here"
#endif

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-xpcom_components_xcDll_cpp,v 1.4 2006/01/11 00:58:56 pvalchev Exp $
--- xpcom/components/xcDll.cpp.orig Tue Aug 2 13:27:07 2005
+++ xpcom/components/xcDll.cpp Sat Oct 8 18:35:56 2005
@@ -67,7 +67,6 @@
#include "nsTraceRefcntImpl.h"
-#define UNLOAD_DEPENDENT_LIBS
#ifdef HPUX
#undef UNLOAD_DEPENDENT_LIBS
#endif