From patchwork Sat Sep 30 01:26:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zeyu Dong X-Patchwork-Id: 1841502 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=w0G1UqU1; 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=WxyfV2kb; 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 4Ry8kh4gJcz1yp7 for ; Sat, 30 Sep 2023 11:28:59 +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=Dbu4gcRCX0VCUZP6DSm4PZaO/veQzXKLyl3cB6pi7HI=; b=w0G1UqU1YHduVg DPbDeg4Yh1xN4/f2iNXtvBcQXWYBdbgXApAvuOfZujrCJeQFIPgRuiYVvKw5tForuNa/5heKrruUJ 323/7AywcEaXtPrlQF9BOTz/ZYjM5RchlAtzKwzwFcKkzgf0SpeljxROJt+IQqt+mcvZ3Sdj5r2VN SqHoH3jDzpUhQLruiG7Yog2KSFfl4pBGfCbNwPiBN/FcETkbdb+zcK5vLX13heejjavb+Kn+yadAu i1FefhsVEvmTi3x4xK1pgfwQU7sNsUz4J3hLHUEKmDKDmtTDo3E1ASd+8pfAl11ZxyoiZMhk99nxp de55SgB/zJxUd07ZJBHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qmOlH-008mL2-1Q; Sat, 30 Sep 2023 01:27:15 +0000 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qmOlE-008mKi-2O for openwrt-devel@lists.openwrt.org; Sat, 30 Sep 2023 01:27:14 +0000 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-65d066995aeso22278406d6.2 for ; Fri, 29 Sep 2023 18:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696037231; x=1696642031; 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=xlicqcjvFqoCLjDlvP5ly8vBy/02B5wEdXYMIhOKrRk=; b=WxyfV2kbg2++Pr9f1blgJNzu0b+WJN3oNQlwk0AuCYnqZWx3oXGs5fnC16Vam4zOUL Wjw1Fo2yY70WAA2G4/+RkG/6YHECxYzu7MmFdG3cEuLtgZLWYoDvXajfRup7GseNGwlT A5LaqPbRuHjhX9D/1OE8JeR0+ESdUzyOyZvbJe8tlt4cVIBdjpg7ulY5e+ZTRRzB093s dvFxYgN0dZZJbgKLN2BZAhfk3WrzMWAAN4JX1FJ1Uz+Ntc6nxq061x1YQFGC0gQGUzdu vMnDmEdqG3eCm+1vnzVTm8Dsg62UuHE1S3ZOOD3aM7dA2XKRlBJxwhKHFTyCn4atgEFv c8Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696037231; x=1696642031; 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=xlicqcjvFqoCLjDlvP5ly8vBy/02B5wEdXYMIhOKrRk=; b=nFH0qWi1QHFhQO4pMQEvoPs3C771KmBakVizNizwsDQ7+sp1pwmMJci1hilb5IyIt7 z5m1EGbgnh+ts1lxVAwDyN+54Ya8tQcztkhqT4ICAtt72Mde5ivo64NSM3wx1Nt5OGPQ 2qrvJiCkhDAiiPEJWduUm1Y4+pfdEePWSgy1dx3fn0NPutZPMApWFJ67ZAd9KCabvNbA GId+xcbXK0+VkJZ2JLzI3XAcgoNOtnNpSPdG4Ua0R9K7sw5AH37Mw3AmjUBVv9XIdXx1 OQUlX9KMeIMdm+QpzY9uLRU5N4JyHfoehYMe8JLrdM+CpmCgxB86LvgDuuydY7NmX/Qi Szww== X-Gm-Message-State: AOJu0YyC0aruKEqXF2yh5D/KG1zOaRp+t+ky5VgkpMInNh8Py5q6p/a9 N302ZRR/6qpcmuoglvlcjRNzqZKU/9Mh0A== X-Google-Smtp-Source: AGHT+IGvqVdAE7Lal3424vNefQcvo/npi9vvLeCOlero4pl9TFfuS9dEexN501GH/DbXHAEakFR6CQ== X-Received: by 2002:a0c:f342:0:b0:64c:8b79:5b24 with SMTP id e2-20020a0cf342000000b0064c8b795b24mr6038224qvm.35.1696037230723; Fri, 29 Sep 2023 18:27:10 -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 p9-20020a0cf549000000b0065b11053445sm4561099qvm.54.2023.09.29.18.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 18:27:10 -0700 (PDT) From: Zeyu Dong To: openwrt-devel@lists.openwrt.org Cc: Zeyu Dong Subject: [PATCH v2 2/2] mac80211: compile kconf with host gcc Date: Fri, 29 Sep 2023 21:26:48 -0400 Message-Id: <20230930012648.1466406-1-dzy201415@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230930005459.1457589-2-dzy201415@gmail.com> References: <20230930005459.1457589-2-dzy201415@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230929_182712_802311_14CDFCAC X-CRM114-Status: GOOD ( 11.80 ) 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 --- This updated patch removes the index lines, and uses ab style as original and new files. --- .../build/004-fix-kconf-compiling.patch | 37 +++++++++++++++++++ 1 file chan [...] Content analysis details: (0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:f29 listed in] [list.dnswl.org] -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 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 Signed-off-by: Zeyu Dong --- This updated patch removes the index lines, and uses ab style as original and new files. --- .../build/004-fix-kconf-compiling.patch | 37 +++++++++++++++++++ 1 file changed, 37 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..b1036b5310 --- /dev/null +++ b/package/kernel/mac80211/patches/build/004-fix-kconf-compiling.patch @@ -0,0 +1,37 @@ +--- a/Makefile.real ++++ b/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: