lkml.org 
[lkml]   [2008]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in more drivers.
    From
    Date
    On Tue, 2008-07-15 at 13:49 -0700, David Woodhouse wrote:
    > Sam, why do we have FORCE on the rules for $(hostprogs-y)? It forces the
    > ihex2fw tool to be rebuilt, which in turn forces all .HEX->.fw
    > conversions to happen again, which means that 'make modules_install'
    > wants to write to the source tree. That's a problem in some strange
    > situations like Rafael's, where he builds on another host and exports
    > the tree read-only by NFS.
    >
    > Can we do this? ...

    Alternatively, Rafael, does this do it for you?

    --- a/firmware/Makefile
    +++ b/firmware/Makefile
    @@ -150,11 +150,11 @@ $(obj)/%: $(obj)/%.ihex | $(objtree)/$(obj)/$$(dir %)
    # is actually meaningful, because the firmware has to be loaded in a certain
    # order rather than as a single binary blob. Thus, we convert them into our
    # more compact binary representation of ihex records (<linux/ihex.h>)
    -$(obj)/%.fw: $(obj)/%.HEX $(obj)/ihex2fw | $(objtree)/$(obj)/$$(dir %)
    +$(obj)/%.fw: $(obj)/%.HEX | $(obj)/ihex2fw $(objtree)/$(obj)/$$(dir %)
    $(call cmd,ihex2fw)

    # .H16 is our own modified form of Intel HEX, with 16-bit length for records.
    -$(obj)/%.fw: $(obj)/%.H16 $(obj)/ihex2fw | $(objtree)/$(obj)/$$(dir %)
    +$(obj)/%.fw: $(obj)/%.H16 | $(obj)/ihex2fw $(objtree)/$(obj)/$$(dir %)
    $(call cmd,h16tofw)

    $(firmware-dirs):
    --
    dwmw2



    \
     
     \ /
      Last update: 2008-07-15 23:01    [W:9.223 / U:0.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site