blob: 631d49a1e6c51bfa7103d43dac3c845639f1fe84 (
plain) (
blame)
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
68
69
70
71
72
73
74
|
%define cross_arch arm
%define cross_triplet arm-linux-gnueabi
%define cross_sysroot %{_prefix}/%{cross_triplet}/sys-root
Name: %{cross_triplet}-kernel-headers
Version: 3.18.1
Release: 1%{?dist}
Summary: Header files for the Linux kernel (%{cross_triplet})
Group: Development/System
License: GPLv2
URL: http://www.kernel.org/
Source0: https://www.kernel.org/pub/linux/kernel/v3.x/linux-%{version}.tar.xz
%description
%prep
%setup -qn linux-%{version}
%build
make ARCH=%{cross_arch} mrproper
make ARCH=%{cross_arch} headers_check
%install
install -d %{buildroot}%{cross_sysroot}
make headers_install ARCH=%{cross_arch} \
INSTALL_HDR_PATH=%{buildroot}%{cross_sysroot}/usr
find %{buildroot}%{cross_sysroot} -name .install -delete
find %{buildroot}%{cross_sysroot} -name ..install.cmd -delete
%files
%{cross_sysroot}/usr/include/asm-generic/*.h
%{cross_sysroot}/usr/include/drm/*.h
%{cross_sysroot}/usr/include/linux/byteorder/*.h
%{cross_sysroot}/usr/include/linux/caif/*.h
%{cross_sysroot}/usr/include/linux/can/*.h
%{cross_sysroot}/usr/include/linux/dvb/*.h
%{cross_sysroot}/usr/include/linux/hdlc/*.h
%{cross_sysroot}/usr/include/linux/hsi/*.h
%{cross_sysroot}/usr/include/linux/isdn/*.h
%{cross_sysroot}/usr/include/linux/mmc/*.h
%{cross_sysroot}/usr/include/linux/netfilter/ipset/*.h
%{cross_sysroot}/usr/include/linux/netfilter/*.h
%{cross_sysroot}/usr/include/linux/netfilter_arp/*.h
%{cross_sysroot}/usr/include/linux/netfilter_bridge/*.h
%{cross_sysroot}/usr/include/linux/netfilter_ipv4/*.h
%{cross_sysroot}/usr/include/linux/netfilter_ipv6/*.h
%{cross_sysroot}/usr/include/linux/nfsd/*.h
%{cross_sysroot}/usr/include/linux/raid/*.h
%{cross_sysroot}/usr/include/linux/spi/*.h
%{cross_sysroot}/usr/include/linux/sunrpc/*.h
%{cross_sysroot}/usr/include/linux/tc_act/*.h
%{cross_sysroot}/usr/include/linux/tc_ematch/*.h
%{cross_sysroot}/usr/include/linux/usb/*.h
%{cross_sysroot}/usr/include/linux/wimax/*.h
%{cross_sysroot}/usr/include/linux/*.h
%{cross_sysroot}/usr/include/misc/*.h
%{cross_sysroot}/usr/include/mtd/*.h
%{cross_sysroot}/usr/include/rdma/*.h
%{cross_sysroot}/usr/include/scsi/fc/*.h
%{cross_sysroot}/usr/include/scsi/*.h
%{cross_sysroot}/usr/include/sound/*.h
%{cross_sysroot}/usr/include/video/*.h
%{cross_sysroot}/usr/include/xen/*.h
%{cross_sysroot}/usr/include/asm/*.h
%changelog
* Thu Dec 18 2014 Ting-Wei Lan <lantw44@gmail.com> - 3.18.1-1
- Initial packaging
|