Commit graph

69 commits

Author SHA1 Message Date
Isaac Freund 020e1aa54b build-styles: add zig-build
We call this "zig-build" instead of just "zig" as this build-style
relies on usage of the zig build system. In the future, other build
systems such as meson may support zig code. Furthermore, the zig
build system may be used to build C/C++ code as well, not just zig.
2021-11-13 11:46:21 -03:00
q66 b0404d97aa cross-profiles: fix qemu name for ppcle 2021-03-13 03:25:36 +01:00
q66 5922df60c7 xbps-src: make sure to apply FFLAGS properly like CFLAGS 2021-01-03 14:11:02 +01:00
q66 b1d4c6ebe8 common: add build/cross profiles for ppcle(-musl)
for now, these profiles set -mcpu to power8 and -mtune to power9
to match our ppc64le profiles, since there isn't really any native
harwdare to run these on (at least yet), and any packages will be
experimental for now anyway
2020-12-15 23:01:30 +01:00
q66 095bf4734c cross-profiles/aarch64: remove nonsense that does not belong
????
2020-12-06 06:01:07 +01:00
q66 1e86562c72 cross-profiles: do the same as for build-profiles for ppc 2020-12-06 05:51:32 +01:00
Jürgen Buchmüller a5e1f70082 cross-profiles/armv5*: add missing flags 2020-03-29 23:31:17 +02:00
q66 a6594a579e cross-profiles: add x86_64 2020-03-29 21:12:43 +02:00
q66 80b96a0ea0 common: better location for config.{sub,guess} + update 2019-11-18 20:36:27 +01:00
Jürgen Buchmüller f1a7dfbfef
common: fix XBPS_{,TARGET_}{ENDIAN,LIBC,WORDSIZE}
My first attempt was not working at all.

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-08-03 23:09:49 +02:00
Jürgen Buchmüller 6a1b977e0c Revert "profiles: introduce XBPS_{,TARGET_}{ENDIAN,LIBC}"
This reverts commit 9b3203401d.

It doesn't actually work. Use the method suggested by @q66 instead.
2019-08-03 23:09:36 +02:00
Jürgen Buchmüller 9b3203401d
profiles: introduce XBPS_{,TARGET_}{ENDIAN,LIBC}
Provide new environment variables for simplifaction of template checks:
...ENDIAN defines the (target) machine's endianness: "le" or "be".
...LIBC defines the (target) machine's C library: "glibc" or "musl".

Closes: #13356
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-08-02 17:34:05 +02:00
Jürgen Buchmüller ed4cdadcfd common/profiles: introduce XBPS_{,TARGET_}WORDSIZE
The host and target word size can be used to determine whether
cross compiling certain packages is possible.
2019-07-26 15:18:11 +02:00
Jürgen Buchmüller d01f6a335c cross-profiles: add ppc64.sh (glibc ELFv2) 2019-04-27 16:10:35 +02:00
John 01d11a4938 build-style/cmake: set CMAKE_CROSSCOMPILING_EMULATOR 2019-04-05 23:04:14 +02:00
q66 17e78ac881 cross-profiles: fix rust target for x86_64-musl
[ci skip]
2019-03-03 22:34:57 -03:00
stenstorp 86ca0398b3 common: explicitly disable altivec on ppc 2019-02-08 13:06:57 -02:00
Thomas Batten 47f5b52023 common: Add rust target to ppc build/cross profiles 2019-01-22 22:54:16 -02:00
maxice8 5ae9e3d2f1
cross-profiles/README: mention XBPS_CROSS_RUST_TARGET
XBPS_CROSS_RUSTFLAGS
2019-01-19 08:03:20 -02:00
Thomas Batten 8f52911ac9 common: Add build/cross profiles for ppc/ppc-musl 2019-01-19 10:15:01 +01:00
q66 151f876627 common: add ppc64 build profiles and other ppc64 bits
This adds the build profiles for ppc64 targets as well as
modifications in other parts of the infra.

These targets are supported:

- ppc64le (glibc little endian elfv2)
- ppc64le-musl (musl little endian)
- ppc64-musl (musl big endian)

ELFv1 targets are explicitly not supported at this point.

Big endian musl supports ppc 970 or newer, while little endian
targets are set to a generic powerpc64le which effectively means
POWER8 and newer. Tuning is always set for POWER9, which is the
most likely target hardware. We also make sure AltiVec is always
on, because it is supported on all hardware we target.

[ci skip]
2019-01-05 23:38:00 +01:00
Linux-BSD db35a1e9a1
Add variables to fix cross compiling rust for mips*
Closes: #5259 [via git-merge-pr]
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2018-12-03 09:11:48 +01:00
Rasmus Thomsen 9141df9698 cross-profiles: set XBPS_CROSS_RUST_FLAGS&XBPS_CROSS_RUST_TARGET
only added to platforms which support rust
2018-10-15 08:20:10 +02:00
hipperson0 fb26ec4a5b New package: cross-mips-linux-muslhf-0.24 2017-11-24 10:11:23 +01:00
Jürgen Buchmüller 272114cd05 xbps-src: trying to fix FFLAGS construction
This still isn't perfect. When the common/xbps-src/shutils/chroot.sh
function chroot_init() is called, the value for $XBPS_FFLAGS, which is
defined in common/build-profiles/bootstrap.sh, is empty.

