Commit Graph

24 Commits

Author SHA1 Message Date
Ivan Zakharyaschev
142f0fa117 installplatform: drop unsused variables from the script 2020-06-28 19:23:11 +03:00
Ivan Zakharyaschev
6ca12cdba9 add /usr/lib/rpm/armv8l-alt-linux/macros for builds on armv8l machines
If rpmbuild is invoked without --target, it looks for the macros based
on `uname -m`. The resulting error message on armv8l machines (when
building a noarch package) was like this:

> Invalid or unknown architecture: noarch-alt-linux
> Executing(%install): /bin/sh -e /tmp/sh.txFqhrP3/rpm-tmp.63120
> error: Bad exit status from /tmp/sh.txFqhrP3/rpm-tmp.63120 (%install)

--a bit misleading due to the following fallback code from macros.in
being executed:

    %___build_pre	\
    %{warn:Invalid or unknown architecture: %{_target_cpu}-%{_vendor}-%{_target_os}\
    }exit 1\
    %nil

(Are there additional customizations that we might want to enable on
armv8l compared to our armv7l or armh configuration?

armv8l means having AArch32 architecture, typically on a CPU with
AArch64, too. AArch32 means that A32 (ARM) and T32 (Thumb-2)
instruction sets are admitted. See, e.g.,
<https://bgamari.github.io/posts/2019-06-12-arm-terminology.html>.

Currently, our armv8l-alt-linux/macros won't differ essentially from
armv7l-alt-linux/macros. Probably, that's fine, because it seems that
all ARMv8 and all ARMv7 processors support Thumb-2 instructions in the
T32 instruction set, so there are no essential differences in the
optimizations that can be applied.)

Reported-by: Vitaly Chikunov <vt@altlinux.org>
Suggested-by: Dmitry V. Levin <ldv@altlinux.org>
Fixes: c18f1b7d ("installplatform, rpmrc.in: made armv8l compatible with armh")
2020-06-28 19:22:55 +03:00
Gleb Fotengauer-Malinovskiy
3dfc13a782 Add %_pointer_size, %_is_ilp32, and %_is_lp64 macros 2019-05-11 17:26:56 +03:00
Gleb Fotengauer-Malinovskiy
8a97cf8dca installplatform: disable glob; disallow undefined variables; fail on error 2019-05-11 17:08:40 +03:00
Ivan Zakharyaschev
bad28062d6 platform.in: completely expand %%_libsuff (/usr/lib%%nil was ugly) 2019-01-31 21:58:32 +03:00
Gleb Fotengauer-Malinovskiy
3081d856c6 Add ppc64le support 2018-12-04 14:52:42 +03:00
Gleb Fotengauer-Malinovskiy
e9dcdf727e Introduce mips{,n32,64}{,el}, riscv64, and s390x architectures 2018-05-29 13:13:20 +03:00
Gleb Fotengauer-Malinovskiy
0ca04d42f3 Introduce %_libsuff and %_is_libsuff macros
Previously one who wanted to use only suffix from %_lib macro (without
'lib' prefix) had to either strip it with shell or try to guess it
from %_lib macro.
New macros allow to simplify library suffix logics in spec files:
* %_libsuff is always defined (to %nil on targets where %_lib = lib);
* %_is_libsuff is defined only on those targets where suffix
is not empty (it is useful for %{?...} expressions).
2018-05-29 13:12:26 +03:00
Andrew Savchenko
24867100ca
Modify installplatform for e2k.
Signed-off-by: Andrew Savchenko <bircoph@altlinux.org>
2018-03-26 20:52:52 +03:00
Sergey Bolshakov
c18f1b7d19 installplatform, rpmrc.in: made armv8l compatible with armh 2018-01-17 21:48:55 +00:00
Gleb Fotengauer-Malinovskiy
ed33f2daf7 installplatform, rpmrc.in: introduce aarch64 architecture 2015-09-15 14:07:56 +03:00
Sergey Bolshakov
d289faa950 rpmrc.in, macros.in, installplatform: introduce armh arch 2012-08-14 13:20:54 +04:00
Alexey Tourbin
07c1a647d4 4.0.4-alt97.M50.2
- Removed prehistoric multilib support.
2009-03-10 14:39:35 +03:00
Alexey Tourbin
aebc9a42dd removed prehistoric multilib support 2009-03-10 14:27:38 +03:00
Kirill A. Shutemov
7b82cf6777 Add support of armv5tel and fix armv5tejl
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
2008-08-29 01:05:44 +03:00
Kirill A. Shutemov
629b4b18bc Add armv5tejl support 2007-11-10 13:26:47 +00:00
Kirill A. Shutemov
f002179ab8 Refresh ARM support
Add arm and armb CANONARCH: common CANONARCH for general purpose distribution. It's armv4 without Thumb now.
Update %optflags for ARM
Add %arm macros: list of all ARM processors
2007-11-10 13:26:45 +00:00
894d09e31b Rename athlonxp platform to athlon_xp (#9991). 2006-09-16 21:50:43 +00:00
06ada1732d added arches: pentium2, pentium3, athlonxp 2006-03-20 14:23:07 +00:00
87650a4c3d Maintain noarch as self-contained architecture (mouse@) 2005-10-10 14:32:55 +00:00
9835799623 Added x86_64 support. 2005-06-16 16:18:15 +00:00
65aaf3b23d Added pentium4 arch support (Raorn, #5259) 2004-10-31 19:08:39 +00:00
7609dfc177 sync with rpm4 branch 2002-03-25 22:32:55 +00:00
82a4763c66 Initial revision 2002-03-25 20:16:26 +00:00