[M3devel] Stuck on adding new cm3 target (AMD64_DRAGONFLY)

John Marino adacore at marino.st
Sun Jan 19 11:03:27 CET 2014


Hi all,

I've been trying to port cm3 to DragonFly x86-64.
I'm able to build cm3cg on DragonFly, and use it to build libraries
(e.g. libm3core) that were targeted for AMD64_FREEBSD.

However, when I set the HOST to AMD64_FREEBSD and TARGET to
AMD64_DRAGONFLY, I get the following error, "Fatal Error: unrecognized
target machine: TARGET = AMD64_DRAGONFLY" (context below)

=========================================================
> /work/lang/modula3/work/modula3-5.8.6/scripts/pkgmap.sh -c "/work/lang/modula3/work/stage/usr/local/bin/cm3 -build -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3_VERSION_TEXT='5.8.6' -DCM3_VERSION_NUMBER='050806' -DCM3_LAST_CHANGED='2010-04-11' -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3VERSION='5.8.6' -DCM3VERSIONNUM='050806' -DCM3LASTCHANGED='2010-04-11' $RARGS " m3core
> ROOT        = /work/lang/modula3/work/modula3-5.8.6
> CM3_ROOT    = /work/lang/modula3/work/modula3-5.8.6
> M3GDB       = yes
> M3OSTYPE    = POSIX
> TARGET      = AMD64_DRAGONFLY
> GCC_BACKEND = yes
> INSTALLROOT = /work/lang/modula3/work/stage/usr/local
> PKGSDB      = /work/lang/modula3/work/modula3-5.8.6/scripts/PKGS
> GREP        = egrep
> GMAKE       = gmake
> TMPDIR      = /var/tmp
> EXE         = 
> SL          = /
> TAR         = tar
> CM3ROOT     = /work/lang/modula3/work/modula3-5.8.6
> CM3VERSION  = 5.8.6
> CM3VERSIONNUM = 050806
> CM3LASTCHANGED = 2010-04-11
> FIND = /usr/bin/find
> EGREP = egrep
> === package m3-libs/m3core ===
>  +++ /work/lang/modula3/work/stage/usr/local/bin/cm3 -build -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3_VERSION_TEXT='5.8.6' -DCM3_VERSION_NUMBER='050806' -DCM3_LAST_CHANGED='2010-04-11' -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3VERSION='5.8.6' -DCM3VERSIONNUM='050806' -DCM3LASTCHANGED='2010-04-11' $RARGS  +++
> --- building in AMD64_DRAGONFLY ---
> 
> ignoring ../src/m3overrides
> 
> 
> Fatal Error: unrecognized target machine: TARGET = AMD64_DRAGONFLY
> 
>  *** execution of /work/lang/modula3/work/stage/usr/local/bin/cm3 -build -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3_VERSION_TEXT='5.8.6' -DCM3_VERSION_NUMBER='050806' -DCM3_LAST_CHANGED='2010-04-11' -DROOT='/work/lang/modula3/work/modula3-5.8.6' -DCM3VERSION='5.8.6' -DCM3VERSIONNUM='050806' -DCM3LASTCHANGED='2010-04-11' $RARGS  failed ***
> *** [assembler-code] Error code 1

=========================================================

I thought I added all the target definitions but apparently I've missed
something.  I also realize the current repo looks a lot different, but I
wanted to use the last official release.

I've attached a concatenated file of patches showing what I've changed.
 Could somebody suggest what data is missing that causes the error above?

