summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-09-26 18:11:00 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-09-26 18:11:00 +0200
commitc943281dff577d02197867391cbe6b6b1c7413ee (patch)
treec7d4bd4c85bdadef9a6c9db0d798605bc45e9fb5 /examples
parentf3f764f273f21d03ede31f4853320b409457cf40 (diff)
downloadrebel-c943281dff577d02197867391cbe6b6b1c7413ee.tar
rebel-c943281dff577d02197867391cbe6b6b1c7413ee.zip
examples: e2fsprogs: allow host build
Diffstat (limited to 'examples')
-rw-r--r--examples/e2fsprogs.yml30
1 files changed, 29 insertions, 1 deletions
diff --git a/examples/e2fsprogs.yml b/examples/e2fsprogs.yml
index 43c3c74..d51a0f9 100644
--- a/examples/e2fsprogs.yml
+++ b/examples/e2fsprogs.yml
@@ -11,7 +11,20 @@ tasks:
host: 'platform'
inherit:
task: 'unpack'
+ build_depends:
+ - recipe: 'toolchain'
+ task: 'build_depends'
+ depends:
+ - recipe: 'toolchain'
+ task: 'depends'
run: |
+ export CC={{host.cross_compile}}gcc
+ export CXX={{host.cross_compile}}g++
+ export AR={{host.cross_compile}}ar
+ export NM={{host.cross_compile}}nm
+ export RANLIB={{host.cross_compile}}ranlib
+ export STRIP={{host.cross_compile}}strip
+
mkdir e2fsprogs-build
cd e2fsprogs-build
../e2fsprogs-1.46.4/configure \
@@ -24,6 +37,12 @@ tasks:
host: 'platform'
inherit:
task: 'configure'
+ build_depends:
+ - recipe: 'toolchain'
+ task: 'build_depends'
+ depends:
+ - recipe: 'toolchain'
+ task: 'depends'
run: |
cd e2fsprogs-build
make -j8
@@ -33,8 +52,17 @@ tasks:
host: 'platform'
inherit:
task: 'compile'
+ build_depends:
+ - recipe: 'toolchain'
+ task: 'build_depends'
+ depends:
+ - recipe: 'toolchain'
+ task: 'depends'
output:
- default: {}
+ default:
+ runtime_depends:
+ - recipe: 'toolchain'
+ task: 'depends'
run: |
cd e2fsprogs-build
make DESTDIR={{destdir}} install