blob: fa87bc375c44f66a0e4f3e76c19c1ebb7f974ef5 (
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
|
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
|