diff options
| author | Arun Sharma <asharma@fb.com> | 2011-05-17 13:36:16 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2011-05-24 12:28:29 -0400 |
| commit | 0bd41dfc9fbbcf174d5336c1c9fc5ba917519761 (patch) | |
| tree | dca660cd36a6d3ddbd6c77aaa80b0b6c12039cfc /scripts/package | |
| parent | 857c7e438769c0f251092a20b587d6e743ee489d (diff) | |
kbuild: Create a kernel-headers RPM
To compile binaries which depend on new kernel interfaces, we need a
kernel-headers RPM
Signed-off-by: Arun Sharma <asharma@fb.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/package')
| -rwxr-xr-x | scripts/package/mkspec | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/package/mkspec b/scripts/package/mkspec index ed8b6a8b4b8e..4bf17ddf7c7f 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec | |||
| @@ -47,6 +47,18 @@ echo "" | |||
| 47 | echo "%description" | 47 | echo "%description" |
| 48 | echo "The Linux Kernel, the operating system core itself" | 48 | echo "The Linux Kernel, the operating system core itself" |
| 49 | echo "" | 49 | echo "" |
| 50 | echo "%package headers" | ||
| 51 | echo "Summary: Header files for the Linux kernel for use by glibc" | ||
| 52 | echo "Group: Development/System" | ||
| 53 | echo "Obsoletes: kernel-headers" | ||
| 54 | echo "Provides: kernel-headers = %{version}" | ||
| 55 | echo "%description headers" | ||
| 56 | echo "Kernel-headers includes the C header files that specify the interface" | ||
| 57 | echo "between the Linux kernel and userspace libraries and programs. The" | ||
| 58 | echo "header files define structures and constants that are needed for" | ||
| 59 | echo "building most standard programs and are also needed for rebuilding the" | ||
| 60 | echo "glibc package." | ||
| 61 | echo "" | ||
| 50 | 62 | ||
| 51 | if ! $PREBUILT; then | 63 | if ! $PREBUILT; then |
| 52 | echo "%prep" | 64 | echo "%prep" |
| @@ -83,6 +95,7 @@ echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/vmlinuz-$KERNELRELEASE" | |||
| 83 | echo "%endif" | 95 | echo "%endif" |
| 84 | echo "%endif" | 96 | echo "%endif" |
| 85 | 97 | ||
| 98 | echo 'make %{?_smp_mflags} INSTALL_HDR_PATH=$RPM_BUILD_ROOT/usr headers_install' | ||
| 86 | echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$KERNELRELEASE" | 99 | echo 'cp System.map $RPM_BUILD_ROOT'"/boot/System.map-$KERNELRELEASE" |
| 87 | 100 | ||
| 88 | echo 'cp .config $RPM_BUILD_ROOT'"/boot/config-$KERNELRELEASE" | 101 | echo 'cp .config $RPM_BUILD_ROOT'"/boot/config-$KERNELRELEASE" |
| @@ -105,3 +118,7 @@ echo "/lib/modules/$KERNELRELEASE" | |||
| 105 | echo "/lib/firmware" | 118 | echo "/lib/firmware" |
| 106 | echo "/boot/*" | 119 | echo "/boot/*" |
| 107 | echo "" | 120 | echo "" |
| 121 | echo "%files headers" | ||
| 122 | echo '%defattr (-, root, root)' | ||
| 123 | echo "/usr/include" | ||
| 124 | echo "" | ||
