Plain 32bit ppc cannot be a ppc64p7

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
This commit is contained in:
Phil Knirsch 2012-06-28 10:15:59 +03:00 committed by Panu Matilainen
parent 3ffaef5afc
commit a7248ac1c9
1 changed files with 4 additions and 1 deletions

View File

@ -1093,8 +1093,11 @@ static void defaultMachine(const char ** arch,
# if defined(__linux__) && defined(__powerpc__)
{
int powerlvl;
if (sscanf(rpmat.platform, "power%d", &powerlvl) == 1 && powerlvl > 6)
if (!rstreq(un.machine, "ppc") &&
sscanf(rpmat.platform, "power%d", &powerlvl) == 1 &&
powerlvl > 6) {
strcpy(un.machine, "ppc64p7");
}
}
# endif /* ppc64*-linux */