diff options
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 |