<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Re: [PATCH] Add $KERNELRELEASE to firmware install path</title>
        <description> (Adding David Woodhouse and lkml to CC, in general it's usually better 
to CC topic lists in addition to lkml, rather than instead of lkml.)

On 5.5.2011 19:39, Arun Sharma wrote:
&amp;gt; Useful in the presence of multiple kernels with different
&amp;gt; firmware versions.

The changelog should also include the udev version that is able to find 
the firmware there (v127, August 2008). FWIW, SUSE has been using this 
patch since about that time, but we forgot to push this :-|. Anyway

Acked-by: Michal Marek &amp;lt;mmarek@suse.cz&amp;gt;


&amp;gt; Signed-off-by: Arun Sharma&amp;lt;asharma@fb.com&amp;gt;
&amp;gt;
&amp;gt; diff --git a/Makefile b/Makefile
&amp;gt; index e712243..cb715df 100644
&amp;gt; --- a/Makefile
&amp;gt; +++ b/Makefile
&amp;gt; @@ -997,7 +997,7 @@ depend dep:
&amp;gt;
&amp;gt;   # ---------------------------------------------------------------------------
&amp;gt;   # Firmware install
&amp;gt; -INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware
&amp;gt; +INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware/$(KERNELRELEASE)
&amp;gt;   export INSTALL_FW_PATH
&amp;gt;
&amp;gt;   PHONY += firmware_install
&amp;gt; --
&amp;gt; To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-kbuild&amp;quot; in
&amp;gt; the body of a message to &amp;#109;&amp;#97;&amp;#106;&amp;#111;&amp;#114;&amp;#100;&amp;#111;&amp;#109;&amp;#111;&amp;#64;&amp;#118;&amp;#103;&amp;#101;&amp;#114;&amp;#46;&amp;#107;&amp;#101;&amp;#114;&amp;#110;&amp;#101;&amp;#108;&amp;#46;&amp;#111;&amp;#114;&amp;#103;
&amp;gt; More majordomo info at  [vger.kernel.org]

