diff options
Diffstat (limited to 'examples/recipes/busybox@1.34.0.yml')
-rw-r--r-- | examples/recipes/busybox@1.34.0.yml | 62 |
1 files changed, 62 insertions, 0 deletions
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 |