| Message ID | 20230930005459.1457589-1-dzy201415@gmail.com |
|---|---|
| State | Accepted |
| Headers | show
Return-Path:
<openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
dkim=pass (2048-bit key;
secure) header.d=lists.infradead.org header.i=@lists.infradead.org
header.a=rsa-sha256 header.s=bombadil.20210309 header.b=XOJj6gga;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256
header.s=20230601 header.b=YrVtdmfg;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org
(client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;
envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org;
receiver=patchwork.ozlabs.org)
Received: from bombadil.infradead.org (bombadil.infradead.org
[IPv6:2607:7c80:54:3::133])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4Ry83m2vmfz1yp7
for <incoming@patchwork.ozlabs.org>; Sat, 30 Sep 2023 10:58:42 +1000 (AEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.infradead.org; s=bombadil.20210309; h=Sender:
Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:
List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc
:To:From: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=OGmLPS6SKQWCPHrLqPb0dKqTiILW6/kgs2EpoVjJri4=; b=XOJj6ggajKg3m5
2xECqZgDtVDSEwc55Bx74/K/ULdexe3Q7AThy+mdTer7D97U/jiwzc3CDCHKC6NAqrdFRC3jW73Uu
0fUPriSH6CyEj1xn3VB/sC+LwuwJlruXg1UyM1aPtVo1BLNOFt95ryV1vNp7HCqoibXZ6udsvmfvy
i4t60I/tL4bnTieZykRW4lwyG6LNBYgPt01+/TKnHl8WJgr+7HPwQBWZhWiglrms3HQRwXlZZ3gYR
XElkyltTy5fsCKsxd34N8GO7MFkPZ1kIoIFIrrR4d5Oy04NvEJSkaiE+kCs/wPK7n2faw0vfV8f8p
mzf3mhFXMcitJtvt5jkw==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux))
id 1qmOGZ-008kuc-1f;
Sat, 30 Sep 2023 00:55:31 +0000
Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833])
by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux))
id 1qmOGT-008kte-1e
for openwrt-devel@lists.openwrt.org;
Sat, 30 Sep 2023 00:55:27 +0000
Received: by mail-qt1-x833.google.com with SMTP id
d75a77b69052e-418201cb9e9so54070171cf.0
for <openwrt-devel@lists.openwrt.org>;
Fri, 29 Sep 2023 17:55:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1696035321; x=1696640121;
darn=lists.openwrt.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=MMhpB0O1ZjZ1GQM6D6Tow14dxqyimCzFjCpdexrMGFQ=;
b=YrVtdmfgJhSx0ubUc2iiiiFbXK4ZaAF4B2YIOf2Sm+YRM5vGhjY9ewHLkPi/6B0SOA
f/dWZk3tawoSLXSok308xJIqOP7SVdVgKOVG+Pd4j6UBTSDfaxTaJMLiQxy3DJUdo43J
KsM3IC7XYzjZ6+vNV+RPjbddX/2Rm7Hhnk88QSPv0hzMNyKmhVDNk5Z1TLJbiBNZeAf5
q33dQUAEhwEPzWn3Hg1JptbWDBjnIYWdEq+zmaRHl/yTrQEpysKhalS8drJNnB4dFeRK
h5NUztE8qGYd2dsPLD3NApMI2RzOOlWMcbYc7hWHjmie9mxxy+KI1WaNcKlVOxpt0bXb
oyJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1696035321; x=1696640121;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=MMhpB0O1ZjZ1GQM6D6Tow14dxqyimCzFjCpdexrMGFQ=;
b=OtvrrjlaGG/iVv+09NeYtEf3t8iYRCQxzJQbanCIpi6YPYjtz+rs2WRoHjOQ0B8wA5
L8rzCqphzlE6l4BhKe88D+D/cxSsHd0PI8BmY+CoK0ra0mMxHjS+HCDvLhIv66HdhHRB
lLLqYKNFuJ4kYesB/jaZhXM3cKbPdHT6G4L3KygeoUqJzgJ6WavU0cX6+xgKCO93C/MK
olJytB3yZh3PLcLd0It3x5KDrIphSkkJTkXeyrUGz19DRvgfxUCAecDE6JGnttE0M+PV
Vt229PhzYwpx6cTccA0DFSBzWDIDpoUGOS3g38nXZj0aD+XkzraxmbhvzRUg9R0OplYL
1E8Q==
X-Gm-Message-State: AOJu0Yy22mJ2GT1cwCNiH+X5x8+7WzdilucVc3Ie3cIsoK4q/1M4fNKo
gXq+iJIE5mRwdeFJceiZO9vznE2VkfvTbw==
X-Google-Smtp-Source:
AGHT+IGX58a0QGLClYIGQqSNg5bkpgmeEkZgE73ZM0xqDlNqlgwFlS3kcBCxHB8LulaEmG3Ast8shQ==
X-Received: by 2002:a05:622a:288:b0:417:9c63:391c with SMTP id
z8-20020a05622a028800b004179c63391cmr6885192qtw.52.1696035321020;
Fri, 29 Sep 2023 17:55:21 -0700 (PDT)
Received: from srv365-15.cewit.stonybrook.edu (srv365-15.cewit.stonybrook.edu.
[130.245.191.126])
by smtp.gmail.com with ESMTPSA id
x10-20020ac87a8a000000b00418be3e365fsm3360264qtr.1.2023.09.29.17.55.20
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 29 Sep 2023 17:55:20 -0700 (PDT)
From: Zeyu Dong <dzy201415@gmail.com>
To: openwrt-devel@lists.openwrt.org
Cc: Zeyu Dong <dzy201415@gmail.com>
Subject: [PATCH 1/2] build: cache kernel module package compiling
Date: Fri, 29 Sep 2023 20:54:58 -0400
Message-Id: <20230930005459.1457589-1-dzy201415@gmail.com>
X-Mailer: git-send-email 2.25.1
MIME-Version: 1.0
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20230929_175525_544172_F9637B8D
X-CRM114-Status: GOOD ( 10.52 )
X-Spam-Score: 0.1 (/)
X-Spam-Report: Spam detection software,
running on the system "bombadil.infradead.org",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Kernel module packages compiling is not cached (e.g.
mac80211)
even with CONFIG_CCACHE on. CC should be set to KERNEL_CC in
KERNEL_MAKE_FLAGS
at kernel.mk to allow kernel module packages using ccache.
Content analysis details: (0.1 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
-0.0 SPF_PASS SPF: sender matches SPF record
0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider
[dzy201415[at]gmail.com]
0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
in digit
[dzy201415[at]gmail.com]
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from
author's domain
-0.1 DKIM_VALID Message has at least one valid DKIM or DK
signature
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.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/,
no trust
[2607:f8b0:4864:20:0:0:0:833 listed in]
[list.dnswl.org]
X-BeenThere: openwrt-devel@lists.openwrt.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org>
List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>,
<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>
List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/>
List-Post: <mailto:openwrt-devel@lists.openwrt.org>
List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help>
List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>,
<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org>
Errors-To:
openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org
|
| Series |
[1/2] build: cache kernel module package compiling
|
expand
|
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 6a0251a9e2..7848b8e8f0 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -9,10 +9,6 @@ endif INITRAMFS_EXTRA_FILES ?= $(GENERIC_PLATFORM_DIR)/image/initramfs-base-files.txt -ifneq (,$(KERNEL_CC)) - KERNEL_MAKEOPTS += CC="$(KERNEL_CC)" -endif - export HOST_EXTRACFLAGS=-I$(STAGING_DIR_HOST)/include # defined in quilt.mk diff --git a/include/kernel.mk b/include/kernel.mk index 3012eb8993..8236416132 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -119,6 +119,10 @@ KERNEL_MAKE_FLAGS = \ cmd_syscalls= \ $(if $(__package_mk),KBUILD_EXTRA_SYMBOLS="$(wildcard $(PKG_SYMVERS_DIR)/*.symvers)") +ifneq (,$(KERNEL_CC)) + KERNEL_MAKE_FLAGS += CC="$(KERNEL_CC)" +endif + KERNEL_NOSTDINC_FLAGS = \ -nostdinc $(if $(DUMP),, -isystem $(shell $(TARGET_CC) -print-file-name=include))
Kernel module packages compiling is not cached (e.g. mac80211) even with CONFIG_CCACHE on. CC should be set to KERNEL_CC in KERNEL_MAKE_FLAGS at kernel.mk to allow kernel module packages using ccache. Signed-off-by: Zeyu Dong <dzy201415@gmail.com> --- The package Makefile is not sourcing kernel-defaults.mk, where CC is set to KERNEL_CC, which will be ccache when CONFIG_CCACHE is on. Also, some module packages are using KERNEL_MAKE_FLAGS instead of standard KERNEL_MAKE to compile. --- include/kernel-defaults.mk | 4 ---- include/kernel.mk | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-)