[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kbuild
Subject:    [PATCH] deb-pkg: Fix build error on read-only source
From:       Kusanagi Kouichi <slash () ac ! auone-net ! jp>
Date:       2012-03-20 10:26:27
Message-ID: 20120320102628.02DC16FC039 () msa105 ! auone-net ! jp
[Download RAW message or body]

$ make O=/tmp/a V=1 deb-pkg
...
make -C /usr/src/linux O=/tmp/a/. headers_check
set -e; : '  CHK     include/linux/version.h'; mkdir -p include/linux/;         (echo \
\#define LINUX_VERSION_CODE 197376; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) \
+ ((b) << 8) + (c))';) < /usr/src/linux/Makefile > include/linux/version.h.tmp; if [ \
-r include/linux/version.h ] && cmp -s include/linux/version.h \
include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else : '  UPD    \
include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; \
                fi
/bin/sh: 1: cannot create include/linux/version.h.tmp: Read-only file system
make[4]: *** [include/linux/version.h] Error 2
make[3]: *** [all] Error 2
make[2]: *** [deb-pkg] Error 2
make[1]: *** [deb-pkg] Error 2
make: *** [sub-make] Error 2

Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
---
 scripts/package/builddeb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 3c6c0b1..ceb1de2 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -127,8 +127,8 @@ if grep -q '^CONFIG_MODULES=y' .config ; then
 	fi
 fi
 
-make headers_check
-make headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr"
+make KBUILD_SRC= headers_check
+make KBUILD_SRC= headers_install INSTALL_HDR_PATH="$libc_headers_dir/usr"
 
 # Install the maintainer scripts
 # Note: hook scripts under /etc/kernel are also executed by official Debian
-- 
1.7.9.1

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic