diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-15 17:37:41 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-18 21:05:26 +0200 |
commit | 50eba6ec77317a17be82488570aa63aa7c127063 (patch) | |
tree | a82e5baa856886f1d84b7e19eb2a867bcc02f4d0 /examples | |
parent | fc765b09e1acacd223e9bb7b0f1d4cb3a5cc16b5 (diff) | |
download | rebel-50eba6ec77317a17be82488570aa63aa7c127063.tar rebel-50eba6ec77317a17be82488570aa63aa7c127063.zip |
examples: add make_ext4fs recipe
Used to generate reproducible rootfs images.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/make_ext4fs.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/examples/make_ext4fs.yml b/examples/make_ext4fs.yml new file mode 100644 index 0000000..29d1003 --- /dev/null +++ b/examples/make_ext4fs.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 -j8 + + 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/ + |