File kernel-tegra-ac100.spec of Package kernel-tegra-ac100
#
# spec file for package kernel-tegra-ac100
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: kernel-tegra-ac100
Summary: Toshiba AC100 kernel
License: GPL-2.0
Group: System/Kernel
Version: 3.0.27
Release: 0.0
Url: http://gitorious.org/~marvin24/ac100/marvin24s-kernel/commits/chromeos-ac100-3.0-exp
BuildRequires: coreutils
BuildRequires: lzop
BuildRequires: module-init-tools
BuildRequires: u-boot-tools
Provides: kernel = %version
Provides: kernel-base = %version
Provides: multiversion(kernel)
Source0: marvin24-marvin24s-kernel-chromeos-ac100-3.0-exp.tar.bz2
Source1: kernel-tegra-ac100.README-BUILDIMAGE
# Using an empty initrd.cpio.gz as it's needed for the image
Source2: initrd.cpio.gz
Source3: config-tegra-ac100
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %arm
%description
Project which contain sources of kernel/tools/libs used on the Toshib AC100/Dynabook AZ.
First aim is to port GNU/Linux distributions to the AC100, but that’s not exclusive.
%prep
%setup -q -n ac100-marvin24s-kernel
%build
#export CFLAGS="$RPM_OPT_FLAGS"
#export CXXFLAGS="$CFLAGS"
make mrproper
# Use the ac100 i.e. paz00 config
#make paz00_defconfig
# Use a config with usb support (ethernet and serial)
cp %_sourcedir/config-tegra-ac100 .config
make uImage
make modules
%install
install -d $RPM_BUILD_ROOT/boot
install -m644 arch/arm/boot/zImage $RPM_BUILD_ROOT/boot/
install -m644 arch/arm/boot/uImage $RPM_BUILD_ROOT/boot/
install -m644 arch/arm/boot/zImage $RPM_BUILD_ROOT/boot/vmlinuz
install -m644 %_sourcedir/initrd.cpio.gz $RPM_BUILD_ROOT/boot/
make INSTALL_MOD_PATH=$RPM_BUILD_ROOT modules_install
install -d $RPM_BUILD_ROOT/%{_docdir}/%{name}
install -m644 %_sourcedir/kernel-tegra-ac100.README-BUILDIMAGE $RPM_BUILD_ROOT/%{_docdir}/%{name}/README-BUILDIMAGE
rm $RPM_BUILD_ROOT/lib/modules/*/build
rm $RPM_BUILD_ROOT/lib/modules/*/source
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/boot/*
/lib/modules/*
%doc COPYING CREDITS MAINTAINERS README REPORTING-BUGS
%{_docdir}/%{name}/README-BUILDIMAGE
%changelog