From patchwork Wed Nov 18 21:58:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Kemper X-Patchwork-Id: 1402561 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmx.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=R2TQepQr; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=d5FClZF2; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CbxZg0nV0z9sTR for ; Thu, 19 Nov 2020 09:00:43 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=uHXDf1UGMGMurmKAPyKcrkvZTV7jsTIncXiarljaRn4=; b=R2TQepQr1F6knUFp/3AbqPmtqj DG7ZOOX2s+mZvxwTPBtObARBLzU7NaQNoQgEJxRyUKd9OaQBl4g8xt4W0cds34fvwbEXRuPYUzL+P Ey8Do9e7MP7k/KaY1935NkajUUCOB8d65pvpGKi+maSGsxzBHwi6YFPc2cehwOo/j1C2XJFZe2BVG 0MYkj9Sd2BXNSRcCsHxYueykVgAWHFjmxXHHhBwi2INg5I0WBOVMVqXXOtmVXYpwFJ/NluJeqk+0v eyBSHUN9+dun1OxU+j19QROpFAKeoKozn2jAIZdUD7ammEaLse+UrJOjZTayY4DTbnbjEsSnMYcz6 g+kyK4nw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfVTn-0006zL-0E; Wed, 18 Nov 2020 21:59:07 +0000 Received: from mout.gmx.net ([212.227.15.15]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfVTj-0006yp-NN for openwrt-devel@lists.openwrt.org; Wed, 18 Nov 2020 21:59:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605736740; bh=AcUu8xLsUloUB6/aQRLpV0NAYv6Y4Kzf5SLoWBlkU5Q=; h=X-UI-Sender-Class:Date:From:To:Subject; b=d5FClZF2iGzopAbLU6hKJPzPpBogQ3xEsdPJyWPo1xbTiUvLqJjphCvT2V042qEOz sFDMg3ChJhyH+O2epA3RVci8DKXRIBtlLH/HKD6uC9xSIk1FV2P7nuGtYmR3Y5lSb2 XS/JP7uXmdL8/6+24Vol9LPldufr27w1iYu7E0j0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from darth.lan ([62.14.67.167]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N1OXZ-1kHXfb0SpX-012nWc for ; Wed, 18 Nov 2020 22:59:00 +0100 Date: Wed, 18 Nov 2020 22:58:58 +0100 From: Sebastian Kemper To: openwrt-devel@lists.openwrt.org Subject: [PATCH v4] build: create $(PKG_SYMVERS_DIR) if non-existent Message-ID: <20201118215858.GA6573@darth.lan> Mail-Followup-To: openwrt-devel@lists.openwrt.org MIME-Version: 1.0 Content-Disposition: inline X-Provags-ID: V03:K1:l00Yen8kLA8h3FCwSMoRpSrXAi27E71M2T4KWGQ6HxioV+uXZPv KDok/jnVHQp7MYSYhFlxtKqw5xAYUSEkehozBaIZNLRLeBXEbK5lUSvc68IR20u3YzmmU5K mk9ake3YelTGNgnD8gvfzesj/Qr4gaVaNmsUv8yNsacHSp/feJE19h2S3FWk8Zk5CGkidYk SSrTKbQ4x4oeJD/x08Etw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:H9hOZDNOdbA=:2EJVCCEwuPu5dWJwEdZdzn LczJDWwN5giILTa1/SYWU3aUbRr7nY1utUZpDhlA6N47PZL+OuXzr8NGo2MC98K5ncv/iJuER puhyxoO9crJi23v8DGi00DuE/j9btRlDVKRdJmrlb+pdfgzhIZVuGeJ5o0VOUCzViPQRIhayF BWhaZlBEJZ0f1GlJy61T5SMOMcPxYjtsHC5hDgjtiO5jDxGxe2q5z3fpFWAUptjlE0OxU9P8m NPhzeR2nFgLMq4P1RVGlPzZz5Gbh7AdmnpJtI7eMdI5OzBxwNk4njCkzPt7Oby/ESKY55MpYd dW9PMv3bNs3bh75B4nHB1I2I1+msuZmw1oV4bfPp2Mzy6vSrTqsGoHKTR1UCYahSH1eafFKc3 dQy5O5eerHYAaBszsambPsfidgh7J6oIiZvzssCTII+tPkfp9BHhcMaiGYvTPXRmdUhc8kXks XC/odZUmRwnPEg23LR+TTDCpUT6numNB72GyqLX6dqfD9hKNtCHvcMOKMIWC2U0bFtONq8N3q xyxV52qQE6+wnE7W+1TN6Hqzqyb1KQG5ZI8gJGiw683nFi8XVbPopZ0P9xKFimRE++gi3yIIY j+07YAGZcejIJHkZnFLLATVjT+JzhI0JrOlQX61vieV3Df2pfhT4RhiJwbg0HLsg7Iz0+6VsV +ar0iOAZUFavuJzGqQjY1484Jkt3sVWoJiGa/kmm0lBJJuAdhoHt9iVIDgq5p1UOMl7LFq1IL VzZN5isYfT2lr0YgWgdLmTeQeCEiENhoEyeGdsRdFalTO8k50tKYGyYvBJClAjGR/hZ3F7Las T64vZNfFkbBwpvakjs1Ud3pIdiGK1/bpFtV6ufXd0TCkgU+WQLv2ex9rNj8I506cgAi6bB4lx ymEYePZtwbZjkxDVuYkg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201118_165903_968983_4E440B0D X-CRM114-Status: GOOD ( 11.37 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [sebastian_ml[at]gmx.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.15 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.15 listed in list.dnswl.org] X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Commit 5d76065 moved the creation of the symvers directory to include/kernel-build.mk. This is fine when building from scratch. But when unpacking an SDK the directory doesn't exist and because the kernel won't be built (again) this directory will not be created by the build system, causing build failure if make tries to copy files into it. This moves the creation of the symvers directory back into include/kernel.mk so that the directory is created in any case. Signed-off-by: Sebastian Kemper --- include/kernel-build.mk | 1 - include/kernel.mk | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) -- 2.26.2 diff --git a/include/kernel-build.mk b/include/kernel-build.mk index a698deec3c..22f7c4c7c7 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -136,7 +136,6 @@ define BuildKernel $(LINUX_DIR)/.modules: export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig $(LINUX_DIR)/.modules: $(STAMP_CONFIGURED) $(LINUX_DIR)/.config FORCE $(Kernel/CompileModules) - mkdir -p $(PKG_SYMVERS_DIR) touch $$@ $(LINUX_DIR)/.image: export STAGING_PREFIX=$$(STAGING_DIR_HOST) diff --git a/include/kernel.mk b/include/kernel.mk index 1ae9c6be29..1466048b0c 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -149,6 +149,7 @@ define collect_module_symvers grep -F $$$$realdir $(PKG_BUILD_DIR)/$$$$subdir/Module.symvers >> $(PKG_BUILD_DIR)/Module.symvers.tmp; \ done; \ sort -u $(PKG_BUILD_DIR)/Module.symvers.tmp > $(PKG_BUILD_DIR)/Module.symvers; \ + mkdir -p $(PKG_SYMVERS_DIR); \ mv $(PKG_BUILD_DIR)/Module.symvers $(PKG_SYMVERS_DIR)/$(PKG_NAME).symvers endef