Put the immediate value into the generated /etc/xbps/xbps-src.conf
file until someone finds out where passing the value of $XBPS_FFLAGS
throughout the scripts is missing.
2017-03-08 17:36:22 +01:00
Juan RP 2defe2ff17 cross-profiles: get rid of musl-gnulibfix (unused). 2016-04-27 16:55:16 +02:00
Juan RP b722ed3c8b cross-profiles: simplify and rename some of them to match XBPS_TARGET_MACHINE.
- XBPS_TARGET_ARCH var renamed to XBPS_TARGET_MACHINE (gets rid of an extra var).
- Renamed cross profiles to match XBPS_TARGET_MACHINE.
- Added symlinks to keep compatibility with old profiles.
2016-04-27 16:47:05 +02:00
Juan RP c85787ebf9 cross-profiles: mipselhf-musl: set XBPS_TARGET_MACHINE to mipselhf-musl.
... otherwise the triplet in gcc does not match.
2016-04-26 09:40:51 +02:00
Juan RP 14931d5ab2 cross-profiles/i686-musl: use defaults.
To disable hardening features this file should not be used.
2015-12-12 07:48:59 +01:00
Juan RP 0795d6a787 cross-profiles/README: sync with reality. 2015-11-18 09:34:57 +01:00
Andrea Brancaleoni d545ebe138 New cross-profile: armv5tel-musl 2015-09-21 09:00:45 +02:00
Juan RP 97bfe44ebe cross-profiles: added mipsel-musl target (MIPS32r2 LE SF) 2015-07-14 11:59:40 +02:00
Juan RP e890d87070 cross-profiles: added mipselhf-musl cross target. 2015-07-08 10:29:57 +02:00
Juan RP 537cdcb9e8 cross-arm-linux-gnueabihf7 -> cross-armv7l-linux-gnueabihf. 2015-05-17 08:33:09 +02:00
Juan RP b13f6e6fc5 cross-arm-linux-musleabi -> cross-arm-linux-musleabihf (for ARMv6 HF). 2015-05-17 08:15:41 +02:00
Juan RP 33a2ce7cb0 New package: cross-armv7l-linux-musleabihf for armv7hf-musl. 2015-05-17 08:01:04 +02:00
Juan RP e950a5d0c8 cross-profiles/aarch64-musl: -fstack-protector-strong works. 2015-05-02 12:05:12 +02:00
Juan RP dbf77e4dcd xbps-src: added support to cross compile for MIPS32 (r2, be, sf) with musl. 2015-05-02 05:56:12 +02:00
Juan RP 35004001d4 Remove cross mips pkgs with glibc. Nobody wants this really.
I'll import a cross pkg for MIPS that uses musl instead.
2015-05-02 05:16:32 +02:00
Juan RP 8da4192b04 common/cross-profiles/armv5te.sh: sync with current cross pkg. 2015-05-01 11:37:22 +02:00
Juan RP 240bdb088a cross-i686-pc-linux-gnu: update toolchain components and unbreak. 2015-04-11 10:29:52 +02:00
Christian Neukirchen 71fe1e30ff common/*-profiles/aarch64-musl.sh: add AArch64/ARMv8 musl profiles. 2015-03-30 18:33:43 +02:00
Christian Neukirchen 25bb572dbe common/*-profiles/aarch64.sh: add AArch64/ARMv8 glibc cross profile. 2015-03-30 18:33:43 +02:00
Christian Neukirchen 8f1abb9242 hooks/pre-configure/01-aarch64-override-config.sh: new hook. 2015-03-30 18:33:43 +02:00
Christian Neukirchen ae01380ba4 common/cross-profiles/config.sub: update to automake 1.15 version. 2015-03-30 18:33:43 +02:00
Juan RP 3cb08dd17b cross-profiles/i686-musl: also disable _FORTIFY_SOURCE. 2015-03-06 10:33:53 +01:00
Juan RP 020fa3827f cross-profiles/i686-musl: force disable SSP.
whrlpool/.libs/libcrypto_la-wp_block.o: In function `whirlpool_block':
/builddir/libressl-2.1.4/crypto/whrlpool/wp_block.c:634: undefined reference to `__stack_chk_fail_local'
2015-03-06 10:31:09 +01:00
Juan RP ee5d8644be cross-profiles/i686-musl: disable SSP completely. 2015-03-06 10:29:40 +01:00
Juan RP 3774e0e061 cross-profile: i686-musl: disable fstack-protector-strong for now.
crc32.lo: In function `crc32_combine_':
crc32.c:(.text+0x1d1): undefined reference to `__stack_chk_fail_local'
2015-03-06 10:28:26 +01:00
Juan RP 9000a1e907 cross-profiles: use working C{,XX}FLAGS for cross pkgs that use gcc-4.7.x. 2015-03-06 08:23:46 +01:00