From patchwork Mon Mar 7 07:05:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cong Wang X-Patchwork-Id: 614711 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2775qrA008005 for ; Mon, 7 Mar 2011 07:05:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753586Ab1CGHFw (ORCPT ); Mon, 7 Mar 2011 02:05:52 -0500 Received: from mail-vx0-f174.google.com ([209.85.220.174]:40549 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291Ab1CGHFv (ORCPT ); Mon, 7 Mar 2011 02:05:51 -0500 Received: by vxi39 with SMTP id 39so3486353vxi.19 for ; Sun, 06 Mar 2011 23:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=Xk+z/VyKOv4pUi6UzvTFLCE7ebZfOcTfV55g4wgFDEE=; b=CzJiyJ9+w0HgNcau2yKgOhg8YOnnA02OulTapD8ryicpCRnCaF8ZX6G5jr/icBUwHC C9pU5kutkW249LIm/Cm8mjHTDpfMUHu7UUalz3IjIiveXgiDfDpvXawlC93RfBOjUPVg 9OtK9NA/26TJviogjEImnYuEigYzzOStpxtKw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=XT2c5+P7WWiebf+2GdfZbRF8kHuwXghBHAtacAqwDCu+nq6bcctnQpIvmcZUik7NqW SHPWgErjxCEJuhLHqbqw4FfpesCg4buXG/8vYEBrL4TYC7dSWisItqJJLC8HAsPtRqHR oIQLa5ZgNwR6eviG5CgmceiD2fw7eV1FC7FTE= Received: by 10.52.178.234 with SMTP id db10mr269042vdc.10.1299481548047; Sun, 06 Mar 2011 23:05:48 -0800 (PST) Received: from cr0.redhat.com ([123.135.217.68]) by mx.google.com with ESMTPS id h18sm1615589vbr.14.2011.03.06.23.05.41 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 06 Mar 2011 23:05:46 -0800 (PST) Date: Mon, 7 Mar 2011 15:05:10 +0800 From: =?utf-8?Q?Am=C3=A9rico?= Wang To: Christian Kujau Cc: LKML , nicolas.2p.debian@free.fr, mmarek@suse.cz, max@stro.at, linux-kbuild@vger.kernel.org Subject: Re: cannot create include/linux/version.h.tmp: Read-only file system Message-ID: <20110307070510.GA1166@cr0.redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 07 Mar 2011 07:05:52 +0000 (UTC) diff --git a/Makefile b/Makefile index 26d7d82..37163fa 100644 --- a/Makefile +++ b/Makefile @@ -979,7 +979,7 @@ define filechk_version.h echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) endef -include/linux/version.h: $(srctree)/Makefile FORCE +include/linux/version.h: $(objtree)/Makefile FORCE $(call filechk,version.h) include/generated/utsrelease.h: include/config/kernel.release FORCE diff --git a/scripts/package/Makefile b/scripts/package/Makefile index d0b931b..b5c3b67 100644 --- a/scripts/package/Makefile +++ b/scripts/package/Makefile @@ -26,7 +26,7 @@ RPM := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \ else echo rpm; fi) # Remove hyphens since they have special meaning in RPM filenames -KERNELPATH := kernel-$(subst -,,$(KERNELRELEASE)) +KERNELPATH := $(objtree)/kernel-$(subst -,,$(KERNELRELEASE)) MKSPEC := $(srctree)/scripts/package/mkspec PREV := set -e; cd ..;