blob: d5245969574146e74ac37c83aedd4eb209278f07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
meta:
version: '2.37'
tasks:
unpack:
fetch:
- name: '{{pn}}-{{pv}}.tar.xz'
sha256: '820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c'
run: |
tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz
configure:
args:
host: 'platform'
target: 'platform'
inherit:
task: 'unpack'
build_depends:
- recipe: 'toolchain'
task: 'build_depends'
depends:
- recipe: 'toolchain'
task: 'depends'
run: |
mkdir {{pn}}-build
cd {{pn}}-build
../{{pn}}-{{pv}}/configure \
--build={{build.gnu_triplet}} \
--host={{host.gnu_triplet}} \
--target={{target.gnu_triplet}} \
--prefix={{host.prefix}} \
--with-sysroot={{host_to_target.sysroot}} \
--enable-libssp \
--enable-deterministic-archives \
--enable-plugins \
--disable-bootstrap \
--disable-multilib \
--disable-werror \
--disable-nls \
--disable-sim \
--disable-gdb
find -name config.log -delete
compile:
args:
host: 'platform'
target: 'platform'
inherit:
task: 'configure'
run: |
cd {{pn}}-build
make
find -name config.log -delete
install:
args:
host: 'platform'
target: 'platform'
inherit:
task: 'compile'
output:
default:
runtime_depends:
- recipe: 'toolchain'
task: 'depends'
run: |
cd {{pn}}-build
make DESTDIR={{destdir}} install
|