diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-25 17:23:44 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-09-25 18:30:15 +0200 |
commit | 822e6f8e85ada9e9483fa2c984f7fe99315f23c0 (patch) | |
tree | 738f0af623240e9cebcafcf9a00d8ef138a63e32 /examples | |
parent | 051442f17d618abeb77ada99c7e78c681426186c (diff) | |
download | rebel-822e6f8e85ada9e9483fa2c984f7fe99315f23c0.tar rebel-822e6f8e85ada9e9483fa2c984f7fe99315f23c0.zip |
examples: add busybox recipe
Diffstat (limited to 'examples')
-rw-r--r-- | examples/busybox.yml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/examples/busybox.yml b/examples/busybox.yml new file mode 100644 index 0000000..8025232 --- /dev/null +++ b/examples/busybox.yml @@ -0,0 +1,65 @@ +tasks: + unpack: + fetch: + - name: 'busybox-1.34.0.tar.bz2' + sha256: 'ec8d1615edb045b83b81966604759c4d4ac921434ab4011da604f629c06074ce' + run: | + tar xf {{dldir}}/busybox-1.34.0.tar.bz2 + + + configure: + inherit: + task: 'unpack' + run: | + mkdir busybox-build + cd busybox-build + make \ + -f ../busybox-1.34.0/Makefile \ + KBUILD_SRC=../busybox-1.34.0 \ + defconfig + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd busybox-build + make \ + ARCH={{host.karch}} \ + CROSS_COMPILE={{build.prefix}}/bin/{{host.gnu_triplet}}- \ + busybox busybox.links -j8 + sed -i \ + -e 's@^/usr@@' \ + -e 's@^/sbin@/bin@' \ + busybox.links + + install: + args: + host: 'platform' + inherit: + task: 'compile' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd busybox-build + make \ + ARCH={{host.karch}} \ + CROSS_COMPILE={{build.prefix}}/bin/{{host.gnu_triplet}}- \ + CONFIG_PREFIX={{destdir}}{{host.prefix}} \ + install |