blob: 3ec40caa308f60210dd8135e6312a8ec728077f7 [file] [log] [blame]
Robert Rosengren05640d02010-08-04 15:20:54 +02001Summary: Headers describing the kernel ABI
2Name: kernel-headers
3Group: System Environment/Kernel
4License: GPLv2
5URL: http://www.kernel.org/
6
7
8%define kversion 2.6.34
9Version: %{kversion}
10Release: 1.1
11BuildRoot: %{_tmppath}/kernel-%{kversion}-root
12Provides: kernel-headers = %{kversion}
13
14#
15# A note about versions and patches.
16# This package is supposed to provide the official, stable kernel ABI, as specified
17# by the kernels released by Linus Torvalds. Release candidate kernels do not
18# have a stable ABI yet, and should thus not be in this package.
19#
20# Likewise, if there are distro patches in the kernel package that would have the
21# unfortunate side effect of extending the kernel ABI, these extensions are unofficial
22# and applications should not depend on these extensions, and hence, these extensions
23# should not be part of this package.
24#
25# Applications that want headers from the kernel that are not in this package need
26# to realize that what they are using is not a stable ABI, and also need to include
27# a provide a copy of the header they are interested in into their own package/source
28# code.
29#
30
31
32Source0: linux-%{kversion}.tar.bz2
33
34BuildRequires: findutils, make >= 3.78, diffutils, gawk
35
36
37%description
38The kernel-headers package contains the header files that describe
39the kernel ABI. This package is mostly used by the C library and some
40low level system software, and is only used indirectly by regular
41applications.
42
43
44%prep
45%setup -q -n linux-%{kversion}
46
47
48%build
49make ARCH=arm allyesconfig
50
51%install
52
53make INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install
54
55
56# glibc provides scsi headers for itself, for now
57find $RPM_BUILD_ROOT/usr/include -name ".install" | xargs rm -f
58find $RPM_BUILD_ROOT/usr/include -name "..install.cmd" | xargs rm -f
59rm -rf $RPM_BUILD_ROOT/usr/include/scsi
60rm -f $RPM_BUILD_ROOT/usr/include/asm*/atomic.h
61rm -f $RPM_BUILD_ROOT/usr/include/asm*/io.h
62rm -f $RPM_BUILD_ROOT/usr/include/asm*/irq.h
63
64#
65# Unfortunately we have a naming clash between the kernel ABI headers and
66# the userland MESA headers, both occupy /usr/include/drm. We'll move the
67# kernel out of the way and hope MESA doesn't do something stupid and
68# uses an incompatible API/ABI
69#
70mv $RPM_BUILD_ROOT/usr/include/drm $RPM_BUILD_ROOT/usr/include/kerneldrm
71
72
73%clean
74rm -rf $RPM_BUILD_ROOT
75
76
77%files
78%defattr(-,root,root)
79/usr/include/*
80
81%changelog
82* Tue Jun 8 2010 Robert Rosengren <robert.rosengren@stericsson.com> - 2.6.34
83- Updated to STE Kernel version 2.6.34.
84* Wed May 19 2010 Robert Rosengren <robert.rosengren@stericsson.com>
85- Initial STE version for kernel 2.6.29.
86* Mon Mar 1 2010 Arjan van de Ven <arjan@linux.inte.ocm> - 2.6.33
87- Update to 2.6.33
88* Fri Jan 8 2010 Yong Wang <yong.y.wang@intel.com> 2.6.32
89- Update to 2.6.32
90* Fri Oct 2 2009 Anas Nashif <anas.nashif@intel.com> - 2.6.31
91- Update to 2.6.31
92* Wed Jul 8 2009 Arjan van de Ven <arjan@linux.intel.com> 2.6.30
93- Update to 2.6.30
94* Wed Jan 7 2009 Anas Nashif <anas.nashif@intel.com> 2.6.28
95- Update to 2.6.28