I finally got kernel 2.6.35-rc4 built for armv5 using the provided cross
compile tool chain, but without additional patches (yet). This means wlan
only works as client and NOT as host (due to libertas_sdio not being
included in 2.6.35-rc4 as far as I can say). Everything else is supposed to
work pretty well. Atm I try to find a proper way to generate a rpm package,
but "make rpm-pkg" fails with the following error(s):

/bin/sh /sandbox/linux-2.6.35-rc4/scripts/setlocalversion --scm-only >
/sandbox/linux-2.6.35-rc4/.scmversion
cat: .scmversion: input file is output file
make[1]: *** [rpm-pkg] Error 1
make: *** [rpm-pkg] Error 2

Appendix: auto generated .spec file

Help appreciated!

Once I understand that process and why it keeps failing, I am going to
create a patched kernel so GuruPlugServerPlus is usable as AccessPoint
Name: kernel
Summary: The Linux Kernel
Version: 2.6.35rc4
Release: 3
License: GPL
Group: System Environment/Kernel
Vendor: The Linux Community
URL: http://www.kernel.org
Source: kernel-2.6.35rc4.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root
Provides:  kernel-2.6.35-rc4
%define __spec_install_post /usr/lib/rpm/brp-compress || :
%define debug_package %{nil}

%description
The Linux Kernel, the operating system core itself

%prep
%setup -q

%build
make clean && make %{?_smp_mflags}

%install
%ifarch ia64
mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib/modules
mkdir -p $RPM_BUILD_ROOT/lib/firmware
%else
mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib/modules
mkdir -p $RPM_BUILD_ROOT/lib/firmware
%endif
INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{_smp_mflags} KBUILD_SRC= modules_install
%ifarch ia64
cp $KBUILD_IMAGE $RPM_BUILD_ROOT/boot/efi/vmlinuz-2.6.35-rc4
ln -s efi/vmlinuz-2.6.35-rc4 $RPM_BUILD_ROOT/boot/
%else
%ifarch ppc64
cp vmlinux arch/powerpc/boot
cp arch/powerpc/boot/$KBUILD_IMAGE $RPM_BUILD_ROOT/boot/vmlinuz-2.6.35-rc4
%else
cp $KBUILD_IMAGE $RPM_BUILD_ROOT/boot/vmlinuz-2.6.35-rc4
%endif
%endif
cp System.map $RPM_BUILD_ROOT/boot/System.map-2.6.35-rc4
cp .config $RPM_BUILD_ROOT/boot/config-2.6.35-rc4
%ifnarch ppc64
cp vmlinux vmlinux.orig
bzip2 -9 vmlinux
mv vmlinux.bz2 $RPM_BUILD_ROOT/boot/vmlinux-2.6.35-rc4.bz2
mv vmlinux.orig vmlinux
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%dir /lib/modules
/lib/modules/2.6.35-rc4
/lib/firmware
/boot/*

_______________________________________________
arm mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/arm

Reply via email to