From patchwork Thu Jun 15 14:11:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1795455 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=) 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=1vmDAKcU; dkim=fail reason="key not found in DNS" header.d=true.cz header.i=@true.cz header.a=rsa-sha256 header.s=xnet header.b=HiGN2WuH; dkim-atps=neutral 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qhkmy3HC3z20WR for ; Fri, 16 Jun 2023 00:14:10 +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=Cnpm2ykbzaU1s2b67xKx5n4Q1Ab+aOCyb+KisuyVy3M=; b=1vmDAKcUZJFEPf h4imLmBIY4j62DZ1AOsiv3rHzrV79dJXqg7vDwVBsJbLy+1LfCt9kif2mF9GWVXNNf4733QHf4Jws 9FS0iEj2gAlxZEeVQ0CdjEkkTx8MWaV69Cut+M7lRCq6jGdRFwNX2bU1O/yEZSL0MPnkU7pMA6WaY YXrkVoVQ55I+DUfL7IQ/+tfDqQi5XIReTiE4heg/NpXkMPtBIvMuRhuPLLwbwW2VJIeraQf0M1S60 rdANTfnM7hXsjG+xXarY1kPcoN4p0TeVCESr+mEPn6zcMoRwC7+b7PuRyobfm4sFXw9AMZ8oVQOD5 /h1/DfBuzBPnkeEcdd3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q9nhi-00F61o-0i; Thu, 15 Jun 2023 14:12:02 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q9nhc-00F5zY-17 for openwrt-devel@lists.openwrt.org; Thu, 15 Jun 2023 14:11:58 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 9C153183F5; Thu, 15 Jun 2023 16:11:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=true.cz; s=xnet; t=1686838307; bh=aNweKEfFxKc0vlfay/4++Dg+4ZH9ixBxC8jesN/Bsk0=; h=From:To:Cc:Subject:Date; b=HiGN2WuHEHuPu8iudQOyQ75H8kOj5WljyM2c5ME0m312r3xC07nG69M+0P6nAE2X9 /+h8mpSkZ2NsfRmwfn7Bff29tTs4dvK60r59wg/r2boGYSIfKwqxQh/8lXcKo2sauA /mHOzd3R+sF+k2kNfEtA7f7xDN7KTF5CeS6MWHeA= Received: by meh.true.cz (OpenSMTPD) with ESMTP id 844565f3; Thu, 15 Jun 2023 16:11:01 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Subject: [PATCH 1/3] target.mk: silence CPU_TYPE doesn't correspond to a known type Date: Thu, 15 Jun 2023 16:11:25 +0200 Message-Id: <20230615141127.2462701-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230615_071156_998343_796F2276 X-CRM114-Status: UNSURE ( 6.91 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.2 (/) 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: Following command: $ ./scripts/dump-target-info.pl targets currently generates bunch of following warnings: Content analysis details: (0.2 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.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid 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 Following command: $ ./scripts/dump-target-info.pl targets currently generates bunch of following warnings: include/target.mk:269: CPU_TYPE "cortex-a15" doesn't correspond to a known type just because there is no CPU_CFLAGS_cortexa-15 defined for that CPU and there is no value in this warning, so lets acknowledge such CPU_TYPEs and do not print those warnings. Signed-off-by: Petr Štetiar --- include/target.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/target.mk b/include/target.mk index b5e3e7ff6fde..1783f8f94f9d 100644 --- a/include/target.mk +++ b/include/target.mk @@ -264,9 +264,13 @@ ifeq ($(DUMP),1) CPU_TYPE ?= riscv64 CPU_CFLAGS_riscv64:=-mabi=lp64d -march=rv64imafdc endif + DONOT_WARN_CPU_TYPES=arm1176jzf-s arm926ej-s cortex-a15 cortex-a5 cortex-a7 cortex-a72 \ + cortex-a8 cortex-a9 fa526 mpcore xscale ifneq ($(CPU_TYPE),) ifndef CPU_CFLAGS_$(CPU_TYPE) - $(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type) + ifeq (,$(findstring $(CPU_TYPE),$(DONOT_WARN_CPU_TYPES))) + $(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type) + endif endif endif DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE)))