lkml.org 
[lkml]   [2012]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] deb-pkg: Fix build error on read-only source
$ 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


\
 
 \ /
  Last update: 2012-03-20 11:35    [W:0.023 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site