From c40a4dcdcf46a0c01c97cf294384088b761d1ddf Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 3 Nov 2021 17:15:36 +0100 Subject: examples: move version number to filename --- examples/recipes/binutils.yml | 67 ------------- examples/recipes/binutils@2.37.yml | 65 ++++++++++++ examples/recipes/busybox.yml | 64 ------------ examples/recipes/busybox@1.34.0.yml | 62 ++++++++++++ examples/recipes/e2fsprogs.yml | 54 ---------- examples/recipes/e2fsprogs@1.46.4.yml | 52 ++++++++++ examples/recipes/gcc-libs.yml | 32 ------ examples/recipes/gcc-libs@11.2.0.yml | 31 ++++++ examples/recipes/gcc.yml | 126 ------------------------ examples/recipes/gcc@11.2.0.yml | 124 +++++++++++++++++++++++ examples/recipes/glibc.yml | 70 ------------- examples/recipes/glibc@2.34.yml | 68 +++++++++++++ examples/recipes/gmp.yml | 55 ----------- examples/recipes/gmp@6.2.1.yml | 53 ++++++++++ examples/recipes/libgcc-initial.yml | 52 ---------- examples/recipes/libgcc-initial@11.2.0.yml | 51 ++++++++++ examples/recipes/libgcc.yml | 33 ------- examples/recipes/libgcc@11.2.0.yml | 32 ++++++ examples/recipes/linux-uapi-headers.yml | 22 ----- examples/recipes/linux-uapi-headers@5.10.66.yml | 21 ++++ examples/recipes/linux.yml | 61 ------------ examples/recipes/linux@5.10.66.yml | 59 +++++++++++ examples/recipes/make_ext4fs.yml | 44 --------- examples/recipes/make_ext4fs@2020-01-05.yml | 44 +++++++++ examples/recipes/mpc.yml | 59 ----------- examples/recipes/mpc@1.2.1.yml | 57 +++++++++++ examples/recipes/mpfr.yml | 59 ----------- examples/recipes/mpfr@4.1.0.yml | 57 +++++++++++ examples/recipes/zlib.yml | 52 ---------- examples/recipes/zlib@1.2.11.yml | 50 ++++++++++ 30 files changed, 826 insertions(+), 850 deletions(-) delete mode 100644 examples/recipes/binutils.yml create mode 100644 examples/recipes/binutils@2.37.yml delete mode 100644 examples/recipes/busybox.yml create mode 100644 examples/recipes/busybox@1.34.0.yml delete mode 100644 examples/recipes/e2fsprogs.yml create mode 100644 examples/recipes/e2fsprogs@1.46.4.yml delete mode 100644 examples/recipes/gcc-libs.yml create mode 100644 examples/recipes/gcc-libs@11.2.0.yml delete mode 100644 examples/recipes/gcc.yml create mode 100644 examples/recipes/gcc@11.2.0.yml delete mode 100644 examples/recipes/glibc.yml create mode 100644 examples/recipes/glibc@2.34.yml delete mode 100644 examples/recipes/gmp.yml create mode 100644 examples/recipes/gmp@6.2.1.yml delete mode 100644 examples/recipes/libgcc-initial.yml create mode 100644 examples/recipes/libgcc-initial@11.2.0.yml delete mode 100644 examples/recipes/libgcc.yml create mode 100644 examples/recipes/libgcc@11.2.0.yml delete mode 100644 examples/recipes/linux-uapi-headers.yml create mode 100644 examples/recipes/linux-uapi-headers@5.10.66.yml delete mode 100644 examples/recipes/linux.yml create mode 100644 examples/recipes/linux@5.10.66.yml delete mode 100644 examples/recipes/make_ext4fs.yml create mode 100644 examples/recipes/make_ext4fs@2020-01-05.yml delete mode 100644 examples/recipes/mpc.yml create mode 100644 examples/recipes/mpc@1.2.1.yml delete mode 100644 examples/recipes/mpfr.yml create mode 100644 examples/recipes/mpfr@4.1.0.yml delete mode 100644 examples/recipes/zlib.yml create mode 100644 examples/recipes/zlib@1.2.11.yml diff --git a/examples/recipes/binutils.yml b/examples/recipes/binutils.yml deleted file mode 100644 index d524596..0000000 --- a/examples/recipes/binutils.yml +++ /dev/null @@ -1,67 +0,0 @@ -meta: - version: '2.37' -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.37.yml b/examples/recipes/binutils@2.37.yml new file mode 100644 index 0000000..b3afa92 --- /dev/null +++ b/examples/recipes/binutils@2.37.yml @@ -0,0 +1,65 @@ +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/busybox.yml b/examples/recipes/busybox.yml deleted file mode 100644 index aa37687..0000000 --- a/examples/recipes/busybox.yml +++ /dev/null @@ -1,64 +0,0 @@ -meta: - version: '1.34.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.34.0.yml b/examples/recipes/busybox@1.34.0.yml new file mode 100644 index 0000000..bb62dc6 --- /dev/null +++ b/examples/recipes/busybox@1.34.0.yml @@ -0,0 +1,62 @@ +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/e2fsprogs.yml b/examples/recipes/e2fsprogs.yml deleted file mode 100644 index b8377f0..0000000 --- a/examples/recipes/e2fsprogs.yml +++ /dev/null @@ -1,54 +0,0 @@ -meta: - version: '1.46.4' -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.46.4.yml b/examples/recipes/e2fsprogs@1.46.4.yml new file mode 100644 index 0000000..6f308fa --- /dev/null +++ b/examples/recipes/e2fsprogs@1.46.4.yml @@ -0,0 +1,52 @@ +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/gcc-libs.yml b/examples/recipes/gcc-libs.yml deleted file mode 100644 index 54c34df..0000000 --- a/examples/recipes/gcc-libs.yml +++ /dev/null @@ -1,32 +0,0 @@ -meta: - name: 'gcc' - version: '11.2.0' -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@11.2.0.yml b/examples/recipes/gcc-libs@11.2.0.yml new file mode 100644 index 0000000..5320d29 --- /dev/null +++ b/examples/recipes/gcc-libs@11.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.yml b/examples/recipes/gcc.yml deleted file mode 100644 index 2911734..0000000 --- a/examples/recipes/gcc.yml +++ /dev/null @@ -1,126 +0,0 @@ -meta: - version: '11.2.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@11.2.0.yml b/examples/recipes/gcc@11.2.0.yml new file mode 100644 index 0000000..41a2bf6 --- /dev/null +++ b/examples/recipes/gcc@11.2.0.yml @@ -0,0 +1,124 @@ +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/glibc.yml b/examples/recipes/glibc.yml deleted file mode 100644 index e9fa405..0000000 --- a/examples/recipes/glibc.yml +++ /dev/null @@ -1,70 +0,0 @@ -meta: - version: '2.34' -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.34.yml b/examples/recipes/glibc@2.34.yml new file mode 100644 index 0000000..98016cd --- /dev/null +++ b/examples/recipes/glibc@2.34.yml @@ -0,0 +1,68 @@ +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/gmp.yml b/examples/recipes/gmp.yml deleted file mode 100644 index 9575edd..0000000 --- a/examples/recipes/gmp.yml +++ /dev/null @@ -1,55 +0,0 @@ -meta: - version: '6.2.1' -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.2.1.yml b/examples/recipes/gmp@6.2.1.yml new file mode 100644 index 0000000..0226fd9 --- /dev/null +++ b/examples/recipes/gmp@6.2.1.yml @@ -0,0 +1,53 @@ +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/libgcc-initial.yml b/examples/recipes/libgcc-initial.yml deleted file mode 100644 index fc047e8..0000000 --- a/examples/recipes/libgcc-initial.yml +++ /dev/null @@ -1,52 +0,0 @@ -meta: - name: 'gcc' - version: '11.2.0' -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@11.2.0.yml b/examples/recipes/libgcc-initial@11.2.0.yml new file mode 100644 index 0000000..43f6f45 --- /dev/null +++ b/examples/recipes/libgcc-initial@11.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.yml b/examples/recipes/libgcc.yml deleted file mode 100644 index 9d5eb3f..0000000 --- a/examples/recipes/libgcc.yml +++ /dev/null @@ -1,33 +0,0 @@ -meta: - name: 'gcc' - version: '11.2.0' -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@11.2.0.yml b/examples/recipes/libgcc@11.2.0.yml new file mode 100644 index 0000000..96a2ce8 --- /dev/null +++ b/examples/recipes/libgcc@11.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/linux-uapi-headers.yml b/examples/recipes/linux-uapi-headers.yml deleted file mode 100644 index fdd9a8e..0000000 --- a/examples/recipes/linux-uapi-headers.yml +++ /dev/null @@ -1,22 +0,0 @@ -meta: - name: 'linux' - version: '5.10.66' -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.xz' - sha256: '5dfa06bbbbd164b9ea669ec637b1e6d05fb5fea8ef3aeb6729f2cbcd0dfcc8a7' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz - - install: - args: - host: 'platform' - inherit: - task: 'unpack' - output: - default: {} - run: | - cd {{pn}}-{{pv}} - make INSTALL_HDR_PATH={{destdir}}{{host.prefix}} ARCH={{host.karch}} headers_install - diff --git a/examples/recipes/linux-uapi-headers@5.10.66.yml b/examples/recipes/linux-uapi-headers@5.10.66.yml new file mode 100644 index 0000000..27d7fc2 --- /dev/null +++ b/examples/recipes/linux-uapi-headers@5.10.66.yml @@ -0,0 +1,21 @@ +meta: + name: 'linux' +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: '5dfa06bbbbd164b9ea669ec637b1e6d05fb5fea8ef3aeb6729f2cbcd0dfcc8a7' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + install: + args: + host: 'platform' + inherit: + task: 'unpack' + output: + default: {} + run: | + cd {{pn}}-{{pv}} + make INSTALL_HDR_PATH={{destdir}}{{host.prefix}} ARCH={{host.karch}} headers_install + diff --git a/examples/recipes/linux.yml b/examples/recipes/linux.yml deleted file mode 100644 index a7f4394..0000000 --- a/examples/recipes/linux.yml +++ /dev/null @@ -1,61 +0,0 @@ -meta: - version: '5.10.66' -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.xz' - sha256: '5dfa06bbbbd164b9ea669ec637b1e6d05fb5fea8ef3aeb6729f2cbcd0dfcc8a7' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz - - configure: - args: - host: 'platform' - inherit: - task: 'unpack' - build_depends: - - recipe: 'gcc' - task: 'install' - run: | - mkdir {{pn}}-build - cd {{pn}}-build - make \ - -f ../{{pn}}-{{pv}}/Makefile \ - ARCH={{host.karch}} \ - CROSS_COMPILE={{cross_compile}} \ - defconfig - - compile: - args: - host: 'platform' - inherit: - task: 'configure' - run: | - export KBUILD_BUILD_TIMESTAMP="@${SOURCE_DATE_EPOCH}" - - cd {{pn}}-build - make \ - ARCH={{host.karch}} \ - CROSS_COMPILE={{cross_compile}} \ - all - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - boot: - path: 'boot' - modules: - path: 'modules' - run: | - cd {{pn}}-build - mkdir -p {{destdir}}/boot - make \ - ARCH={{host.karch}} \ - CROSS_COMPILE={{cross_compile}} \ - INSTALL_PATH={{destdir}}/boot \ - INSTALL_MOD_PATH={{destdir}}/modules{{host.prefix}} \ - DEPMOD=true \ - install modules_install diff --git a/examples/recipes/linux@5.10.66.yml b/examples/recipes/linux@5.10.66.yml new file mode 100644 index 0000000..22b17c2 --- /dev/null +++ b/examples/recipes/linux@5.10.66.yml @@ -0,0 +1,59 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: '5dfa06bbbbd164b9ea669ec637b1e6d05fb5fea8ef3aeb6729f2cbcd0dfcc8a7' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'gcc' + task: 'install' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + make \ + -f ../{{pn}}-{{pv}}/Makefile \ + ARCH={{host.karch}} \ + CROSS_COMPILE={{cross_compile}} \ + defconfig + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + export KBUILD_BUILD_TIMESTAMP="@${SOURCE_DATE_EPOCH}" + + cd {{pn}}-build + make \ + ARCH={{host.karch}} \ + CROSS_COMPILE={{cross_compile}} \ + all + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + boot: + path: 'boot' + modules: + path: 'modules' + run: | + cd {{pn}}-build + mkdir -p {{destdir}}/boot + make \ + ARCH={{host.karch}} \ + CROSS_COMPILE={{cross_compile}} \ + INSTALL_PATH={{destdir}}/boot \ + INSTALL_MOD_PATH={{destdir}}/modules{{host.prefix}} \ + DEPMOD=true \ + install modules_install diff --git a/examples/recipes/make_ext4fs.yml b/examples/recipes/make_ext4fs.yml deleted file mode 100644 index 53fed98..0000000 --- a/examples/recipes/make_ext4fs.yml +++ /dev/null @@ -1,44 +0,0 @@ -meta: - version: '2020-01-05-5c201be7d72aff735da27e17c29852e0cefe3e52' -tasks: - unpack: - fetch: - - name: '{{pn}}-{{pv}}.tar.gz' - sha256: 'bfe984cc757c676639090a5b34bdfc359cdef9b723de77efbce590872dce4132' - run: | - tar xf {{dldir}}/{{pn}}-{{pv}}.tar.gz - - compile: - args: - host: 'platform' - build_depends: - - recipe: 'toolchain' - task: 'build_depends' - depends: - - recipe: 'toolchain' - task: 'depends' - - recipe: 'zlib' - task: 'install' - inherit: - task: 'unpack' - run: | - cd {{pn}}-{{pv}} - make - - install: - args: - host: 'platform' - inherit: - task: 'compile' - output: - default: - runtime_depends: - - recipe: 'toolchain' - task: 'depends' - - recipe: 'zlib' - task: 'install' - run: | - cd {{pn}}-{{pv}} - install -d {{destdir}}{{host.prefix}}/bin - install -m755 make_ext4fs {{destdir}}{{host.prefix}}/bin/ - diff --git a/examples/recipes/make_ext4fs@2020-01-05.yml b/examples/recipes/make_ext4fs@2020-01-05.yml new file mode 100644 index 0000000..53fed98 --- /dev/null +++ b/examples/recipes/make_ext4fs@2020-01-05.yml @@ -0,0 +1,44 @@ +meta: + version: '2020-01-05-5c201be7d72aff735da27e17c29852e0cefe3e52' +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.gz' + sha256: 'bfe984cc757c676639090a5b34bdfc359cdef9b723de77efbce590872dce4132' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.gz + + compile: + args: + host: 'platform' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'zlib' + task: 'install' + inherit: + task: 'unpack' + run: | + cd {{pn}}-{{pv}} + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'zlib' + task: 'install' + run: | + cd {{pn}}-{{pv}} + install -d {{destdir}}{{host.prefix}}/bin + install -m755 make_ext4fs {{destdir}}{{host.prefix}}/bin/ + diff --git a/examples/recipes/mpc.yml b/examples/recipes/mpc.yml deleted file mode 100644 index 8a4aadf..0000000 --- a/examples/recipes/mpc.yml +++ /dev/null @@ -1,59 +0,0 @@ -meta: - version: '1.2.1' -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.2.1.yml b/examples/recipes/mpc@1.2.1.yml new file mode 100644 index 0000000..f5afb74 --- /dev/null +++ b/examples/recipes/mpc@1.2.1.yml @@ -0,0 +1,57 @@ +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/mpfr.yml b/examples/recipes/mpfr.yml deleted file mode 100644 index 61642ac..0000000 --- a/examples/recipes/mpfr.yml +++ /dev/null @@ -1,59 +0,0 @@ -meta: - version: '4.1.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.1.0.yml b/examples/recipes/mpfr@4.1.0.yml new file mode 100644 index 0000000..de9e536 --- /dev/null +++ b/examples/recipes/mpfr@4.1.0.yml @@ -0,0 +1,57 @@ +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/zlib.yml b/examples/recipes/zlib.yml deleted file mode 100644 index 7146cde..0000000 --- a/examples/recipes/zlib.yml +++ /dev/null @@ -1,52 +0,0 @@ -meta: - version: '1.2.11' -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.2.11.yml b/examples/recipes/zlib@1.2.11.yml new file mode 100644 index 0000000..099b80c --- /dev/null +++ b/examples/recipes/zlib@1.2.11.yml @@ -0,0 +1,50 @@ +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 + -- cgit v1.2.3