summaryrefslogtreecommitdiffstats
path: root/examples/recipes/make_ext4fs/build.yml
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2024-04-04 01:13:09 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2024-04-04 01:16:43 +0200
commit1896ea04204b8086a4f25e257dc5605e5505d768 (patch)
tree694b5298958c0152ce4fe58c42f864980fd6b9df /examples/recipes/make_ext4fs/build.yml
parentaa914e75251af3f9691be621a8c266320158bace (diff)
downloadrebel-1896ea04204b8086a4f25e257dc5605e5505d768.tar
rebel-1896ea04204b8086a4f25e257dc5605e5505d768.zip
driver: recipe: move each recipe into a separate directory
Diffstat (limited to 'examples/recipes/make_ext4fs/build.yml')
-rw-r--r--examples/recipes/make_ext4fs/build.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/examples/recipes/make_ext4fs/build.yml b/examples/recipes/make_ext4fs/build.yml
new file mode 100644
index 0000000..f77fde4
--- /dev/null
+++ b/examples/recipes/make_ext4fs/build.yml
@@ -0,0 +1,44 @@
+meta:
+ version: '2020-01-05-5c201be7d72aff735da27e17c29852e0cefe3e52'
+tasks:
+ unpack:
+ fetch:
+ - name: '{{basename}}-{{version}}.tar.gz'
+ sha256: 'bfe984cc757c676639090a5b34bdfc359cdef9b723de77efbce590872dce4132'
+ run: |
+ tar xf {{dldir}}/{{basename}}-{{version}}.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 {{basename}}-{{version}}
+ make
+
+ install:
+ args:
+ host: 'platform'
+ inherit:
+ task: 'compile'
+ output:
+ default:
+ runtime_depends:
+ - recipe: 'toolchain'
+ task: 'depends'
+ - recipe: 'zlib'
+ task: 'install'
+ run: |
+ cd {{basename}}-{{version}}
+ install -d {{destdir}}{{host.prefix}}/bin
+ install -m755 make_ext4fs {{destdir}}{{host.prefix}}/bin/
+