From patchwork Tue Nov 17 21:59:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Kemper X-Patchwork-Id: 1401878 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 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 4CbKdF1k8qz9s1l for ; Wed, 18 Nov 2020 09:00:44 +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:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=pXnqaDpn+8lwIQcmLqX0uYSGah46B467oreMO1gSKrY=; b=UxKrEcIYb45ywepYSIr6tXOJeM zDBekISnGaxaQr4CpGU4EYQZ9JNEkFkmCUtxb8YluvXpO2o2dviDlobo4ogszZnewFQ86cTEb2pkQ G/bMHjnYX4sJ50zJaIg1vX3amdnMeEN801r5MrDKE0FzcP1CvDxxFkNFsw032/SnbaaVszDoCaxPd IISGk+fWERfw01DfXLfHfyuTpA53Z/bXGjnj0f7WPdSriT7Nhd2odfYMPbLTlq5vhPym0c42Bnv5W 4HrphJutpnfShVo6d2fFlOXexG7tg+r5jX8I0jETVxX92qhaoCC5/F9Qilc+yMhqlbd1aIY1xneGX kJfByDxw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf90N-0001Fa-3W; Tue, 17 Nov 2020 21:59:15 +0000 Received: from mout.gmx.net ([212.227.15.19]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf90K-0001F7-6k for openwrt-devel@lists.openwrt.org; Tue, 17 Nov 2020 21:59:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605650350; bh=9gj9L1TrlfjRiwXpbJtrakMnmBNH9MvUlyXhiJGt/hw=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=JvReUut7q/ewJ/9G79hgljuQyzElGJRwjA73GS5z/OnjaHGbeeRJu5VDwDhuMKhCS 2VpTXSjnQIE+NoW7szRvBo/KNOBJzLneaRyxtSsH/8c8XVR9fwqkFOcRg6y/NRLD2M Q0tptTC8YhVBie0nMbCDgfRcBwv5YnjQiwHQ1NFM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from darth.lan ([62.14.66.187]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MD9X9-1kWeXn1RJZ-0095TT; Tue, 17 Nov 2020 22:59:10 +0100 Date: Tue, 17 Nov 2020 22:59:08 +0100 From: Sebastian Kemper To: openwrt-devel@lists.openwrt.org Subject: [PATCH v2] build: create $(PKG_SYMVERS_DIR) if non-existent Message-ID: <20201117215908.GA3894@darth.lan> Mail-Followup-To: openwrt-devel@lists.openwrt.org, nbd@nbd.name MIME-Version: 1.0 Content-Disposition: inline X-Provags-ID: V03:K1:nxCidjl5o6o3JjKCy0zZ9Mewhv1H5jtOM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XBx8BFxua6FKrwd6hLGXUoc/KW44xVirXO6MwNX/eeY7V3Yie2oyMW858nm2wKo UIngYuT9vv+Y2/U8dMaw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201117_165912_503390_040DCAB4 X-CRM114-Status: GOOD ( 11.87 ) 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.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.15.19 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [sebastian_ml[at]gmx.net] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.15.19 listed in wl.mailspike.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 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: , Cc: nbd@nbd.name 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 Acked-by: Paul Spooren --- 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..e803ff44e7 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -140,6 +140,7 @@ endif PKG_EXTMOD_SUBDIRS ?= . PKG_SYMVERS_DIR = $(KERNEL_BUILD_DIR)/symvers +$(shell mkdir -p $(PKG_SYMVERS_DIR)) define collect_module_symvers for subdir in $(PKG_EXTMOD_SUBDIRS); do \