blob: d024952b559702f50407f6cfd89fc502b594aae2 (
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
|
tasks:
unpack:
fetch:
- name: 'linux-5.10.66.tar.xz'
sha256: '5dfa06bbbbd164b9ea669ec637b1e6d05fb5fea8ef3aeb6729f2cbcd0dfcc8a7'
run: |
tar xf {{dldir}}/linux-5.10.66.tar.xz
configure:
args:
host: 'platform'
inherit:
task: 'unpack'
build_depends:
- recipe: 'gcc'
task: 'install'
run: |
mkdir linux-build
cd linux-build
make \
-f ../linux-5.10.66/Makefile \
ARCH={{host.karch}} \
CROSS_COMPILE={{host.cross_compile}} \
defconfig
compile:
args:
host: 'platform'
inherit:
task: 'configure'
build_depends:
- recipe: 'gcc'
task: 'install'
run: |
cd linux-build
make \
ARCH={{host.karch}} \
CROSS_COMPILE={{host.cross_compile}} \
all -j8
install:
args:
host: 'platform'
inherit:
task: 'compile'
build_depends:
- recipe: 'gcc'
task: 'install'
output:
boot:
path: 'boot'
modules:
path: 'modules'
run: |
cd linux-build
mkdir -p {{destdir}}/boot
make \
ARCH={{host.karch}} \
CROSS_COMPILE={{host.cross_compile}} \
INSTALL_PATH={{destdir}}/boot \
INSTALL_MOD_PATH={{destdir}}/modules{{host.prefix}} \
DEPMOD=true \
install modules_install
|