[meego-commits] 8371: New package devel:tools:sdk:host/meego-sdk-i586-kernel-headers

jackiewu no_reply at build.meego.com
Wed Oct 13 14:31:47 UTC 2010


Hi,
Adding new package meego-sdk-i586-kernel-headers in project devel:tools:sdk:host. Please review and accept ASAP.

Justification for this new package:

meego sdk toolchain

Thank You,
jackiewu

[This message was auto-generated]

---

Request #8371:

  submit:   home:jackiewu:toolchain/meego-sdk-i586-kernel-headers(r3) -> devel:tools:sdk:host/meego-sdk-i586-kernel-headers


Message:
    meego sdk toolchain

State:   new          2010-10-13T07:31:47 jackiewu
Comment: None


This is a NEW package in devel:tools:sdk:host project.
The files in the new package:
meego-sdk-i586-kernel-headers/
  |__  kernel-headers.changes
  |__  kernel-headers.spec
  |__  linux-2.6.34.tar.bz2
  |__  meego-sdk-i586-kernel-headers.changes
  |__  meego-sdk-i586-kernel-headers.spec

The content of the spec file, meego-sdk-i586-kernel-headers.spec:
===================================================================
%define _meego_cpu i586
%define _meego_arch i586
%define TARGET %{_meego_arch}-meego-linux-gnu
%define install_prefix /opt/meego/meego-sdk-%{_meego_cpu}-toolchain/%{TARGET}

Summary: Headers describing the kernel ABI
Name: meego-sdk-%{_meego_cpu}-kernel-headers
Group: System/Kernel
License: GPLv2
URL: http://www.kernel.org/

%define _prefix %{install_prefix}/%{TARGET}/sys-root/usr

%define kversion 2.6.34
Version: %{kversion}
Release: 1
BuildRoot: %{_tmppath}/kernel-%{kversion}-root
Provides: meego-sdk-%{_meego_cpu}-kernel-headers = %{kversion}

#
# A note about versions and patches.
# This package is supposed to provide the official, stable kernel ABI, as specified
# by the kernels released by Linus Torvalds. Release candidate kernels do not
# have a stable ABI yet, and should thus not be in this package.
#
# Likewise, if there are distro patches in the kernel package that would have the
# unfortunate side effect of extending the kernel ABI, these extensions are unofficial
# and applications should not depend on these extensions, and hence, these extensions
# should not be part of this package.
#
# Applications that want headers from the kernel that are not in this package need
# to realize that what they are using is not a stable ABI, and also need to include
# a provide a copy of the header they are interested in into their own package/source
# code.
#



Source0: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-%{kversion}.tar.bz2

BuildRequires:  findutils,  make >= 3.78, diffutils, gawk, kernel-headers



%description
The kernel-headers package contains the header files that describe
the kernel ABI. This package is mostly used by the C library and some
low level system software, and is only used indirectly by regular
applications.


%prep
%setup -q -n linux-%{kversion}

%build
pwd
%if "%{_meego_arch}" == "i586"
make ARCH=x86 allyesconfig
%else
%if "%{_meego_arch}" == "armv7l"
make ARCH=arm allyesconfig
%endif
%endif

%install

%if "%{_meego_arch}" == "i586"
make ARCH=x86 INSTALL_HDR_PATH=$RPM_BUILD_ROOT/%{_prefix} headers_install
%else
%if "%{_meego_arch}" == "armv7l"
make ARCH=arm INSTALL_HDR_PATH=$RPM_BUILD_ROOT/%{_prefix} headers_install
%endif
%endif

# glibc provides scsi headers for itself, for now
find  $RPM_BUILD_ROOT%{_includedir} -name ".install" | xargs rm -f
find  $RPM_BUILD_ROOT%{_includedir} -name "..install.cmd" | xargs rm -f
rm -rf $RPM_BUILD_ROOT%{_includedir}/scsi
rm -f $RPM_BUILD_ROOT%{_includedir}/asm*/atomic.h
rm -f $RPM_BUILD_ROOT%{_includedir}/asm*/io.h
rm -f $RPM_BUILD_ROOT%{_includedir}/asm*/irq.h

#
# Unfortunately we have a naming clash between the kernel ABI headers and
# the userland MESA headers, both occupy /usr/include/drm.
# We'll move the kernel out of the way and hope MESA doesn't do something stupid
# like use an incompatible API/ABI.
#
mv $RPM_BUILD_ROOT/%{_includedir}/drm $RPM_BUILD_ROOT/%{_includedir}/kerneldrm



%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_includedir}/*

===================================================================




More information about the MeeGo-commits mailing list