From 3320f7593fa94899d5aa2698d56e78612e79568f Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 20 May 2020 15:42:23 +0100 Subject: [PATCH] Add a GENERIC machine type 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CONFIG/include/atlconf.h b/CONFIG/include/atlconf.h index e51d56d..d8de160 100644 --- a/CONFIG/include/atlconf.h +++ b/CONFIG/include/atlconf.h @@ -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 ) -- 2.30.2