lkml.org 
[lkml]   [2008]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectpatch to 2.6.27 fix build rpm
Date
Latest working kernel version:2.6.26.6
Distribution: any
Hardware Environment: any
Software Environment: any
Problem Description: Build error from make rpm. Many unpacked files (*.fw).

Steps to reproduce:

Add in .config:
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""

and say make rpm to build.

This patch for file linux-2.6.27/scripts/package/mkspec is fix this problem:


--- mkspec.old 2008-10-11 00:00:38.000000000 +0700
+++ mkspec 2008-10-11 00:39:43.000000000 +0700
@@ -64,8 +64,10 @@
echo "%install"
echo "%ifarch ia64"
echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib/modules'
+echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib/firmware'
echo "%else"
echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib/modules'
+echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib/firmware'
echo "%endif"

echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{_smp_mflags} modules_install'
@@ -92,5 +94,6 @@
echo '%defattr (-, root, root)'
echo "%dir /lib/modules"
echo "/lib/modules/$KERNELRELEASE"
+echo "/lib/firmware"
echo "/boot/*"
echo ""
С уважением, Маначкин Е.Р.
________________________________________
|Комплексные решения на базе Linux.
|Opensource wireless routers firmware
|www: http://wive-ng.sf.net
|mail-to: sfstudio@mail.ru
|ICQ: 485758428
|JID: sfstudio-omsk@jabber.ru

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-10-15 16:41    [W:0.058 / U:5.564 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site