Add a GENERIC machine type
authorSébastien Villemot <sebastien@debian.org>
Wed, 20 May 2020 14:42:23 +0000 (15:42 +0100)
committerSébastien Villemot <sebastien@debian.org>
Wed, 20 May 2020 14:42:23 +0000 (15:42 +0100)
Bug-Debian: https://bugs.debian.org/719355
Forwarded: not-needed
Last-Update: 2017-08-16

In practice this type will have the same effect than the UNKNOWN machine type,
except that it does not try to autodetect the machine CPU.
This is useful when trying to build a generic package on an arch for which
ATLAS does not define a generic machine type. For example, on a armel buildd
with ARMv7 CPU, ATLAS would detect ARMv7 if provided the UNKNOWN type.
Last-Update: 2017-08-16
Gbp-Pq: Name generic.patch

CONFIG/include/atlconf.h

index e51d56d4a7c37a09e0aab56dbcf8f194abad8a11..d8de160e4308a62ceb69891ee1a896e00939a365 100644 (file)
@@ -25,7 +25,7 @@ enum ARCHFAM {AFOther=0, AFPPC, AFSPARC, AFALPHA, AFX86, AFIA64, AFMIPS,
  * Corei3EP: v3 Haswell, E5-26XX
  * Corei4: skylake
  */
-#define NMACH 62
+#define NMACH 63
 static char *machnam[NMACH] =
    {"UNKNOWN", "PPCG4", "PPCG5", "POWER3", "POWER4", "POWER5",
     "POWER6", "POWER7", "POWER8", "POWERe6500",
@@ -39,7 +39,7 @@ static char *machnam[NMACH] =
     "USI", "USII", "USIII", "USIV", "UST1", "UST2", "UnknownUS",
     "MIPSR1xK", "MIPSICE9",
     "ARMa7", "ARMa9", "ARMa15", "ARMa17",
-    "ARM64xgene1", "ARM64a53", "ARM64a57"};
+    "ARM64xgene1", "ARM64a53", "ARM64a57", "GENERIC"};
 enum MACHTYPE {MACHOther, PPCG4, PPCG5, IbmPwr3, IbmPwr4, IbmPwr5,
                IbmPwr6, IbmPwr7, IbmPwr8, Pwre6500,
                IbmZ9, IbmZ10, IbmZ196, IbmZ12, IbmZ13, /* s390(x) in Linux */
@@ -58,7 +58,8 @@ enum MACHTYPE {MACHOther, PPCG4, PPCG5, IbmPwr3, IbmPwr4, IbmPwr5,
                ARM17,     /* lots of tablets */
                ARM64xg,     /* includes ARMv8 */
                ARM64a53,
-               ARM64a57
+               ARM64a57,
+               GENERIC
                };
 #define MachIsX86(mach_) \
    ( (mach_) >= x86x87 && (mach_) <= x86X )