CVS: theedge/var/lib/lunar/functions optimize.lunar,1.43,1.44

Terry Chan tchan at lunar-linux.org
Sun Oct 19 04:36:55 GMT 2003


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv10775/functions

Modified Files:
	optimize.lunar 
Log Message:
Updated the SPARC sections of optimize.lunar and optimize.menu.  Still needs
some work in the CPU hint section as "cat /proc/cpuinfo" does NOT return a
"model type" string -- instead it returns a "type" string and a "cpu" string.


Index: optimize.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/optimize.lunar,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- optimize.lunar	14 Aug 2003 19:41:38 -0000	1.43
+++ optimize.lunar	19 Oct 2003 04:36:53 -0000	1.44
@@ -404,57 +404,57 @@
 	       BUILD="alpha-linux"
                ;;
 # Begin SPARC options
-      v7)            CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      v7)            CFLAGS="$CFLAGS -mcpu=v7"
+                     CXXFLAGS="$CXXFLAGS -mcpu=v7"
+                     BUILD="sparc-linux"
                      ;;
-      cypress)       CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      cypress)       CFLAGS="$CFLAGS -mcpu=cypress"
+                     CXXFLAGS="$CXXFLAGS -mcpu=cypress"
+                     BUILD="sparc-linux"
                      ;;
-      v8)            CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      v8)            CFLAGS="$CFLAGS -mcpu=v8"
+                     CXXFLAGS="$CXXFLAGS -mcpu=v8"
+                     BUILD="sparc-linux"
                      ;;
-      super-sparc)   CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      supersparc)    CFLAGS="$CFLAGS -mcpu=supersparc"
+                     CXXFLAGS="$CXXFLAGS -mcpu=supersparc"
+                     BUILD="sparc-linux"
                      ;;
-      sparclite)     CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      sparclite)     CFLAGS="$CFLAGS =mcpu=sparclite"
+                     CXXFLAGS="$CXXFLAGS =mcpu=sparclite"
+                     BUILD="sparc-linux"
                      ;;
-      hypersparc)    CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      hypersparc)    CFLAGS="$CFLAGS -mcpu=hypersparc"
+                     CXXFLAGS="$CXXFLAGS -mcpu=hypersparc"
+                     BUILD="sparc-linux"
                      ;;
-      sparclite86x)  CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      sparclite86x)  CFLAGS="$CFLAGS -mcpu=sparclite86x"
+                     CXXFLAGS="$CXXFLAGS -mcpu=sparclite86x"
+                     BUILD="sparc-linux"
                      ;;
-      f930)          CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      f930)          CFLAGS="$CFLAGS -mcpu=f930"
+                     CXXFLAGS="$CXXFLAGS -mcpu=f930"
+                     BUILD="sparc-linux"
                      ;;
-      f934)          CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      f934)          CFLAGS="$CFLAGS -mcpu=f934"
+                     CXXFLAGS="$CXXFLAGS -mcpu=f934"
+                     BUILD="sparc-linux"
                      ;;
-      sparclet)      CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      sparclet)      CFLAGS="$CFLAGS -mcpu=sparclet"
+                     CXXFLAGS="$CXXFLAGS -mcpu=sparclet"
+                     BUILD="sparc-linux"
                      ;;
-      tsc701)        CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      tsc701)        CFLAGS="$CFLAGS -mcpu=tsc701"
+                     CXXFLAGS="$CXXFLAGS -mcpu=tsc701"
+                     BUILD="sparc-linux"
                      ;;
-      v9)            CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      v9)            CFLAGS="$CFLAGS -mcpu=v9"
+                     CXXFLAGS="$CXXFLAGS -mcpu=v9"
+                     BUILD="sparc-linux"
                      ;;
-      ultrasparc)    CFLAGS="$CFLAGS"
-                     CXXFLAGS="$CXXFLAGS"
-                     BUILD=""
+      ultrasparc)    CFLAGS="$CFLAGS -mcpu=ultrasparc"
+                     CXXFLAGS="$CXXFLAGS -mcpu=ultrasparc"
+                     BUILD="sparc-linux"
                      ;;
    esac
 }




More information about the Lunar-commits mailing list