From patchwork Sat Sep 30 00:54:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zeyu Dong X-Patchwork-Id: 1841501 X-Patchwork-Delegate: ansuelsmth@gmail.com Return-Path: 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=NgERQbTc; 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=BaYjAXbm; 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 4Ry83v26fVz1yp7 for ; Sat, 30 Sep 2023 10:58:51 +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:References:In-Reply-To: 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: List-Owner; bh=RYWCIPKFXCGinHLnR0OxD6/Z7gDf8epwHSW0Il6sR90=; b=NgERQbTcwEt90C TeAAF9JuV5ouxAtknneHZC/JuriV6rHd5HsdUeCPWUJB+mD6u+6vbGGxHHHoVhqKUvpH39kTwE8er qgOoNK4ct/HOl370sBPa3R3Uyf8a/3qZodrSY8z8e1KrRZemLBpT5vuRdR7ttG+q1ZEteBbWCTqgr UbTCe0oiWiTKX5Bu5+uph1v5Mfa+pN4ngAe64tdeE4055Q9ZFyb2B0gG8if2wyZV7N++Ek6nexgmg v1X2F0ZgmKcm/wT96+olHw0Oi06VTxWsA6kXpYAxXHkFudFWVQJMi4F74/S9WSlMv32Q6TlcMrIgo w4FVveP4X6mqlqeZfcaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qmOGY-008kuT-1E; Sat, 30 Sep 2023 00:55:30 +0000 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qmOGT-008ktg-14 for openwrt-devel@lists.openwrt.org; Sat, 30 Sep 2023 00:55:26 +0000 Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-4180b417309so67683991cf.0 for ; Fri, 29 Sep 2023 17:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696035322; x=1696640122; darn=lists.openwrt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yh0dmXLosm6iyoFq8hP2dVliI1QPn1POAE40NuG9L9s=; b=BaYjAXbmM9+B/KgArqFINhLhIvoz3OgUUmNQRRLuQtoxEARLEMkfOdIgDSaPujAKjI FPcJSqwgi1A+l6Ni8i8MDAUMj/N9Q5TKQpu4f4yOqklI9AC5UeMlId0HUVIfYkK+Zoox U6KtWM35X6ktjTWENhQ1Bj7y8CIUlywen1k5yX6mIOqM9VLJ6m8mRevuJNet7XLHvPzl GOpjGwcmnojKCdwjAnC0D3sisnnKnQ5sdq2VYeOyz/lWC6dhZo9M1gkdF/8psiTJ9zr1 cxnLoWQXBDIbVIskmZv5KVo0riB5xcQTkR9ZeyDCLrkVVAqwMIE6R3vNGQu8bX5bBqM/ DIRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696035322; x=1696640122; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yh0dmXLosm6iyoFq8hP2dVliI1QPn1POAE40NuG9L9s=; b=PXMDuMdw6lPJZUaa7lKAD02dCgfaiYk2+bJe3rY/+YXhpb4ljjhE4JtaL4FTXXBaVZ 5t56QMkFAKIONAqTmiWJb4L8cuLdsPKHnkYytn7BT6Jcl9+iPUshOoAyCBBrPZE+BxBo 52hNJK+xJmhjJaDOYilwCa2RtrcwtnUKRMavIiY+n8gF7/D3uUQ18vZr2UP3SLv/MIzC /59WX40FRLgLo+lxRNMaVnqzfLAx/FR14m5sa64rDA2wUg7CfTQT3Kuuzz3Fs0dky0vt g3hhmrAosqAxhmqWY3xcpQxw4acDF1MX8YKuUiwc4gb2rihL+8oZfelcQ/EoCqQDiajN laVA== X-Gm-Message-State: AOJu0YwCJLDMd4ssgSW7zwQvUNxjzR4OImlKjE58uxct261yexfNN5K8 PxBgY7L3lzsWS97Wl4fPaFLsKQepvZekTw== X-Google-Smtp-Source: AGHT+IGJ8aTzaiRRYtOdc6gyiyfNsQDlmcLUvPFVHt8YXnNdJc7Sha80P6Jo/qAdBDPXuvtS8+8Acw== X-Received: by 2002:ac8:5747:0:b0:419:529e:dcee with SMTP id 7-20020ac85747000000b00419529edceemr7299807qtx.50.1696035322528; Fri, 29 Sep 2023 17:55:22 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 17:55:22 -0700 (PDT) From: Zeyu Dong To: openwrt-devel@lists.openwrt.org Cc: Zeyu Dong Subject: [PATCH 2/2] mac80211: compile kconf with host gcc Date: Fri, 29 Sep 2023 20:54:59 -0400 Message-Id: <20230930005459.1457589-2-dzy201415@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230930005459.1457589-1-dzy201415@gmail.com> References: <20230930005459.1457589-1-dzy201415@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230929_175525_394421_027168A9 X-CRM114-Status: GOOD ( 11.07 ) 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: Fix the building issue setting CC to KERNEL_CC in kernel.mk. The kernel backports by default uses CC to compile kconf. A new patch is added to mac80211 to compile kconf with host gcc. Signed-off-by: Zeyu Dong --- .../build/004-fix-kconf-compiling.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/kernel/mac80211/patches/build/004-fix-kconf- [...] 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:830 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 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 Fix the building issue setting CC to KERNEL_CC in kernel.mk. The kernel backports by default uses CC to compile kconf. A new patch is added to mac80211 to compile kconf with host gcc. Signed-off-by: Zeyu Dong --- .../build/004-fix-kconf-compiling.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/kernel/mac80211/patches/build/004-fix-kconf-compiling.patch diff --git a/package/kernel/mac80211/patches/build/004-fix-kconf-compiling.patch b/package/kernel/mac80211/patches/build/004-fix-kconf-compiling.patch new file mode 100644 index 0000000000..b61136cc5d --- /dev/null +++ b/package/kernel/mac80211/patches/build/004-fix-kconf-compiling.patch @@ -0,0 +1,39 @@ +Index: backports-6.5/Makefile.real +=================================================================== +--- backports-6.5.orig/Makefile.real ++++ backports-6.5/Makefile.real +@@ -6,6 +6,8 @@ else + export BACKPORTS_GIT_TRACKER_DEF= + endif + ++HOSTCC=gcc ++ + # disable built-in rules for this file + .SUFFIXES: + +@@ -24,21 +26,21 @@ listnewconfig oldaskconfig oldconfig \ + silentoldconfig olddefconfig oldnoconfig \ + allnoconfig allyesconfig allmodconfig \ + alldefconfig randconfig: +- @$(MAKE) -C kconf conf ++ @$(MAKE) -C kconf CC=$(HOSTCC) conf + @./kconf/conf --$@ Kconfig + + .PHONY: usedefconfig + usedefconfig: +- @$(MAKE) -C kconf conf ++ @$(MAKE) -C kconf CC=$(HOSTCC) conf + @./kconf/conf --defconfig=defconfig Kconfig + + .PHONY: savedefconfig + savedefconfig: +- @$(MAKE) -C kconf conf ++ @$(MAKE) -C kconf CC=$(HOSTCC) conf + @./kconf/conf --savedefconfig=defconfig Kconfig + + defconfig-%:: +- @$(MAKE) -C kconf conf ++ @$(MAKE) -C kconf CC=$(HOSTCC) conf + @./kconf/conf --defconfig=defconfigs/$(@:defconfig-%=%) Kconfig + + .config: