Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp928146imp; Thu, 21 Feb 2019 14:20:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IYd2E3+3fi4uRFm5c7dvrKjw/tSi6QyX1H+e+78gu9R4gz0BxSrhK1218pr+G/LoY5IuWmK X-Received: by 2002:aa7:854d:: with SMTP id y13mr766185pfn.175.1550787606971; Thu, 21 Feb 2019 14:20:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550787606; cv=none; d=google.com; s=arc-20160816; b=mlY+N9ZtAgOGPBPNsMHGTOKteT0KCvSz+r3VkOwPbHLJj+G6KFwdtBT3ue8oX2Z+Ee 0S1epfIJQfv7utVAEaHuriI6oQ0j2RJFYFiew3FTsZGhfb5uSbRUv61k+INJscMm+c91 nAkkzL+HMcGiFrCrioqaAcMjxGZ1/ZGsqBLxqgqB9tf/gLvMsmNNKsHb/o5QeSpFkkrF y/XQFiYEJc5z/n2zApymxbmOxBjHbYDI4u+iXnuwh+AcM9RjE0PAos88U6CdKLaEqN3s 2LZV7kF7cd0dK5lPB6QuuoRWr3vmfGfXcJXWET9DRrY4MHG4DPeIMjFmeIPDV9KsxQiN aJfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:message-id:date:cc:to:from:dkim-signature; bh=6N2j+bNL0gOJ2tzgrtS3/j2GtU2hhi8XT+54g8td/EY=; b=xOoK4s36S2qO7iM1ALGp4HPZTlix4ny7yVoYLAmnZgvhIjAVgC7th3anePhyyb0lRg O8Az5dqSK/64enaQsCnQdJ1IRqnPJQdhIaC5R0Hco0ZjAzi50oAYgq21Hba2zGjNG4Bu iima3LmZrc54hWZrw3AUbnqw31iFRfnr+JNPuqKPy/TxaLIj8ixl1RoSIxm3Y/DnTzsI gLMIfT/xIsODm0P4vIOMDG7BGPKXKiZDHEeJk69s42Wt0OrNVAOZ0yaYN4ThRVYJyLqR njfXlisnZeKjvGTg+ogr/3aFNnA9oe4FLLa1lNyihHt+Es/MfyzHmquCfiDnu/p5qkWH KR+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cs.msu.ru header.s=dkim header.b="KxX03O/W"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cs.msu.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r25si67493pfd.91.2019.02.21.14.19.51; Thu, 21 Feb 2019 14:20:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@cs.msu.ru header.s=dkim header.b="KxX03O/W"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cs.msu.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726749AbfBUWTX (ORCPT + 99 others); Thu, 21 Feb 2019 17:19:23 -0500 Received: from imap.cs.msu.ru ([188.44.42.39]:54283 "EHLO mail.cs.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbfBUWTV (ORCPT ); Thu, 21 Feb 2019 17:19:21 -0500 X-Greylist: delayed 1160 seconds by postgrey-1.27 at vger.kernel.org; Thu, 21 Feb 2019 17:19:19 EST DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cs.msu.ru; s=dkim; h=Subject:Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Cc: To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6N2j+bNL0gOJ2tzgrtS3/j2GtU2hhi8XT+54g8td/EY=; b=KxX03O/Wc040AkdSOaxPTcdrJ0 UWTkAeY548ZYK90IhdrEOF/4r2pP+1eCObsk7rmK229I01Be1GdITnF3WHsXon1vF6bBIaNYgETls 2Nz3HliKIQutyJwflh5+pvrb8uuYfvsbj2Q0sryvbmsCJnhcNMrtGQ0nrtkEkq7Mt9onMbY2iH5LH lIJL3w1oeYl1ZVOPPIiJbwhzojfvu1V1uq3pvbQkgBpO7hFJ5HDYIujISJG8YEmTQb2kw6LPUiGfr BD3UE/48kxk/90cVuvis/jWYPZvlZsa7JP28+SHFpfFVmI52RiDPAPj9Xiep5ONs1i6fDm4z/Zjec iH1UJY2w==; Received: from [37.204.119.143] (port=58724 helo=localhost.localdomain) by mail.cs.msu.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gwwNh-0004BO-PF; Fri, 22 Feb 2019 00:59:49 +0300 From: Arseny Maslennikov To: Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Arseny Maslennikov , Riku Voipio Date: Fri, 22 Feb 2019 00:58:57 +0300 Message-Id: <20190221215901.23970-1-ar@cs.msu.ru> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 37.204.119.143 X-SA-Exim-Mail-From: ar@cs.msu.ru X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.cs.msu.ru X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_ALL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Subject: [PATCH] scripts/package/Makefile: put proper config in source tarball X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail.cs.msu.ru) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is widely known that one can build a kernel without a .config in the source tree by setting KCONFIG_CONFIG equal to the actual configuration file path. When making a *-pkg target, make(1) prepares a source tarball and tries to pack `.config' in there regardless of the value of KCONFIG_CONFIG, failing spectacularly if .config is absent and packing the wrong config if it exists. Let's fix that. Signed-off-by: Arseny Maslennikov --- scripts/package/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package/Makefile b/scripts/package/Makefile index 453fecee62f0..100a0d28ad25 100644 --- a/scripts/package/Makefile +++ b/scripts/package/Makefile @@ -27,7 +27,7 @@ KDEB_SOURCENAME ?= linux-$(KERNELRELEASE) KBUILD_PKG_ROOTCMD ?="fakeroot -u" export KDEB_SOURCENAME # Include only those top-level files that are needed by make, plus the GPL copy -TAR_CONTENT := $(KBUILD_ALLDIRS) .config .scmversion Makefile \ +TAR_CONTENT := $(KBUILD_ALLDIRS) $(KCONFIG_CONFIG) .scmversion Makefile \ Kbuild Kconfig COPYING $(wildcard localversion*) MKSPEC := $(srctree)/scripts/package/mkspec -- 2.20.1