summaryrefslogtreecommitdiffstats
path: root/examples/recipes/busybox@1.36.1.yml
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2023-10-02 01:11:29 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2023-10-02 01:11:29 +0200
commite739a7e89a6282f735d91daeb0c213efe9c0b077 (patch)
treec752019620f1454883dd1c2f7f464f1bf0b4d7f4 /examples/recipes/busybox@1.36.1.yml
parent2c21f689fc372aaf54601c041cd3e15f625093d6 (diff)
downloadrebel-e739a7e89a6282f735d91daeb0c213efe9c0b077.tar
rebel-e739a7e89a6282f735d91daeb0c213efe9c0b077.zip
examples: update toolchain
Diffstat (limited to 'examples/recipes/busybox@1.36.1.yml')
-rw-r--r--examples/recipes/busybox@1.36.1.yml62
1 files changed, 62 insertions, 0 deletions
diff --git a/examples/recipes/busybox@1.36.1.yml b/examples/recipes/busybox@1.36.1.yml
new file mode 100644
index 0000000..abed443
--- /dev/null
+++ b/examples/recipes/busybox@1.36.1.yml
@@ -0,0 +1,62 @@
+tasks:
+ unpack:
+ fetch:
+ - name: '{{pn}}-{{pv}}.tar.bz2'
+ sha256: 'b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314'
+ 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