summaryrefslogtreecommitdiffstats
path: root/examples/recipes/busybox/build.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/recipes/busybox/build.yml')
-rw-r--r--examples/recipes/busybox/build.yml64
1 files changed, 64 insertions, 0 deletions
diff --git a/examples/recipes/busybox/build.yml b/examples/recipes/busybox/build.yml
new file mode 100644
index 0000000..fa87bc3
--- /dev/null
+++ b/examples/recipes/busybox/build.yml
@@ -0,0 +1,64 @@
+meta:
+ version: '1.36.1'
+tasks:
+ unpack:
+ fetch:
+ - name: '{{name}}-{{version}}.tar.bz2'
+ sha256: 'b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314'
+ run: |
+ tar xf {{dldir}}/{{name}}-{{version}}.tar.bz2
+
+
+ configure:
+ parent:
+ task: 'unpack'
+ run: |
+ mkdir {{name}}-build
+ cd {{name}}-build
+ make \
+ -f ../{{name}}-{{version}}/Makefile \
+ KBUILD_SRC=../{{name}}-{{version}} \
+ defconfig
+
+ compile:
+ args:
+ host: 'platform'
+ parent:
+ task: 'configure'
+ build_depends:
+ - recipe: 'toolchain'
+ task: 'build_depends'
+ depends:
+ - recipe: 'toolchain'
+ task: 'depends'
+ run: |
+ cd {{name}}-build
+ make \
+ ARCH={{host.karch}} \
+ CROSS_COMPILE={{cross_compile}} \
+ EXTRA_CFLAGS='-DBB_EXTRA_VERSION=""' \
+ {{name}} busybox.links
+ sed -i \
+ -e 's@^/usr@@' \
+ -e 's@^/sbin@/bin@' \
+ {{name}}.links
+
+ install:
+ args:
+ host: 'platform'
+ parent:
+ task: 'compile'
+ output:
+ default:
+ runtime_depends:
+ - recipe: 'toolchain'
+ task: 'depends'
+ run: |
+ cd {{name}}-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