--
To unsubscribe from this list: send the line &amp;quot;unsubscribe linux-kernel&amp;quot; in
the body of a message to &amp;#109;&amp;#97;&amp;#106;&amp;#111;&amp;#114;&amp;#100;&amp;#111;&amp;#109;&amp;#111;&amp;#64;&amp;#118;&amp;#103;&amp;#101;&amp;#114;&amp;#46;&amp;#107;&amp;#101;&amp;#114;&amp;#110;&amp;#101;&amp;#108;&amp;#46;&amp;#111;&amp;#114;&amp;#103;
More majordomo info at  [vger.kernel.org]
Please read the FAQ at  [www.tux.org]</description>
        <link>http://choon.net/forum/read.php?21,77563,77563#msg-77563</link>
        <lastBuildDate>Wed, 19 Jun 2013 04:57:24 +0800</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://choon.net/forum/read.php?21,77563,95923#msg-95923</guid>
            <title>Re: [PATCH] Add $KERNELRELEASE to firmware install path</title>
            <link>http://choon.net/forum/read.php?21,77563,95923#msg-95923</link>
            <description><![CDATA[ On 17.5.2011 13:23, David Woodhouse wrote:<br />
&gt; On Mon, 2011-05-16 at 16:21 +0200, Michal Marek wrote:<br />
&gt;&gt;<br />
&gt;&gt; make deb-pkg generates a separate package with the firmware files. I<br />
&gt;&gt; would suggest we do the same for rpm.<br />
&gt;<br />
&gt; No. You should ignore the firmware files *completely*.<br />
<br />
make modules_install should ignore them completely. Whether the files <br />
are installed directly in /lib/{modules,firmware} or packaged in a rpm <br />
and transferred to another machine does not make any difference.<br />
<br />
Michal<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  [<a href="http://vger.kernel.org/majordomo-info.html"  rel="nofollow">vger.kernel.org</a>]<br />
Please read the FAQ at  [<a href="http://www.tux.org/lkml/"  rel="nofollow">www.tux.org</a>]]]></description>
            <dc:creator>Michal Marek</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Tue, 17 May 2011 19:38:07 +0800</pubDate>
        </item>
        <item>
            <guid>http://choon.net/forum/read.php?21,77563,95905#msg-95905</guid>
            <title>Re: [PATCH] Add $KERNELRELEASE to firmware install path</title>
            <link>http://choon.net/forum/read.php?21,77563,95905#msg-95905</link>
            <description><![CDATA[ On Mon, 2011-05-16 at 16:21 +0200, Michal Marek wrote:<br />
&gt; <br />
&gt; make deb-pkg generates a separate package with the firmware files. I<br />
&gt; would suggest we do the same for rpm. <br />
<br />
No. You should ignore the firmware files *completely*.<br />
<br />
-- <br />
dwmw2<br />
<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  [<a href="http://vger.kernel.org/majordomo-info.html"  rel="nofollow">vger.kernel.org</a>]<br />
Please read the FAQ at  [<a href="http://www.tux.org/lkml/"  rel="nofollow">www.tux.org</a>]]]></description>
            <dc:creator>David Woodhouse</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Tue, 17 May 2011 19:24:04 +0800</pubDate>
        </item>
        <item>
            <guid>http://choon.net/forum/read.php?21,77563,94471#msg-94471</guid>
            <title>Re: [PATCH] Add $KERNELRELEASE to firmware install path</title>
            <link>http://choon.net/forum/read.php?21,77563,94471#msg-94471</link>
            <description><![CDATA[ On Fri, May 06, 2011 at 03:37:27PM -0700, Arun Sharma wrote:<br />
&gt; On Fri, May 06, 2011 at 08:02:36PM +0100, David Woodhouse wrote:<br />
&gt; &gt; On Fri, 2011-05-06 at 11:44 -0700, Arun Sharma wrote:<br />
&gt; &gt; &gt; <br />
&gt; &gt; &gt; Without this change, if you have two kernel rpms/debs from different<br />
&gt; &gt; &gt; kernel versions installed, they'll result in a namespace conflict<br />
&gt; &gt; &gt; (rpm/deb install will fail), which gets resolved by this patch. <br />
&gt; &gt; <br />
&gt; &gt; The packages are broken then. They shouldn't include *any* files<br />
&gt; &gt; in /lib/firmware.<br />
&gt; &gt; <br />
&gt; &gt; Fix *that*, and the problem goes away.<br />
&gt; <br />
&gt; Sounds good.<br />
&gt; <br />
&gt; Michal: Should I send you a patch that drops /lib/firmware?<br />
<br />
make deb-pkg generates a separate package with the firmware files. I<br />
would suggest we do the same for rpm.<br />
<br />
Michal<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  [<a href="http://vger.kernel.org/majordomo-info.html"  rel="nofollow">vger.kernel.org</a>]<br />
Please read the FAQ at  [<a href="http://www.tux.org/lkml/"  rel="nofollow">www.tux.org</a>]]]></description>
            <dc:creator>Michal Marek</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Mon, 16 May 2011 22:22:04 +0800</pubDate>
        </item>
        <item>
            <guid>http://choon.net/forum/read.php?21,77563,78532#msg-78532</guid>
            <title>Re: [PATCH] Add $KERNELRELEASE to firmware install path</title>
            <link>http://choon.net/forum/read.php?21,77563,78532#msg-78532</link>
            <description><![CDATA[ On Fri, May 06, 2011 at 08:02:36PM +0100, David Woodhouse wrote:<br />
&gt; On Fri, 2011-05-06 at 11:44 -0700, Arun Sharma wrote:<br />
&gt; &gt; <br />
&gt; &gt; Without this change, if you have two kernel rpms/debs from different<br />
&gt; &gt; kernel versions installed, they'll result in a namespace conflict<br />
&gt; &gt; (rpm/deb install will fail), which gets resolved by this patch. <br />
&gt; <br />
&gt; The packages are broken then. They shouldn't include *any* files<br />
&gt; in /lib/firmware.<br />
&gt; <br />
&gt; Fix *that*, and the problem goes away.<br />
<br />
Sounds good.<br />
<br />
Michal: Should I send you a patch that drops /lib/firmware?<br />
<br />
 -Arun<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  [<a href="http://vger.kernel.org/majordomo-info.html"  rel="nofollow">vger.kernel.org</a>]<br />
Please read the FAQ at  [<a href="http://www.tux.org/lkml/"  rel="nofollow">www.tux.org</a>]]]></description>
            <dc:creator>Arun Sharma</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Sat, 07 May 2011 06:38:04 +0800</pubDate>
        </item>
        <item>
            <guid>http://choon.net/forum/read.php?21,77563,78239#msg-78239</guid>
            <title>Re: [PATCH] Add $KERNELRELEASE to firmware install path</title>
            <link>http://choon.net/forum/read.php?21,77563,78239#msg-78239</link>
            <description><![CDATA[ On Fri, 2011-05-06 at 11:44 -0700, Arun Sharma wrote:<br />
&gt; <br />
&gt; Without this change, if you have two kernel rpms/debs from different<br />
&gt; kernel versions installed, they'll result in a namespace conflict<br />
&gt; (rpm/deb install will fail), which gets resolved by this patch. <br />
<br />
The packages are broken then. They shouldn't include *any* files<br />
in /lib/firmware.<br />
<br />
Fix *that*, and the problem goes away.<br />
<br />
<br />
-- <br />
dwmw2<br />
<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  [<a href="http://vger.kernel.org/majordomo-info.html"  rel="nofollow">vger.kernel.org</a>]<br />
Please read the FAQ at  [<a href="http://www.tux.org/lkml/"  rel="nofollow">www.tux.org</a>]]]></description>
            <dc:creator>David Woodhouse</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Sat, 07 May 2011 03:03:03 +0800</pubDate>
        </item>
        <item>
            <guid>http://choon.net/forum/read.php?21,77563,78223#msg-78223</guid>
            <title>Re: [PATCH] Add $KERNELRELEASE to firmware install path</title>
            <link>http://choon.net/forum/read.php?21,77563,78223#msg-78223</link>
            <description><![CDATA[ On Fri, May 06, 2011 at 11:18:32AM +0100, David Woodhouse wrote:<br />
&gt; On Fri, 2011-05-06 at 12:15 +0200, Michal Marek wrote:<br />
&gt; &gt; <br />
&gt; &gt; On 5.5.2011 19:39, Arun Sharma wrote:<br />
&gt; &gt; &gt; Useful in the presence of multiple kernels with different<br />
&gt; &gt; &gt; firmware versions.<br />
&gt; &gt; <br />
&gt; &gt; The changelog should also include the udev version that is able to find <br />
&gt; &gt; the firmware there (v127, August 2008). FWIW, SUSE has been using this <br />
&gt; &gt; patch since about that time, but we forgot to push this :-|. Anyway<br />
&gt; <br />
&gt; No, this is fundamentally broken. Do not do it.<br />
&gt; <br />
&gt; The firmware lives in /lib/firmware, not in /lib/firmware/$KERNELVERSION<br />
<br />
I'm not trying to change the way the kernel deals with firmware or<br />
anything. Just trying to make the vanilla kernel packaging scripts more<br />
usable for us.<br />
<br />
Without this change, if you have two kernel rpms/debs from different<br />
kernel versions installed, they'll result in a namespace conflict<br />
(rpm/deb install will fail), which gets resolved by this patch.<br />
<br />
  -Arun<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  [<a href="http://vger.kernel.org/majordomo-info.html"  rel="nofollow">vger.kernel.org</a>]<br />
Please read the FAQ at  [<a href="http://www.tux.org/lkml/"  rel="nofollow">www.tux.org</a>]]]></description>
            <dc:creator>Arun Sharma</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Sat, 07 May 2011 02:50:03 +0800</pubDate>
        </item>
        <item>
            <guid>http://choon.net/forum/read.php?21,77563,77568#msg-77568</guid>
            <title>Re: [PATCH] Add $KERNELRELEASE to firmware install path</title>
            <link>http://choon.net/forum/read.php?21,77563,77568#msg-77568</link>
            <description><![CDATA[ On Fri, 2011-05-06 at 12:15 +0200, Michal Marek wrote:<br />
&gt; <br />
&gt; On 5.5.2011 19:39, Arun Sharma wrote:<br />
&gt; &gt; Useful in the presence of multiple kernels with different<br />
&gt; &gt; firmware versions.<br />
&gt; <br />
&gt; The changelog should also include the udev version that is able to find <br />
&gt; the firmware there (v127, August 2008). FWIW, SUSE has been using this <br />
&gt; patch since about that time, but we forgot to push this :-|. Anyway<br />
<br />
No, this is fundamentally broken. Do not do it.<br />
<br />
The firmware lives in /lib/firmware, not in /lib/firmware/$KERNELVERSION<br />
<br />
There is *no* reason to move it there. If a given firmware file changes<br />
in an incompatible way, it needs to have had a new filename *anyway*<br />
(think of it like a new soname on a shared library).<br />
<br />
And we shouldn't be updating the legacy firmware images in the kernel<br />
*anyway*; nobody should be using those any more. They were *purely* for<br />
backward compatibility. Everyone should be shipping the<br />
linux-firmware.git images instead.<br />
<br />
-- <br />
dwmw2<br />
<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  [<a href="http://vger.kernel.org/majordomo-info.html"  rel="nofollow">vger.kernel.org</a>]<br />
Please read the FAQ at  [<a href="http://www.tux.org/lkml/"  rel="nofollow">www.tux.org</a>]]]></description>
            <dc:creator>David Woodhouse</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Fri, 06 May 2011 18:19:05 +0800</pubDate>
        </item>
        <item>
            <guid>http://choon.net/forum/read.php?21,77563,77563#msg-77563</guid>
            <title>Re: [PATCH] Add $KERNELRELEASE to firmware install path</title>
            <link>http://choon.net/forum/read.php?21,77563,77563#msg-77563</link>
            <description><![CDATA[ (Adding David Woodhouse and lkml to CC, in general it's usually better <br />
to CC topic lists in addition to lkml, rather than instead of lkml.)<br />
<br />
On 5.5.2011 19:39, Arun Sharma wrote:<br />
&gt; Useful in the presence of multiple kernels with different<br />
&gt; firmware versions.<br />
<br />
The changelog should also include the udev version that is able to find <br />
the firmware there (v127, August 2008). FWIW, SUSE has been using this <br />
patch since about that time, but we forgot to push this :-|. Anyway<br />
<br />
Acked-by: Michal Marek &lt;mmarek@suse.cz&gt;<br />
<br />
<br />
&gt; Signed-off-by: Arun Sharma&lt;asharma@fb.com&gt;<br />
&gt;<br />
&gt; diff --git a/Makefile b/Makefile<br />
&gt; index e712243..cb715df 100644<br />
&gt; --- a/Makefile<br />
&gt; +++ b/Makefile<br />
&gt; @@ -997,7 +997,7 @@ depend dep:<br />
&gt;<br />
&gt;   # ---------------------------------------------------------------------------<br />
&gt;   # Firmware install<br />
&gt; -INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware<br />
&gt; +INSTALL_FW_PATH=$(INSTALL_MOD_PATH)/lib/firmware/$(KERNELRELEASE)<br />
&gt;   export INSTALL_FW_PATH<br />
&gt;<br />
&gt;   PHONY += firmware_install<br />
&gt; --<br />
&gt; To unsubscribe from this list: send the line &quot;unsubscribe linux-kbuild&quot; in<br />
&gt; the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
&gt; More majordomo info at  [<a href="http://vger.kernel.org/majordomo-info.html"  rel="nofollow">vger.kernel.org</a>]<br />
<br />
--<br />
To unsubscribe from this list: send the line &quot;unsubscribe linux-kernel&quot; in<br />
the body of a message to <a href="mailto:&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;">&#109;&#97;&#106;&#111;&#114;&#100;&#111;&#109;&#111;&#64;&#118;&#103;&#101;&#114;&#46;&#107;&#101;&#114;&#110;&#101;&#108;&#46;&#111;&#114;&#103;</a><br />
More majordomo info at  [<a href="http://vger.kernel.org/majordomo-info.html"  rel="nofollow">vger.kernel.org</a>]<br />
Please read the FAQ at  [<a href="http://www.tux.org/lkml/"  rel="nofollow">www.tux.org</a>]]]></description>
            <dc:creator>Michal Marek</dc:creator>
            <category>Linux Kernel</category>
            <pubDate>Fri, 06 May 2011 18:16:04 +0800</pubDate>
        </item>
    </channel>
</rss>
