From e739a7e89a6282f735d91daeb0c213efe9c0b077 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 2 Oct 2023 01:11:29 +0200 Subject: examples: update toolchain --- examples/recipes/binutils@2.37.yml | 65 --------------- examples/recipes/binutils@2.41.yml | 65 +++++++++++++++ examples/recipes/busybox@1.34.0.yml | 62 --------------- examples/recipes/busybox@1.36.1.yml | 62 +++++++++++++++ examples/recipes/e2fsprogs@1.46.4.yml | 52 ------------ examples/recipes/e2fsprogs@1.47.0.yml | 52 ++++++++++++ examples/recipes/gcc-libs@11.2.0.yml | 31 -------- examples/recipes/gcc-libs@13.2.0.yml | 31 ++++++++ examples/recipes/gcc@11.2.0.yml | 124 ----------------------------- examples/recipes/gcc@13.2.0.yml | 124 +++++++++++++++++++++++++++++ examples/recipes/glibc@2.34.yml | 68 ---------------- examples/recipes/glibc@2.38.yml | 66 +++++++++++++++ examples/recipes/gmp@6.2.1.yml | 53 ------------ examples/recipes/gmp@6.3.0.yml | 53 ++++++++++++ examples/recipes/libgcc-initial@11.2.0.yml | 51 ------------ examples/recipes/libgcc-initial@13.2.0.yml | 51 ++++++++++++ examples/recipes/libgcc@11.2.0.yml | 32 -------- examples/recipes/libgcc@13.2.0.yml | 32 ++++++++ examples/recipes/mpc@1.2.1.yml | 57 ------------- examples/recipes/mpc@1.3.1.yml | 57 +++++++++++++ examples/recipes/mpfr@4.1.0.yml | 57 ------------- examples/recipes/mpfr@4.2.1.yml | 57 +++++++++++++ examples/recipes/zlib@1.2.11.yml | 50 ------------ examples/recipes/zlib@1.3.yml | 50 ++++++++++++ 24 files changed, 700 insertions(+), 702 deletions(-) delete mode 100644 examples/recipes/binutils@2.37.yml create mode 100644 examples/recipes/binutils@2.41.yml delete mode 100644 examples/recipes/busybox@1.34.0.yml create mode 100644 examples/recipes/busybox@1.36.1.yml delete mode 100644 examples/recipes/e2fsprogs@1.46.4.yml create mode 100644 examples/recipes/e2fsprogs@1.47.0.yml delete mode 100644 examples/recipes/gcc-libs@11.2.0.yml create mode 100644 examples/recipes/gcc-libs@13.2.0.yml delete mode 100644 examples/recipes/gcc@11.2.0.yml create mode 100644 examples/recipes/gcc@13.2.0.yml delete mode 100644 examples/recipes/glibc@2.34.yml create mode 100644 examples/recipes/glibc@2.38.yml delete mode 100644 examples/recipes/gmp@6.2.1.yml create mode 100644 examples/recipes/gmp@6.3.0.yml delete mode 100644 examples/recipes/libgcc-initial@11.2.0.yml create mode 100644 examples/recipes/libgcc-initial@13.2.0.yml delete mode 100644 examples/recipes/libgcc@11.2.0.yml create mode 100644 examples/recipes/libgcc@13.2.0.yml delete mode 100644 examples/recipes/mpc@1.2.1.yml create mode 100644 examples/recipes/mpc@1.3.1.yml delete mode 100644 examples/recipes/mpfr@4.1.0.yml create mode 100644 examples/recipes/mpfr@4.2.1.yml delete mode 100644 examples/recipes/zlib@1.2.11.yml create mode 100644 examples/recipes/zlib@1.3.yml diff --git a/examples/recipes/binutils@2.37.yml b/examples/recipes/binutils@2.37.yml deleted file mode 100644 index b3afa92..0000000 --- a/examples/recipes/binutils@2.37.yml +++ /dev/null @@ -1,65 +0,0 @@ -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.xz' - sha256: '820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz - - configure: - args: - host: 'platform' - target: 'platform' - inherit: - task: 'unpack' - build_depends: - - recipe: 'toolchain' - task: 'build_depends' - depends: - - recipe: 'toolchain' - task: 'depends' - run: | - mkdir {{pn}}-build - cd {{pn}}-build - ../{{pn}}-{{pv}}/configure \ - --build={{build.gnu_triplet}} \ - --host={{host.gnu_triplet}} \ - --target={{target.gnu_triplet}} \ - --prefix={{host.prefix}} \ - --with-sysroot={{host_to_target.sysroot}} \ - --enable-libssp \ - --enable-deterministic-archives \ - --enable-plugins \ - --disable-bootstrap \ - --disable-multilib \ - --disable-werror \ - --disable-nls \ - --disable-sim \ - --disable-gdb - find -name config.log -delete - - compile: - args: - host: 'platform' - target: 'platform' - inherit: - task: 'configure' - run: | - cd {{pn}}-build - make - find -name config.log -delete - - install: - args: - host: 'platform' - target: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'toolchain' - task: 'depends' - run: | - cd {{pn}}-build - make DESTDIR={{destdir}} install diff --git a/examples/recipes/binutils@2.41.yml b/examples/recipes/binutils@2.41.yml new file mode 100644 index 0000000..d6271a9 --- /dev/null +++ b/examples/recipes/binutils@2.41.yml @@ -0,0 +1,65 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: 'ae9a5789e23459e59606e6714723f2d3ffc31c03174191ef0d015bdf06007450' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --target={{target.gnu_triplet}} \ + --prefix={{host.prefix}} \ + --with-sysroot={{host_to_target.sysroot}} \ + --enable-libssp \ + --enable-deterministic-archives \ + --enable-plugins \ + --disable-bootstrap \ + --disable-multilib \ + --disable-werror \ + --disable-nls \ + --disable-sim \ + --disable-gdb + find -name config.log -delete + + compile: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + find -name config.log -delete + + install: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install diff --git a/examples/recipes/busybox@1.34.0.yml b/examples/recipes/busybox@1.34.0.yml deleted file mode 100644 index bb62dc6..0000000 --- a/examples/recipes/busybox@1.34.0.yml +++ /dev/null @@ -1,62 +0,0 @@ -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.bz2' - sha256: 'ec8d1615edb045b83b81966604759c4d4ac921434ab4011da604f629c06074ce' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.bz2 - - - configure: - inherit: - task: 'unpack' - run: | - mkdir {{pn}}-build - cd {{pn}}-build - make \ - -f ../{{pn}}-{{pv}}/Makefile \ - KBUILD_SRC=../{{pn}}-{{pv}} \ - defconfig - - compile: - args: - host: 'platform' - inherit: - task: 'configure' - build_depends: - - recipe: 'toolchain' - task: 'build_depends' - depends: - - recipe: 'toolchain' - task: 'depends' - run: | - cd {{pn}}-build - make \ - ARCH={{host.karch}} \ - CROSS_COMPILE={{cross_compile}} \ - EXTRA_CFLAGS='-DBB_EXTRA_VERSION=""' \ - {{pn}} busybox.links - sed -i \ - -e 's@^/usr@@' \ - -e 's@^/sbin@/bin@' \ - {{pn}}.links - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'toolchain' - task: 'depends' - run: | - cd {{pn}}-build - make \ - ARCH={{host.karch}} \ - CROSS_COMPILE={{cross_compile}} \ - EXTRA_CFLAGS='-DBB_EXTRA_VERSION=""' \ - CONFIG_PREFIX={{destdir}}{{host.prefix}} \ - install - rm {{destdir}}{{host.prefix}}/bin/strings diff --git a/examples/recipes/busybox@1.36.1.yml b/examples/recipes/busybox@1.36.1.yml new file mode 100644 index 0000000..abed443 --- /dev/null +++ b/examples/recipes/busybox@1.36.1.yml @@ -0,0 +1,62 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.bz2' + sha256: 'b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.bz2 + + + configure: + inherit: + task: 'unpack' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + make \ + -f ../{{pn}}-{{pv}}/Makefile \ + KBUILD_SRC=../{{pn}}-{{pv}} \ + defconfig + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{pn}}-build + make \ + ARCH={{host.karch}} \ + CROSS_COMPILE={{cross_compile}} \ + EXTRA_CFLAGS='-DBB_EXTRA_VERSION=""' \ + {{pn}} busybox.links + sed -i \ + -e 's@^/usr@@' \ + -e 's@^/sbin@/bin@' \ + {{pn}}.links + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{pn}}-build + make \ + ARCH={{host.karch}} \ + CROSS_COMPILE={{cross_compile}} \ + EXTRA_CFLAGS='-DBB_EXTRA_VERSION=""' \ + CONFIG_PREFIX={{destdir}}{{host.prefix}} \ + install + rm {{destdir}}{{host.prefix}}/bin/strings diff --git a/examples/recipes/e2fsprogs@1.46.4.yml b/examples/recipes/e2fsprogs@1.46.4.yml deleted file mode 100644 index 6f308fa..0000000 --- a/examples/recipes/e2fsprogs@1.46.4.yml +++ /dev/null @@ -1,52 +0,0 @@ -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.xz' - sha256: 'b11042533c1b1dcf17512f0da48e05b0c573dada1dd8b762864d10f4dc399713' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz - - configure: - args: - host: 'platform' - inherit: - task: 'unpack' - build_depends: - - recipe: 'toolchain' - task: 'build_depends' - depends: - - recipe: 'toolchain' - task: 'depends' - run: | - mkdir {{pn}}-build - cd {{pn}}-build - ../{{pn}}-{{pv}}/configure \ - --build={{build.gnu_triplet}} \ - --host={{host.gnu_triplet}} \ - --prefix={{host.prefix}} - find -name config.log -delete - - compile: - args: - host: 'platform' - inherit: - task: 'configure' - run: | - cd {{pn}}-build - make - find -name config.log -delete - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'toolchain' - task: 'depends' - run: | - cd {{pn}}-build - make DESTDIR={{destdir}} install - diff --git a/examples/recipes/e2fsprogs@1.47.0.yml b/examples/recipes/e2fsprogs@1.47.0.yml new file mode 100644 index 0000000..9925772 --- /dev/null +++ b/examples/recipes/e2fsprogs@1.47.0.yml @@ -0,0 +1,52 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: '144af53f2bbd921cef6f8bea88bb9faddca865da3fbc657cc9b4d2001097d5db' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} + find -name config.log -delete + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + find -name config.log -delete + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install + diff --git a/examples/recipes/gcc-libs@11.2.0.yml b/examples/recipes/gcc-libs@11.2.0.yml deleted file mode 100644 index 5320d29..0000000 --- a/examples/recipes/gcc-libs@11.2.0.yml +++ /dev/null @@ -1,31 +0,0 @@ -meta: - name: 'gcc' -tasks: - compile: - args: - host: 'platform' - inherit: - recipe: 'libgcc' - task: 'compile' - args: - host: 'build' - target: 'host' - run: | - cd {{pn}}-build - make all-target-libatomic all-target-libgomp all-target-libquadmath all-target-libstdc++-v3 - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - default: - path: 'sysroot' - run: | - cd {{pn}}-build - make DESTDIR={{destdir}}/install install-target-libgcc install-target-libatomic install-target-libgomp install-target-libquadmath install-target-libstdc++-v3 - rm -r {{destdir}}/install{{build.prefix}}/lib/gcc - mv -T {{destdir}}/install/{{build_to_host.sysroot}} {{destdir}}/sysroot - cp -al {{destdir}}/install{{build.prefix}}/* {{destdir}}/sysroot{{host.prefix}} - rm {{destdir}}/sysroot{{host.prefix}}/lib/*.la diff --git a/examples/recipes/gcc-libs@13.2.0.yml b/examples/recipes/gcc-libs@13.2.0.yml new file mode 100644 index 0000000..5320d29 --- /dev/null +++ b/examples/recipes/gcc-libs@13.2.0.yml @@ -0,0 +1,31 @@ +meta: + name: 'gcc' +tasks: + compile: + args: + host: 'platform' + inherit: + recipe: 'libgcc' + task: 'compile' + args: + host: 'build' + target: 'host' + run: | + cd {{pn}}-build + make all-target-libatomic all-target-libgomp all-target-libquadmath all-target-libstdc++-v3 + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + path: 'sysroot' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}}/install install-target-libgcc install-target-libatomic install-target-libgomp install-target-libquadmath install-target-libstdc++-v3 + rm -r {{destdir}}/install{{build.prefix}}/lib/gcc + mv -T {{destdir}}/install/{{build_to_host.sysroot}} {{destdir}}/sysroot + cp -al {{destdir}}/install{{build.prefix}}/* {{destdir}}/sysroot{{host.prefix}} + rm {{destdir}}/sysroot{{host.prefix}}/lib/*.la diff --git a/examples/recipes/gcc@11.2.0.yml b/examples/recipes/gcc@11.2.0.yml deleted file mode 100644 index 41a2bf6..0000000 --- a/examples/recipes/gcc@11.2.0.yml +++ /dev/null @@ -1,124 +0,0 @@ -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.xz' - sha256: 'd08edc536b54c372a1010ff6619dd274c0f1603aa49212ba20f7aa2cda36fa8b' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz - - sed -i -e 's@^MULTILIB_OSDIRNAMES@# &@' {{pn}}-{{pv}}/gcc/config/*/t-* - - header-stubs: - args: - host: 'platform' - target: 'platform' - output: - default: {} - run: | - if {{not host_to_target.is_same}}; then - mkdir -p {{destdir}}{{target.prefix}}/include - touch {{destdir}}{{target.prefix}}/include/limits.h - fi - - configure: - args: - host: 'platform' - target: 'platform' - inherit: - task: 'unpack' - build_depends: - - recipe: 'toolchain' - task: 'build_depends' - - recipe: 'binutils' - task: 'install' - args: - target: 'target' - depends: - - recipe: 'toolchain' - task: 'depends' - - recipe: 'mpc' - task: 'install' - - recipe: 'zlib' - task: 'install' - - task: 'header-stubs' - noinherit: true - run: | - export CXX_FOR_TARGET="$CXX_FOR_TARGET -nostdinc++" - - mkdir {{pn}}-build - cd {{pn}}-build - ../{{pn}}-{{pv}}/configure \ - --build={{build.gnu_triplet}} \ - --host={{host.gnu_triplet}} \ - --target={{target.gnu_triplet}} \ - --prefix={{host.prefix}} \ - --libdir={{host.prefix}}/lib \ - --libexecdir={{host.prefix}}/lib \ - --with-sysroot={{host_to_target.sysroot}} \ - --with-build-sysroot={{sysroot}} \ - --with-native-system-header-dir={{target.prefix}}/include \ - --with-toolexeclibdir={{host_to_target.sysroot}}{{target.prefix}}/lib \ - --with-gxx-include-dir={{host_to_target.sysroot}}{{target.prefix}}/include/c++/"$(cat ../{{pn}}-{{pv}}/gcc/BASE-VER)" \ - --with-gnu-ld \ - --enable-shared \ - --enable-languages=c,c++ \ - --enable-threads=posix \ - --disable-multilib \ - --enable-c99 \ - --enable-long-long \ - --enable-symvers=gnu \ - --enable-libstdcxx-pch \ - --without-local-prefix \ - --disable-install-libiberty \ - --disable-libssp \ - --enable-libitm \ - --enable-lto \ - --disable-bootstrap \ - --with-system-zlib \ - --with-linker-hash-style=gnu \ - --enable-linker-build-id \ - --with-ppl=no \ - --with-cloog=no \ - --enable-checking=release \ - --enable-cheaders=c_global \ - --without-isl \ - --with-system-zlib \ - --enable-standard-branch-protection \ - --with-glibc-version=2.28 \ - --enable-initfini-array \ - --enable-__cxa_atexit - find -name config.log -delete - - compile: - args: - host: 'platform' - target: 'platform' - inherit: - task: 'configure' - depends: - - task: 'header-stubs' - noinherit: true - run: | - cd {{pn}}-build - make all-host - find -name config.log -delete - - install: - args: - host: 'platform' - target: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'binutils' - task: 'install' - - recipe: 'mpc' - task: 'install' - - recipe: 'zlib' - task: 'install' - run: | - cd {{pn}}-build - make DESTDIR={{destdir}} install-host - diff --git a/examples/recipes/gcc@13.2.0.yml b/examples/recipes/gcc@13.2.0.yml new file mode 100644 index 0000000..f59fd41 --- /dev/null +++ b/examples/recipes/gcc@13.2.0.yml @@ -0,0 +1,124 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: 'e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + sed -i -e 's@^MULTILIB_OSDIRNAMES@# &@' {{pn}}-{{pv}}/gcc/config/*/t-* + + header-stubs: + args: + host: 'platform' + target: 'platform' + output: + default: {} + run: | + if {{not host_to_target.is_same}}; then + mkdir -p {{destdir}}{{target.prefix}}/include + touch {{destdir}}{{target.prefix}}/include/limits.h + fi + + configure: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + - recipe: 'binutils' + task: 'install' + args: + target: 'target' + depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'mpc' + task: 'install' + - recipe: 'zlib' + task: 'install' + - task: 'header-stubs' + noinherit: true + run: | + export CXX_FOR_TARGET="$CXX_FOR_TARGET -nostdinc++" + + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --target={{target.gnu_triplet}} \ + --prefix={{host.prefix}} \ + --libdir={{host.prefix}}/lib \ + --libexecdir={{host.prefix}}/lib \ + --with-sysroot={{host_to_target.sysroot}} \ + --with-build-sysroot={{sysroot}} \ + --with-native-system-header-dir={{target.prefix}}/include \ + --with-toolexeclibdir={{host_to_target.sysroot}}{{target.prefix}}/lib \ + --with-gxx-include-dir={{host_to_target.sysroot}}{{target.prefix}}/include/c++/"$(cat ../{{pn}}-{{pv}}/gcc/BASE-VER)" \ + --with-gnu-ld \ + --enable-shared \ + --enable-languages=c,c++ \ + --enable-threads=posix \ + --disable-multilib \ + --enable-c99 \ + --enable-long-long \ + --enable-symvers=gnu \ + --enable-libstdcxx-pch \ + --without-local-prefix \ + --disable-install-libiberty \ + --disable-libssp \ + --enable-libitm \ + --enable-lto \ + --disable-bootstrap \ + --with-system-zlib \ + --with-linker-hash-style=gnu \ + --enable-linker-build-id \ + --with-ppl=no \ + --with-cloog=no \ + --enable-checking=release \ + --enable-cheaders=c_global \ + --without-isl \ + --with-system-zlib \ + --enable-standard-branch-protection \ + --with-glibc-version=2.28 \ + --enable-initfini-array \ + --enable-__cxa_atexit + find -name config.log -delete + + compile: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'configure' + depends: + - task: 'header-stubs' + noinherit: true + run: | + cd {{pn}}-build + make all-host + find -name config.log -delete + + install: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'binutils' + task: 'install' + - recipe: 'mpc' + task: 'install' + - recipe: 'zlib' + task: 'install' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install-host + diff --git a/examples/recipes/glibc@2.34.yml b/examples/recipes/glibc@2.34.yml deleted file mode 100644 index 98016cd..0000000 --- a/examples/recipes/glibc@2.34.yml +++ /dev/null @@ -1,68 +0,0 @@ -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.xz' - sha256: '44d26a1fe20b8853a48f470ead01e4279e869ac149b195dda4e44a195d981ab2' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz - - configure: - args: - host: 'platform' - inherit: - task: 'unpack' - build_depends: - - recipe: 'gcc' - task: 'install' - - recipe: 'libgcc-initial' - task: 'install' - depends: - - recipe: 'linux-uapi-headers' - task: 'install' - run: | - export BUILD_CC="$CC_FOR_BUILD" - - mkdir {{pn}}-build - cd {{pn}}-build - ../{{pn}}-{{pv}}/configure \ - --build={{build.gnu_triplet}} \ - --host={{host.gnu_triplet}} \ - --prefix={{host.prefix}} \ - --includedir={{host.prefix}}/include \ - --libdir={{host.prefix}}/lib \ - --libexecdir={{host.prefix}}/lib \ - --enable-add-ons \ - --enable-obsolete-rpc \ - --enable-kernel=2.6.32 \ - --enable-bind-now \ - --disable-profile \ - --enable-stackguard-randomization \ - --enable-lock-elision \ - --disable-werror - - echo slibdir={{host.prefix}}/lib >> configparms - echo sbindir={{host.prefix}}/bin >> configparms - echo rootsbindir={{host.prefix}}/bin >> configparms - - compile: - args: - host: 'platform' - inherit: - task: 'configure' - run: | - cd {{pn}}-build - make - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'linux-uapi-headers' - task: 'install' - run: | - cd {{pn}}-build - make install_root={{destdir}} install diff --git a/examples/recipes/glibc@2.38.yml b/examples/recipes/glibc@2.38.yml new file mode 100644 index 0000000..12fb7a4 --- /dev/null +++ b/examples/recipes/glibc@2.38.yml @@ -0,0 +1,66 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: 'fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'gcc' + task: 'install' + - recipe: 'libgcc-initial' + task: 'install' + depends: + - recipe: 'linux-uapi-headers' + task: 'install' + run: | + export BUILD_CC="$CC_FOR_BUILD" + + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} \ + --includedir={{host.prefix}}/include \ + --libdir={{host.prefix}}/lib \ + --libexecdir={{host.prefix}}/lib \ + --enable-bind-now \ + --enable-fortify-source \ + --enable-kernel=4.4 \ + --disable-nscd \ + --disable-profile \ + --disable-werror + + echo slibdir={{host.prefix}}/lib >> configparms + echo sbindir={{host.prefix}}/bin >> configparms + echo rootsbindir={{host.prefix}}/bin >> configparms + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'linux-uapi-headers' + task: 'install' + run: | + cd {{pn}}-build + make install_root={{destdir}} install diff --git a/examples/recipes/gmp@6.2.1.yml b/examples/recipes/gmp@6.2.1.yml deleted file mode 100644 index 0226fd9..0000000 --- a/examples/recipes/gmp@6.2.1.yml +++ /dev/null @@ -1,53 +0,0 @@ -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.lz' - sha256: '2c7f4f0d370801b2849c48c9ef3f59553b5f1d3791d070cffb04599f9fc67b41' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.lz - - configure: - args: - host: 'platform' - inherit: - task: 'unpack' - build_depends: - - recipe: 'toolchain' - task: 'build_depends' - depends: - - recipe: 'toolchain' - task: 'depends' - run: | - mkdir {{pn}}-build - cd {{pn}}-build - ../{{pn}}-{{pv}}/configure \ - --build={{build.gnu_triplet}} \ - --host={{host.gnu_triplet}} \ - --prefix={{host.prefix}} - find -name config.log -delete - - compile: - args: - host: 'platform' - inherit: - task: 'configure' - run: | - cd {{pn}}-build - make - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'toolchain' - task: 'depends' - run: | - cd {{pn}}-build - make DESTDIR={{destdir}} install - rm {{destdir}}{{host.prefix}}/lib/*.a - rm {{destdir}}{{host.prefix}}/lib/*.la - diff --git a/examples/recipes/gmp@6.3.0.yml b/examples/recipes/gmp@6.3.0.yml new file mode 100644 index 0000000..8ff3385 --- /dev/null +++ b/examples/recipes/gmp@6.3.0.yml @@ -0,0 +1,53 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: 'a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} + find -name config.log -delete + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + rm {{destdir}}{{host.prefix}}/lib/*.la + diff --git a/examples/recipes/libgcc-initial@11.2.0.yml b/examples/recipes/libgcc-initial@11.2.0.yml deleted file mode 100644 index 43f6f45..0000000 --- a/examples/recipes/libgcc-initial@11.2.0.yml +++ /dev/null @@ -1,51 +0,0 @@ -meta: - name: 'gcc' -tasks: - configure: - args: - host: 'platform' - target: 'platform' - inherit: - recipe: 'gcc' - task: 'compile' - depends: - - recipe: 'gcc' - task: 'header-stubs' - run: | - cd {{pn}}-build - make configure-target-libgcc - - # A hack borrowed from OpenEmbedded: - # We can build an initial libgcc without having to rebuild the whole gcc - # afterwards by manipulating the Makefile - sed -i -r \ - -e 's@^(INHIBIT_LIBC_CFLAGS =).*@\1 -Dinhibit_libc@' \ - gcc/libgcc.mvars - sed -i -r \ - -e 's@^(thread_header =).*@\1 gthr-single.h@' \ - -e 's@^(enable_shared =).*@\1 no@' \ - {{target.gnu_triplet}}/libgcc/Makefile - - compile: - args: - host: 'platform' - target: 'platform' - inherit: - task: 'configure' - run: | - cd {{pn}}-build - make all-target-libgcc - - install: - args: - host: 'platform' - target: 'platform' - inherit: - task: 'compile' - output: - default: {} - run: | - cd {{pn}}-build - make DESTDIR={{destdir}} install-target-libgcc - - ln -s libgcc.a {{destdir}}{{host.prefix}}/lib/gcc/{{target.gnu_triplet}}/"$(cat ../{{pn}}-{{pv}}/gcc/BASE-VER)"/libgcc_eh.a diff --git a/examples/recipes/libgcc-initial@13.2.0.yml b/examples/recipes/libgcc-initial@13.2.0.yml new file mode 100644 index 0000000..43f6f45 --- /dev/null +++ b/examples/recipes/libgcc-initial@13.2.0.yml @@ -0,0 +1,51 @@ +meta: + name: 'gcc' +tasks: + configure: + args: + host: 'platform' + target: 'platform' + inherit: + recipe: 'gcc' + task: 'compile' + depends: + - recipe: 'gcc' + task: 'header-stubs' + run: | + cd {{pn}}-build + make configure-target-libgcc + + # A hack borrowed from OpenEmbedded: + # We can build an initial libgcc without having to rebuild the whole gcc + # afterwards by manipulating the Makefile + sed -i -r \ + -e 's@^(INHIBIT_LIBC_CFLAGS =).*@\1 -Dinhibit_libc@' \ + gcc/libgcc.mvars + sed -i -r \ + -e 's@^(thread_header =).*@\1 gthr-single.h@' \ + -e 's@^(enable_shared =).*@\1 no@' \ + {{target.gnu_triplet}}/libgcc/Makefile + + compile: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make all-target-libgcc + + install: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'compile' + output: + default: {} + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install-target-libgcc + + ln -s libgcc.a {{destdir}}{{host.prefix}}/lib/gcc/{{target.gnu_triplet}}/"$(cat ../{{pn}}-{{pv}}/gcc/BASE-VER)"/libgcc_eh.a diff --git a/examples/recipes/libgcc@11.2.0.yml b/examples/recipes/libgcc@11.2.0.yml deleted file mode 100644 index 96a2ce8..0000000 --- a/examples/recipes/libgcc@11.2.0.yml +++ /dev/null @@ -1,32 +0,0 @@ -meta: - name: 'gcc' -tasks: - compile: - args: - host: 'platform' - target: 'platform' - inherit: - recipe: 'gcc' - task: 'compile' - depends: - - recipe: 'glibc' - task: 'install' - args: - host: 'target' - run: | - cd {{pn}}-build - make all-target-libgcc - - install: - args: - host: 'platform' - target: 'platform' - inherit: - task: 'compile' - output: - default: {} - run: | - cd {{pn}}-build - make DESTDIR={{destdir}} install-target-libgcc - rm {{destdir}}{{host_to_target.sysroot}}{{target.prefix}}/lib/libgcc_s.so* - rmdir -p --ignore-fail-on-non-empty {{destdir}}{{host_to_target.sysroot}}{{target.prefix}}/lib diff --git a/examples/recipes/libgcc@13.2.0.yml b/examples/recipes/libgcc@13.2.0.yml new file mode 100644 index 0000000..96a2ce8 --- /dev/null +++ b/examples/recipes/libgcc@13.2.0.yml @@ -0,0 +1,32 @@ +meta: + name: 'gcc' +tasks: + compile: + args: + host: 'platform' + target: 'platform' + inherit: + recipe: 'gcc' + task: 'compile' + depends: + - recipe: 'glibc' + task: 'install' + args: + host: 'target' + run: | + cd {{pn}}-build + make all-target-libgcc + + install: + args: + host: 'platform' + target: 'platform' + inherit: + task: 'compile' + output: + default: {} + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install-target-libgcc + rm {{destdir}}{{host_to_target.sysroot}}{{target.prefix}}/lib/libgcc_s.so* + rmdir -p --ignore-fail-on-non-empty {{destdir}}{{host_to_target.sysroot}}{{target.prefix}}/lib diff --git a/examples/recipes/mpc@1.2.1.yml b/examples/recipes/mpc@1.2.1.yml deleted file mode 100644 index f5afb74..0000000 --- a/examples/recipes/mpc@1.2.1.yml +++ /dev/null @@ -1,57 +0,0 @@ -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.gz' - sha256: '17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.gz - - configure: - args: - host: 'platform' - inherit: - task: 'unpack' - build_depends: - - recipe: 'toolchain' - task: 'build_depends' - depends: - - recipe: 'toolchain' - task: 'depends' - - recipe: 'mpfr' - task: 'install' - run: | - mkdir {{pn}}-build - cd {{pn}}-build - ../{{pn}}-{{pv}}/configure \ - --build={{build.gnu_triplet}} \ - --host={{host.gnu_triplet}} \ - --prefix={{host.prefix}} - find -name config.log -delete - - compile: - args: - host: 'platform' - inherit: - task: 'configure' - run: | - cd {{pn}}-build - make - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'toolchain' - task: 'depends' - - recipe: 'mpfr' - task: 'install' - run: | - cd {{pn}}-build - make DESTDIR={{destdir}} install - rm {{destdir}}{{host.prefix}}/lib/*.a - rm {{destdir}}{{host.prefix}}/lib/*.la - diff --git a/examples/recipes/mpc@1.3.1.yml b/examples/recipes/mpc@1.3.1.yml new file mode 100644 index 0000000..835b0af --- /dev/null +++ b/examples/recipes/mpc@1.3.1.yml @@ -0,0 +1,57 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.gz' + sha256: 'ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.gz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'mpfr' + task: 'install' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} + find -name config.log -delete + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'mpfr' + task: 'install' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + rm {{destdir}}{{host.prefix}}/lib/*.la + diff --git a/examples/recipes/mpfr@4.1.0.yml b/examples/recipes/mpfr@4.1.0.yml deleted file mode 100644 index de9e536..0000000 --- a/examples/recipes/mpfr@4.1.0.yml +++ /dev/null @@ -1,57 +0,0 @@ -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.xz' - sha256: '0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz - - configure: - args: - host: 'platform' - inherit: - task: 'unpack' - build_depends: - - recipe: 'toolchain' - task: 'build_depends' - depends: - - recipe: 'toolchain' - task: 'depends' - - recipe: 'gmp' - task: 'install' - run: | - mkdir {{pn}}-build - cd {{pn}}-build - ../{{pn}}-{{pv}}/configure \ - --build={{build.gnu_triplet}} \ - --host={{host.gnu_triplet}} \ - --prefix={{host.prefix}} - find -name config.log -delete - - compile: - args: - host: 'platform' - inherit: - task: 'configure' - run: | - cd {{pn}}-build - make - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'toolchain' - task: 'depends' - - recipe: 'gmp' - task: 'install' - run: | - cd {{pn}}-build - make DESTDIR={{destdir}} install - rm {{destdir}}{{host.prefix}}/lib/*.a - rm {{destdir}}{{host.prefix}}/lib/*.la - diff --git a/examples/recipes/mpfr@4.2.1.yml b/examples/recipes/mpfr@4.2.1.yml new file mode 100644 index 0000000..5747932 --- /dev/null +++ b/examples/recipes/mpfr@4.2.1.yml @@ -0,0 +1,57 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: '277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'gmp' + task: 'install' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} + find -name config.log -delete + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'gmp' + task: 'install' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + rm {{destdir}}{{host.prefix}}/lib/*.la + diff --git a/examples/recipes/zlib@1.2.11.yml b/examples/recipes/zlib@1.2.11.yml deleted file mode 100644 index 099b80c..0000000 --- a/examples/recipes/zlib@1.2.11.yml +++ /dev/null @@ -1,50 +0,0 @@ -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.gz' - sha256: 'c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.gz - - configure: - args: - host: 'platform' - inherit: - task: 'unpack' - build_depends: - - recipe: 'toolchain' - task: 'build_depends' - depends: - - recipe: 'toolchain' - task: 'depends' - run: | - mkdir {{pn}}-build - cd {{pn}}-build - ../{{pn}}-{{pv}}/configure \ - --prefix={{host.prefix}} - find -name configure.log -delete - - compile: - args: - host: 'platform' - inherit: - task: 'configure' - run: | - cd {{pn}}-build - make - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'toolchain' - task: 'depends' - run: | - cd {{pn}}-build - make DESTDIR={{destdir}} install - rm {{destdir}}{{host.prefix}}/lib/*.a - diff --git a/examples/recipes/zlib@1.3.yml b/examples/recipes/zlib@1.3.yml new file mode 100644 index 0000000..0102e74 --- /dev/null +++ b/examples/recipes/zlib@1.3.yml @@ -0,0 +1,50 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.gz' + sha256: 'ff0ba4c292013dbc27530b3a81e1f9a813cd39de01ca5e0f8bf355702efa593e' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.gz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --prefix={{host.prefix}} + find -name configure.log -delete + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + -- cgit v1.2.3