History

rpm-pkg: install firmware files in kernel relative directory

Prior to this patch, firmware files were being installed in /lib/firmware with a potential conflict with already installed kernels. firmware files are now installed in /lib/firmware/<release> and packaged with the rest of the modules.

Mike Marciniszyn committed 13 years ago

Commit 41612371 parent 3c9c7a11 file · +5 −4Browse files

Unified · Split

scripts/package/mkspec+5−4
@@ -77,13 +77,14 @@ echo "%install" · 76 unmodified lines
7777 echo 'KBUILD_IMAGE=$(make image_name)'
7878 echo "%ifarch ia64"
7979 echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib/modules'
80−echo 'mkdir -p $RPM_BUILD_ROOT/lib/firmware'
8180 echo "%else"
8281 echo 'mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib/modules'
83−echo 'mkdir -p $RPM_BUILD_ROOT/lib/firmware'
8482 echo "%endif"
83+echo 'mkdir -p $RPM_BUILD_ROOT'"/lib/firmware/$KERNELRELEASE"
8584
86−echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{?_smp_mflags} KBUILD_SRC= modules_install'
85+echo 'INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{?_smp_mflags} KBUILD_SRC= mod-fw= modules_install'
86+echo 'INSTALL_FW_PATH=$RPM_BUILD_ROOT'"/lib/firmware/$KERNELRELEASE"
87+echo 'make INSTALL_FW_PATH=$INSTALL_FW_PATH' firmware_install
8788 echo "%ifarch ia64"
8889 echo 'cp $KBUILD_IMAGE $RPM_BUILD_ROOT'"/boot/efi/vmlinuz-$KERNELRELEASE"
8990 echo 'ln -s '"efi/vmlinuz-$KERNELRELEASE" '$RPM_BUILD_ROOT'"/boot/"
@@ -125,7 +126,7 @@ echo "%files" · 35 unmodified lines
125126 echo '%defattr (-, root, root)'
126127 echo "%dir /lib/modules"
127128 echo "/lib/modules/$KERNELRELEASE"
128−echo "/lib/firmware"
129+echo "/lib/firmware/$KERNELRELEASE"
129130 echo "/boot/*"
130131 echo ""
131132 echo "%files headers"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t