name: gcc-base-meta modules: # Binutils - name: mingw-binutils-32bit sources: &BINUTILS_SOURCES - type: archive url: https://ftp.gnu.org/gnu/binutils/binutils-2.35.1.tar.lz sha256: b197db77e8e42ba04b968c5958e2cb1f8051537be09966b5bd37a1fe4f0a06a8 config-opts: - --target=i686-w64-mingw32 - --disable-werror - --enable-deterministic-archives - --enable-lto - --enable-plugins - --enable-relro - --with-system-zlib builddir: true only-arches: - i386 - x86_64 cleanup-platform: - "*" - name: mingw-binutils-64bit sources: *BINUTILS_SOURCES config-opts: - --target=x86_64-w64-mingw32 - --disable-werror - --enable-deterministic-archives - --enable-lto - --enable-plugins - --enable-relro - --with-system-zlib builddir: true only-arches: - x86_64 cleanup-platform: - "*" - name: cross-binutils sources: *BINUTILS_SOURCES config-opts: - --host=x86_64-unknown-linux - --build=x86_64-unknown-linux - --target=x86_64-unknown-linux - --disable-libdecnumber - --disable-readline - --disable-sim - --disable-werror - --enable-64-bit-bfd - --enable-deterministic-archives - --enable-gold - --enable-ld=default - --enable-lto - --enable-multiarch - --enable-multilib - --enable-plugins - --enable-relro=yes - --enable-shared - --enable-static - --enable-static-pie - --enable-targets=x86_64-pep - --enable-vtable-verify - --with-system-zlib - --with-lib-path=/usr/lib:/usr/lib32:/usr/lib/x86_64-linux-gnu:/usr/lib64:/app/lib:/app/lib32:/app/lib64 builddir: true post-install: - make -k -j$FLATPAK_BUILDER_N_JOBS check || true cleanup-platform: - "*" only-arches: - x86_64 # Glibc base headers - name: cross-prepare-rsync sources: - type: archive url: https://download.samba.org/pub/rsync/src/rsync-3.2.3.tar.gz sha256: becc3c504ceea499f4167a260040ccf4d9f2ef9499ad5683c179a697146ce50e no-autogen: true config-opts: - --disable-xxhash - --disable-zstd - --disable-lz4 cleanup-platform: - "*" - name: cross-prepare-glibc sources: - type: archive url: https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.34.tar.xz sha256: 903ec1334daba6a626688f799cc947b420cf6fc8ce83055313dc4e9978d64cd2 dest: kernel_headers buildsystem: simple build-commands: - cd kernel_headers; make -j$FLATPAK_BUILDER_N_JOBS mrproper - cd kernel_headers; make -j$FLATPAK_BUILDER_N_JOBS headers_check - cd kernel_headers; PATH=$PATH:/usr/tmp/usr/bin make -j$FLATPAK_BUILDER_N_JOBS INSTALL_HDR_PATH=/usr/tmp ARCH=x86_64 headers_install - cp -raPv /usr/tmp/include /usr && rm -rf /usr/tmp only-arches: - x86_64 cleanup-platform: - "*" - name: todo-32bit buildsystem: simple build-commands: - "false" only-arches: - i386