• Sam Ravnborg's avatar
    fix modules_install via NFS · 8b249b68
    Sam Ravnborg authored
    Rafael reported:
    
    I get the following error from 'make modules_install' on my test boxes:
    
      HOSTCC  firmware/ihex2fw
    /home/rafael/src/linux-2.6/firmware/ihex2fw.c:268: fatal error: opening dependency file firmware/.ihex2fw.d: Read-only file system
    compilation terminated.
    make[3]: *** [firmware/ihex2fw] Error 1
    make[2]: *** [_modinst_post] Error 2
    make[1]: *** [sub-make] Error 2
    make: *** [all] Error 2
    
    where the configuration is that the kernel is compiled on a build box
    with 'make O=<destdir> -j5' and then <destdir> is mounted over NFS read-only by
    each test box (full path to this directory is the same on the build box and on
    the test boxes).  Then, I cd into <destdir>, run 'make modules_install' and get
    the error above.
    
    The issue turns out to be that we when we install firmware pick
    up the list of firmware blobs from firmware/Makefile.
    And this triggers the Makefile rules to update ihex2fw.
    
    There were two solutions for this issue:
    1) Move the list of firmware blobs to a separate file
    2) Avoid ihex2fw rebuild by moving it to scripts
    
    As I seriously beleive that the list of firmware blobs should be
    done in a fundamental different way solution 2) was selected.
    Reported-and-tested-by: default avatar"Rafael J. Wysocki" <rjw@sisk.pl>
    Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
    Cc: David Woodhouse <dwmw2@infradead.org>
    8b249b68
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
usr Loading commit data...
virt/kvm Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
REPORTING-BUGS Loading commit data...