From patchwork Thu Sep 14 14:55:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Sionneau X-Patchwork-Id: 1834275 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=sionneau.net header.i=@sionneau.net header.a=rsa-sha256 header.s=selectormx4 header.b=fe4p3rdt; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RmgQ80vLwz1yhZ for ; Fri, 15 Sep 2023 00:56:48 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 2D167353A91F; Thu, 14 Sep 2023 16:55:53 +0200 (CEST) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (1024-bit key; secure) header.d=sionneau.net header.i=@sionneau.net header.a=rsa-sha256 header.s=selectormx4 header.b=fe4p3rdt; dkim-atps=neutral Received: from mx4.sionneau.net (mx4.sionneau.net [51.15.250.1]) by helium.openadk.org (Postfix) with ESMTPS id 1402E3520BD6 for ; Thu, 14 Sep 2023 16:55:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sionneau.net; s=selectormx4; t=1694703328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=TPsD8ZWS93TgcweBmqPCRW6cMEGaHDqZqpwrCy6kVM8=; b=fe4p3rdtUqBNrb/ZFnlHxLYwPQxfj9T7rJa38gFWeC7MoN/ljSEI0oeDGp3Bag2ZB8xoW2 Y8HSgtZF9z8Pu2jNkvObO/HI/LW5T4iacNn26Io5R3iG0jvOeXrXMERtgLQcvs92mdKczt 1s+HIDKEDwezkopbPZ8vEtX8BmPpoKI= Received: from junon.lin.mbt.kalray.eu ( [217.181.231.53]) by mx4.sionneau.net (OpenSMTPD) with ESMTPSA id d05798a6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 14 Sep 2023 14:55:28 +0000 (UTC) From: yann@sionneau.net To: devel@uclibc-ng.org Date: Thu, 14 Sep 2023 16:55:20 +0200 Message-ID: <20230914145524.19784-1-yann@sionneau.net> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Message-ID-Hash: JXAMUPL6LIURSYGVO246WO4MPNDUCLMN X-Message-ID-Hash: JXAMUPL6LIURSYGVO246WO4MPNDUCLMN X-MailFrom: yann@sionneau.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Julian Vetter , Jonathan Borne , Yann Sionneau X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH 1/5] kvx: add support for kv3-2 (Coolidge v2 SoC) List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Yann Sionneau The only difference, with regard to libc, is the compile flag: -march= Signed-off-by: Yann Sionneau --- Rules.mak | 3 ++- extra/Configs/Config.kvx | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Rules.mak b/Rules.mak index 8984edb38..c3313b257 100644 --- a/Rules.mak +++ b/Rules.mak @@ -459,7 +459,8 @@ ifeq ($(TARGET_ARCH),csky) endif ifeq ($(TARGET_ARCH),kvx) - CPU_CFLAGS-$(CONFIG_KVX) += -march=kvx + CPU_CFLAGS-y += -march=$(call qstrip,$(TARGET_MARCH)) + CPU_LDFLAGS-y += -march=$(call qstrip,$(TARGET_MARCH)) endif ifeq ($(TARGET_ARCH),m68k) diff --git a/extra/Configs/Config.kvx b/extra/Configs/Config.kvx index 398ffceaa..04df53c38 100644 --- a/extra/Configs/Config.kvx +++ b/extra/Configs/Config.kvx @@ -7,6 +7,24 @@ config TARGET_ARCH string default "kvx" +choice + prompt "Target architecture variant" + help + Select CPU variant to use + +config CONFIG_KVX_COOLIDGE_V1 + bool "Coolidge V1" + +config CONFIG_KVX_COOLIDGE_V2 + bool "Coolidge V2" + +endchoice + +config TARGET_MARCH + string + default "kv3-1" if CONFIG_KVX_COOLIDGE_V1 + default "kv3-2" if CONFIG_KVX_COOLIDGE_V2 + config FORCE_OPTIONS_FOR_ARCH bool default y