Regards,
John
-------------- next part --------------
--- m3-libs/libm3/src/os/POSIX/m3makefile.orig	2009-07-24 10:02:40.000000000 +0000
+++ m3-libs/libm3/src/os/POSIX/m3makefile
@@ -84,6 +84,7 @@ local readonly DefaultOSName = {
    "MIPS64_OPENBSD" : "OpenBSD",
    "SPARC64_SOLARIS" : "Solaris",
    "I386_OPENBSD" : "OpenBSD",
+   "AMD64_DRAGONFLY" : "DragonFly",
    "AMD64_FREEBSD" : "FreeBSD",
    "PA32_HPUX" : "HPUX",
    "PA64_HPUX" : "HPUX",
@@ -92,6 +93,7 @@ local readonly DefaultOSName = {
    "AIX" : "AIX",
    "CYGWIN" : "Cygwin",
    "DARWIN" : "Darwin",
+   "DRAGONFLY" : "DragonFly",
    "FREEBSD" : "FreeBSD",
    "HPUX" : "HPUX",
    "INTERIX" : "Interix",
@@ -156,6 +158,7 @@ local readonly DefaultArch = {
    "SPARC64_SOLARIS" : "sparc64",
    "I386_OPENBSD" : "i686",
    "AMD64_FREEBSD" : "AMD64",
+   "AMD64_DRAGONFLY" : "AMD64",
    "PA32_HPUX" : "hppa",
    "PA64_HPUX" : "hppa64",
 
--- m3-libs/m3core/src/Csupport/m3makefile.orig	2009-07-24 10:51:01.000000000 +0000
+++ m3-libs/m3core/src/Csupport/m3makefile
@@ -11,6 +11,7 @@ readonly _CSupportPieces = {
 % "ALPHA_OSF"  : [ "little-endian" ],
 % "AIX386"     : [ "little-endian" ],
   "AMD64_DARWIN": [ "little-endian" ],
+  "AMD64_DRAGONFLY": [ "little-endian" ],
   "AMD64_FREEBSD": [ "little-endian" ],
   "AMD64_OPENBSD": [ "little-endian" ],
   "AMD64_NETBSD": [ "little-endian" ],
--- m3-libs/m3core/src/float/m3makefile.orig	2009-07-24 10:51:24.000000000 +0000
+++ m3-libs/m3core/src/float/m3makefile
@@ -13,6 +13,7 @@ _FloatPieces = {
 % "ALPHA_OSF"  : _float_le,
 % "AIX386"     : _float_le,
   "AMD64_DARWIN": _float_le,
+  "AMD64_DRAGONFLY": _float_le,
   "AMD64_FREEBSD": _float_le,
   "AMD64_OPENBSD": _float_le,
   "AMD64_NETBSD": _float_le,
--- m3-libs/m3core/src/m3core.h.orig	2010-03-28 10:07:45.000000000 +0000
+++ m3-libs/m3core/src/m3core.h
@@ -207,7 +207,8 @@ typedef INTEGER m3_uid_t;
 #define PTHREAD_TO_M3(x)   ((m3_pthread_t)(size_t)(x))
 #define PTHREAD_FROM_M3(x) ((pthread_t)(size_t)(x))
 
-#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) \
+ || defined(__OpenBSD__) || defined(__DragonFly__)
 #define HAS_STAT_FLAGS
 #endif
 
--- m3-libs/m3core/src/platforms.quake.orig	2010-03-28 10:09:07.000000000 +0000
+++ m3-libs/m3core/src/platforms.quake
@@ -1,5 +1,6 @@
 _TARGET_OS = {
   "AMD64_DARWIN"  : "DARWIN",
+  "AMD64_DRAGONFLY" : "DRAGONFLY",
   "AMD64_FREEBSD" : "FREEBSD",
   "AMD64_LINUX"   : "LINUX",
   "AMD64_NETBSD"  : "NETBSD",
@@ -32,6 +33,7 @@ _TARGET_ENDIAN = {
 % This is not computed based on architecture
 % because some architectures vary, e.g. PPC_NT is little endian, PPC_DARWIN is big.
   "AMD64_DARWIN"    : "LITTLE",
+  "AMD64_DRAGONFLY" : "LITTLE",
   "AMD64_FREEBSD"   : "LITTLE",
   "AMD64_LINUX"     : "LITTLE",
   "AMD64_NETBSD"    : "LITTLE",
--- m3-libs/m3core/src/runtime/POSIX/RTSignalC.c.orig	2010-04-16 12:20:56.000000000 +0000
+++ m3-libs/m3core/src/runtime/POSIX/RTSignalC.c
@@ -167,7 +167,7 @@ static size_t GetPC(void* xcontext)
 #elif defined(__NetBSD__)
     _UC_MACHINE_PC(context)
 
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
 #if defined(__amd64)
     context->uc_mcontext.mc_rip
 #elif defined(__i386)
--- m3-libs/m3core/src/runtime/common/Compiler.tmpl.orig	2009-07-13 09:09:35.000000000 +0000
+++ m3-libs/m3core/src/runtime/common/Compiler.tmpl
@@ -21,7 +21,7 @@ readonly Compiler_i3 = [
   "               SPARC64_OPENBSD, PPC32_OPENBSD, MIPS64_OPENBSD,",
   "               SPARC64_SOLARIS, I386_OPENBSD, AMD64_FREEBSD,",
   "               PA32_HPUX, PA64_HPUX, ARM_DARWIN, I386_INTERIX,",
-  "               AMD64_NETBSD, AMD64_OPENBSD };",
+  "               AMD64_NETBSD, AMD64_OPENBSD, AMD64_DRAGONFLY };",
   "",
   "CONST",
   "  ThisOS       = OS." & OS_TYPE & ";",
--- m3-libs/m3core/src/thread.quake.orig	2009-12-20 11:01:02.000000000 +0000
+++ m3-libs/m3core/src/thread.quake
@@ -12,6 +12,7 @@ readonly NO_USER_THREADS =
     "AMD64_FREEBSD":1,
     "AMD64_OPENBSD":1,
     "AMD64_NETBSD":1,
+    "AMD64_DRAGONFLY":1,
     "AMD64_LINUX":1,
     "ARM_LINUX":1,
     "MIPS32_IRIX":1,
--- m3-libs/m3core/src/thread/PTHREAD/ThreadFreeBSD.c.orig	2009-12-21 05:35:34.000000000 +0000
+++ m3-libs/m3core/src/thread/PTHREAD/ThreadFreeBSD.c
@@ -2,7 +2,7 @@
 /* All rights reserved.                                            */
 /* See the file COPYRIGHT-PURDUE for a full description.           */
 
-#ifndef __FreeBSD__
+#if !defined(__FreeBSD__) && !defined(__DragonFly__)
 
 /* avoid empty file */
 
--- m3-libs/m3core/src/thread/PTHREAD/ThreadPThreadC.c.orig	2009-12-12 14:48:10.000000000 +0000
+++ m3-libs/m3core/src/thread/PTHREAD/ThreadPThreadC.c
@@ -23,7 +23,7 @@
 #endif
 #endif
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
 #define M3_DIRECT_SUSPEND
 #endif
 
@@ -177,7 +177,7 @@ void ThreadPThread__sem_post(void)      
 void ThreadPThread__sem_getvalue(void)  { M3_DIRECT_SUSPEND_ASSERT_FALSE }
 void ThreadPThread__sigsuspend(void)    { M3_DIRECT_SUSPEND_ASSERT_FALSE }
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
 
 int
 ThreadPThread__SuspendThread (m3_pthread_t mt)
--- m3-libs/m3core/src/time/POSIX/m3makefile.orig	2009-07-24 07:26:15.000000000 +0000
+++ m3-libs/m3core/src/time/POSIX/m3makefile
@@ -11,6 +11,7 @@ readonly _DateImpls = {
 % "ALPHA_OSF"  : "DateBsd",
 % "AIX386"     : "DateBsd",
   "AMD64_DARWIN": "DateBsd",
+  "AMD64_DRAGONFLY": "DateBsd",
   "AMD64_FREEBSD": "DateBsd",
   "AMD64_OPENBSD": "DateBsd",
   "AMD64_NETBSD": "DateBsd",
@@ -63,6 +64,7 @@ readonly _DateImpls = {
 % "AIX"     : "DateBsd",
   "CYGWIN"  : "DatePosix",
   "DARWIN"  : "DateBsd",
+  "DRAGONFLY" : "DataBsd",
   "FREEBSD" : "DateBsd",
   "HPUX"    : "DatePosix",
   "INTERIX" : "DatePosix",
--- m3-libs/m3core/src/unix/Common/UtimeC.c.orig	2009-12-11 11:18:34.000000000 +0000
+++ m3-libs/m3core/src/unix/Common/UtimeC.c
@@ -56,7 +56,8 @@ struct timeval
 #endif
 }
 
-#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) \
+ || defined(__APPLE__) || defined(__DragonFly__)
 #define M3BSD
 #endif
 
--- m3-libs/m3core/src/unix/Common/Uucontext.c.orig	2009-06-29 19:20:40.000000000 +0000
+++ m3-libs/m3core/src/unix/Common/Uucontext.c
@@ -29,6 +29,7 @@ see http://www.opengroup.org/onlinepubs/
     || defined(__linux) \
     || defined(__NetBSD__) \
     || defined(__hpux) \
+    || defined(__DragonFly__) \
     || defined(__FreeBSD__) \
 
 int Uucontext__getcontext(ucontext_t* context)
--- m3-libs/m3core/src/unix/Common/m3makefile.orig	2009-07-19 00:28:17.000000000 +0000
+++ m3-libs/m3core/src/unix/Common/m3makefile
@@ -81,7 +81,7 @@ if equal (TARGET, "MIPS64_OPENBSD") or e
         or equal (TARGET, "PA32_HPUX") or equal (TARGET, "PA64_HPUX")
         or equal (TARGET, "NT386") or equal (TARGET, "AMD64_FREEBSD")
         or equal (TARGET, "AMD64_OPENBSD") or equal (TARGET, "AMD64_NETBSD")
-        or equal (TARGET, "I386_INTERIX")
+        or equal (TARGET, "I386_INTERIX") or equal (TARGET, "AMD64_DRAGONFLY")
 
     Interface("Uucontext")
 
--- m3-libs/m3core/src/unix/m3makefile.orig	2009-07-28 18:49:13.000000000 +0000
+++ m3-libs/m3core/src/unix/m3makefile
@@ -6,6 +6,7 @@ readonly _UnixPieces = {
 % "AIX386"          : [ "aix-ps2-1-2",                             "uin-common" ],
 % "ALPHA_OSF"       : [ "osf-1.generic", "osf-1.ALPHA_OSF",        "uin-common" ],
   "AMD64_DARWIN"    : [ "darwin-common", "darwin-amd64",           "uin-len" ],
+  "AMD64_DRAGONFLY" : [ "freebsd-common",                          "uin-len" ],
   "AMD64_FREEBSD"   : [ "freebsd-common",                          "uin-len" ],
   "AMD64_LINUX"     : [ "linux-common",                            "uin-common" ],
   "AMD64_NETBSD"    : [ "netbsd-common",                           "uin-len" ],
--- m3-sys/cminstall/src/config-no-install/AMD64_DRAGONFLY.orig	2014-01-16 23:14:23.000000000 +0000
+++ m3-sys/cminstall/src/config-no-install/AMD64_DRAGONFLY
@@ -0,0 +1,9 @@
+readonly TARGET = "AMD64_DRAGONFLY"
+readonly GNU_PLATFORM = "amd64-dragonfly" % "cpu-os" string for GNU
+
+m3back_flags = "-gstabs+ -m64 -fPIC -funwind-tables"
+SYSTEM_CC = "gcc -gstabs+ -m64 -fPIC"
+readonly SYSTEM_ASM = "as -64"
+
+include("AMD64.common")
+include("DragonFly.common")
--- m3-sys/cminstall/src/config-no-install/DragonFly.common.orig	2014-01-16 23:18:36.000000000 +0000
+++ m3-sys/cminstall/src/config-no-install/DragonFly.common
@@ -0,0 +1,24 @@
+readonly TARGET_OS = "DRAGONFLY"
+
+GNU_MAKE = "gmake"
+
+include("Unix.common")
+
+SYSTEM_LIBS{"ODBC"} = [ "-Wl,-R/usr/local/lib", "-L/usr/local/lib", "-lodbc" ]
+SYSTEM_LIBS{"POSTGRES95"} = [ "-Wl,-R/usr/local/lib", "-L/usr/local/lib", "-lpq" ]
+SYSTEM_LIBS{"X11"} = ["-Wl,-R/usr/local/lib", "-L/usr/local/lib", "-lXaw", "-lXmu", "-lXext", "-lXt", "-lSM", "-lICE", "-lX11" ]
+
+DRAGONFLY_CC_APPEND = " -z origin"
+                    & " -z now"
+                    & " -Bsymbolic"
+
+DRAGONFLY_LD_APPEND = DRAGONFLY_CC_APPEND
+                    & " -Wl,--fatal-warnings"
+                    & " -Wl,--warn-common"
+                    & " -Wl,-rpath,/usr/local/lib"
+                    & " -Wl,-rpath,\\$ORIGIN/../lib "
+
+SYSTEM_LD = SYSTEM_CC & DRAGONFLY_LD_APPEND
+SYSTEM_CC = SYSTEM_CC & DRAGONFLY_CC_APPEND
+
+include("gnuld.common")
--- m3-sys/m3cc/src/boot.py.orig	2008-05-19 13:09:03.000000000 +0000
+++ m3-sys/m3cc/src/boot.py
@@ -76,7 +76,7 @@ if SearchPath("gcc"):
     " + env)
 
   Run(gmake + "all-gmp all-mpfr all-libcpp all-libdecnumber \
-    all-build-libiberty all-libiberty configure-gcc")
+    all-build-libiberty all-libiberty configure-libcpp configure-gcc")
 
   os.chdir("gcc")
 
--- m3-sys/m3cc/src/m3makefile.orig	2010-05-14 07:00:52.000000000 +0000
+++ m3-sys/m3cc/src/m3makefile
@@ -577,7 +577,7 @@ end
 if GCC42
     m3cc_Run (["cd " & build_dir & " && " & M3CC_MAKE & " all-build-libiberty all-libiberty all-libdecnumber | tee -a " & Log])
 else
-    m3cc_Run (["cd " & build_dir & " && " & M3CC_MAKE & " all-gmp all-mpfr all-build-libiberty all-libiberty all-libdecnumber | tee -a " & Log])
+    m3cc_Run (["cd " & build_dir & " && " & M3CC_MAKE & " all-gmp all-mpfr all-build-libiberty all-libiberty all-libdecnumber configure-libcpp | tee -a " & Log])
 end
 
 %
--- m3-sys/m3cc/src/platforms.quake.orig	2009-07-29 17:11:08.000000000 +0000
+++ m3-sys/m3cc/src/platforms.quake
@@ -13,6 +13,7 @@ readonly Platform_info = {
   "ALPHA_OSF" : "alpha-dec-osf1",
   "ALPHA_VMS" : "alpha-vms",
   "AMD64_DARWIN" : "i686-apple-darwin8",
+  "AMD64_DRAGONFLY" : "amd64-dragonfly",
   "AMD64_FREEBSD" : "amd64-freebsd7",
   "AMD64_LINUX" : "amd64-pc-linux-gnu",
   "AMD64_NETBSD" : "amd64-netbsd",
--- m3-sys/m3gdb/src/platforms.quake.orig	2010-04-21 17:06:38.000000000 +0000
+++ m3-sys/m3gdb/src/platforms.quake
@@ -13,6 +13,7 @@ readonly Platform_info = {
   "ALPHA_OSF" : "alpha-dec-osf1",
   "ALPHA_VMS" : "alpha-vms",
   "AMD64_DARWIN" : "amd64-apple-darwin8.7.1",
+  "AMD64_DRAGONFLY" : "amd64-dragonfly",
   "AMD64_FREEBSD" : "amd64-freebsd",
   "AMD64_LINUX" : "amd64-pc-linux-gnu",
   "AMD64_NETBSD" : "amd64-netbsd",
--- m3-sys/m3middle/src/Target.i3.orig	2010-02-01 14:05:35.000000000 +0000
+++ m3-sys/m3middle/src/Target.i3
@@ -33,7 +33,7 @@ TYPE
     AMD64_DARWIN, AMD64_LINUX, SPARC32_LINUX, SPARC64_LINUX,
     SPARC64_OPENBSD, PPC32_OPENBSD, MIPS64_OPENBSD, SPARC64_SOLARIS,
     I386_OPENBSD, AMD64_FREEBSD, PA32_HPUX, PA64_HPUX, ARM_DARWIN,
-    I386_INTERIX, AMD64_NETBSD, AMD64_OPENBSD, Undefined
+    I386_INTERIX, AMD64_NETBSD, AMD64_OPENBSD, AMD64_DRAGONFLY, Undefined
   };
 
 CONST
@@ -89,7 +89,8 @@ CONST
     (* 48 *) "ARM_DARWIN",
     (* 49 *) "I386_INTERIX",
     (* 50 *) "AMD64_NETBSD",
-    (* 51 *) "AMD64_OPENBSD"
+    (* 51 *) "AMD64_OPENBSD",
+    (* 52 *) "AMD64_DRAGONFLY"
   };
 
 CONST
--- m3-sys/m3middle/src/Target.m3.orig	2010-02-01 15:06:05.000000000 +0000
+++ m3-sys/m3middle/src/Target.m3
@@ -307,6 +307,7 @@ PROCEDURE Init (system: TEXT; in_OS_name
 
     |  Systems.AMD64_NETBSD,
        Systems.AMD64_OPENBSD,
+       Systems.AMD64_DRAGONFLY,
        Systems.AMD64_FREEBSD =>
                  Jumpbuf_size              := 16_60 * Char.size;
 
--- m3-tools/cvsup/suplib/src/FreeBSD/UProcTitle.c.orig	2009-04-12 10:31:23.000000000 +0000
+++ m3-tools/cvsup/suplib/src/FreeBSD/UProcTitle.c
@@ -1,11 +1,11 @@
-#ifdef __FreeBSD__
+#if defined __FreeBSD__) || defined(__DragonFly__)
 #include <sys/types.h>
 #include <libutil.h>
 #endif
 
 void m3_setproctitle(const char *title)
 {
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
     setproctitle("%s", title);
 #endif
 }
--- scripts/boot-cm3-makefile-lib.tmpl.orig	2005-04-07 22:35:07.000000000 +0000
+++ scripts/boot-cm3-makefile-lib.tmpl
@@ -20,9 +20,10 @@ FILES_C  := $(wildcard *.c)
 FILES_S  := $(wildcard *.s)
 BASES_IC := $(basename $(FILES_IC))
 BASES_MC := $(basename $(FILES_MC))
+BASES_MS := $(basename $(FILES_MS))
 BASES_C  := $(basename $(FILES_C) $(FILES_S))
 OBJ_IO   := $(addsuffix .io, $(BASES_IC))
-OBJ_MO   := $(addsuffix .mo, $(BASES_MC))
+OBJ_MO   := $(addsuffix .mo, $(BASES_MS))
 OBJ_O    := $(addsuffix .o, $(BASES_C))
 OBJECTS  := $(OBJ_IO) $(OBJ_MO) $(OBJ_O)
 
--- scripts/boot-cm3-makefile-prog.tmpl.orig	2003-07-10 22:16:05.000000000 +0000
+++ scripts/boot-cm3-makefile-prog.tmpl
@@ -19,9 +19,10 @@ FILES_MS := $(wildcard *.ms)
 FILES_C  := $(wildcard *.c)
 BASES_IC := $(basename $(FILES_IC))
 BASES_MC := $(basename $(FILES_MC))
+BASES_MS := $(basename $(FILES_MS))
 BASES_C  := $(basename $(FILES_C))
 OBJ_IO   := $(addsuffix .io, $(BASES_IC))
-OBJ_MO   := $(addsuffix .mo, $(BASES_MC))
+OBJ_MO   := $(addsuffix .mo, $(BASES_MS))
 OBJ_O    := $(addsuffix .o, $(BASES_C))
 OBJECTS  := $(OBJ_IO) $(OBJ_MO) $(OBJ_O)
 LIBFILES := $(shell for f in $(LIBS); do if [ -f "$${f}" ] ; then  echo $${f}; fi; done)
--- scripts/pack-crossbuild.sh.orig	2010-02-25 14:02:18.000000000 +0000
+++ scripts/pack-crossbuild.sh
@@ -23,7 +23,7 @@ if [ -z "$1" ] ; then
 fi
 CROSS_TARGET=$1
 BUILDARGS=''
-M3CONFIG=${ROOT}/m3-sys/cm3/src/config/${CROSS_TARGET}
+M3CONFIG=${ROOT}/m3-sys/cminstall/src/config-no-install/${CROSS_TARGET}
 export M3CONFIG
 . "$ROOT/scripts/pkginfo.sh"
 . "$ROOT/scripts/pkgcmds.sh"
@@ -38,25 +38,7 @@ P="${P} m3back"
 P="${P} m3front"
 P="${P} m3quake"
 P="${P} cm3"
-P="${P} m3scanner"
-P="${P} m3tools"
-P="${P} m3cgcat"
-P="${P} m3cggen"
-[ "${M3GDB}" = yes ] && P="${P} m3gdb"
 P="${P} m3bundle"
-P="${P} mklib"
-P="${P} fix_nl"
-P="${P} libdump"
-P="${P} bitvector"
-P="${P} digraph"
-P="${P} parseparams"
-P="${P} realgeometry"
-P="${P} set"
-P="${P} slisp"
-P="${P} sortedtableextras"
-P="${P} table-list"
-P="${P} tempfiles"
-[ "${HAVE_TCL}" = "yes" ] && P="${P} tcl"
 
 USAGE="
   `basename $0` cross_target


More information about the M3devel mailing list