blob: 2cc6e17ddd9cf0ce4efe806390d5ebb4448a20c1 (
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
|
kind: manual
sources:
- kind: git
url: upstream:linux
track: v4.11
ref: a351e9b9fc24e982ec2f0e76379a49826036da12
depends:
- filename: gnu-toolchain/stage1.bst
type: build
variables:
prefix: /tools
environment:
PATH: /tools/bin:/usr/bin:/bin:/usr/sbin:/sbin
config:
install-commands:
- |
case "%{bst-target-arch}" in
armv5l)
ARCH="arm" ;;
armv7b|armv7l|armv7lhf)
ARCH="arm" ;;
armv8l64|armv8b64)
ARCH="arm64" ;;
x86_32)
ARCH="i386" ;;
x86_64)
ARCH="x86_64" ;;
ppc64b|ppc64l)
ARCH="powerpc" ;;
*)
echo "Error: unsupported architecture: %{bst-target-arch}" >&2
exit 1
esac
ARCH=$ARCH make INSTALL_HDR_PATH=dest headers_install
- install -d "%{install-root}%{includedir}"
- cp -r dest/include/* "%{install-root}%{includedir}"
|