Commit e0da9dd3c56cc2e7532e8a189c58ad9f525480e5
Committed by
Anthony Liguori
1 parent
16dbd14f
Refactor common code using a list
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
3 additions
and
48 deletions
configure
... | ... | @@ -1495,57 +1495,12 @@ echo "EXESUF=$EXESUF" >> $config_mak |
1495 | 1495 | echo "PTHREADLIBS=$PTHREADLIBS" >> $config_mak |
1496 | 1496 | echo "CLOCKLIBS=$CLOCKLIBS" >> $config_mak |
1497 | 1497 | case "$cpu" in |
1498 | - i386) | |
1499 | - ARCH=i386 | |
1500 | - ;; | |
1501 | - x86_64) | |
1502 | - ARCH=x86_64 | |
1503 | - ;; | |
1504 | - alpha) | |
1505 | - ARCH=alpha | |
1506 | - ;; | |
1507 | - armv4b) | |
1508 | - ARCH=arm | |
1498 | + i386|x86_64|alpha|cris|hppa|ia64|m68k|microbaze|mips|mips64|ppc|ppc64|s390|sparc|sparc64) | |
1499 | + ARCH=$cpu | |
1509 | 1500 | ;; |
1510 | - armv4l) | |
1501 | + armv4b|arm4l) | |
1511 | 1502 | ARCH=arm |
1512 | 1503 | ;; |
1513 | - cris) | |
1514 | - ARCH=cris | |
1515 | - ;; | |
1516 | - hppa) | |
1517 | - ARCH=hppa | |
1518 | - ;; | |
1519 | - ia64) | |
1520 | - ARCH=ia64 | |
1521 | - ;; | |
1522 | - m68k) | |
1523 | - ARCH=m68k | |
1524 | - ;; | |
1525 | - microblaze) | |
1526 | - ARCH=microblaze | |
1527 | - ;; | |
1528 | - mips) | |
1529 | - ARCH=mips | |
1530 | - ;; | |
1531 | - mips64) | |
1532 | - ARCH=mips64 | |
1533 | - ;; | |
1534 | - ppc) | |
1535 | - ARCH=ppc | |
1536 | - ;; | |
1537 | - ppc64) | |
1538 | - ARCH=ppc64 | |
1539 | - ;; | |
1540 | - s390) | |
1541 | - ARCH=s390 | |
1542 | - ;; | |
1543 | - sparc) | |
1544 | - ARCH=sparc | |
1545 | - ;; | |
1546 | - sparc64) | |
1547 | - ARCH=sparc64 | |
1548 | - ;; | |
1549 | 1504 | *) |
1550 | 1505 | echo "Unsupported CPU = $cpu" |
1551 | 1506 | exit 1 | ... | ... |