Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE6CDC32771 for ; Sat, 24 Sep 2022 20:54:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5E82C83143; Sat, 24 Sep 2022 20:54:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 5E82C83143 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jHCm_06V5zkq; Sat, 24 Sep 2022 20:54:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 7F98A82F9E; Sat, 24 Sep 2022 20:54:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 7F98A82F9E Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 34C041BF28D for ; Sat, 24 Sep 2022 20:53:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 1119840136 for ; Sat, 24 Sep 2022 20:53:51 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 1119840136 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s53cfYyjNGJO for ; Sat, 24 Sep 2022 20:53:46 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 515F940123 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by smtp2.osuosl.org (Postfix) with ESMTPS id 515F940123 for ; Sat, 24 Sep 2022 20:53:46 +0000 (UTC) Received: (Authenticated sender: thomas.petazzoni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 2935DE0004; Sat, 24 Sep 2022 20:53:44 +0000 (UTC) From: Thomas Petazzoni To: Romain Naour , Buildroot List , Max Filippov Date: Sat, 24 Sep 2022 22:53:25 +0200 Message-Id: <20220924205327.1489102-3-thomas.petazzoni@bootlin.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220924205327.1489102-1-thomas.petazzoni@bootlin.com> References: <20220924205327.1489102-1-thomas.petazzoni@bootlin.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1664052824; 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: in-reply-to:in-reply-to:references:references; bh=/OT41p4eRVgwYJfB4J3TcKMBkutRfLetsOTWZzRboWk=; b=OyGueIDQ/YeSIWik5aFt42n5/LtMiZWs5j+PI8hoE1p9kV0SG3/mYhnPD6L4i8Gv8KrLQv As22Wt7TgcHrZloB5dyZnQvp3P1F114iF/LkfpTxd+Cuh1zXm6zsB0/9GN5h9MnqMyejuo pWRb/EqRRL17s2kW4NCFZnLXF2Kp/tBHHla9B6zpL717isoyKIgUW+9Oc8e9SWo758y6sn rgZH+rcXNtdbrCWyj9uSO+uVZp8ItzgvJULmQDJHohiqcvCjBX5KCy7MuQdsOqGe9gl3cj Wp20OcEi2e61yBTZXIT7GRidieCoOgC6R+w9KrLeox0eEE1RebIpL5fUHh6trQ== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=OyGueIDQ Subject: [Buildroot] [PATCH 3/4] arch/{Config.in, arch.mk}.xtensa: add explicit support for DC233C core X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jonathan Ben Avraham , Thomas Petazzoni Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The DC233C Xtensa core is the one used by our Qemu Xtensa defconfigs, and it is a little endian core. It makes sense to promote it as a supported Xtensa core in arch/Config.in.xtensa, so that our autobuilder testing covers build testing of little endian Xtensa configurations. Indeed currently, both the FSF core and the custom core are big endian (the custom core cannot be little endian without an overlay). Signed-off-by: Thomas Petazzoni --- arch/Config.in.xtensa | 6 +++++- arch/arch.mk.xtensa | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/Config.in.xtensa b/arch/Config.in.xtensa index e9263f888e..57b7a5a12a 100644 --- a/arch/Config.in.xtensa +++ b/arch/Config.in.xtensa @@ -10,6 +10,9 @@ config BR2_xtensa_fsf bool "fsf - Default configuration" select BR2_USE_MMU +config BR2_xtensa_dc233c + bool "dc233c" + endchoice config BR2_XTENSA_OVERLAY_FILE @@ -44,7 +47,7 @@ endchoice config BR2_XTENSA_USE_MMU bool "MMU support" default y - depends on BR2_XTENSA_CUSTOM + depends on BR2_XTENSA_CUSTOM || BR2_xtensa_dc233c select BR2_USE_MMU help Enable this option if your Xtensa core has a MMU (Memory @@ -52,6 +55,7 @@ config BR2_XTENSA_USE_MMU config BR2_ENDIAN default "LITTLE" if BR2_XTENSA_LITTLE_ENDIAN + default "LITTLE" if BR2_xtensa_dc233c default "BIG" if BR2_XTENSA_BIG_ENDIAN default "BIG" if BR2_xtensa_fsf default "BIG" if BR2_XTENSA_CUSTOM && BR2_XTENSA_OVERLAY_FILE = "" diff --git a/arch/arch.mk.xtensa b/arch/arch.mk.xtensa index fd410f6bfa..92499f396f 100644 --- a/arch/arch.mk.xtensa +++ b/arch/arch.mk.xtensa @@ -9,7 +9,13 @@ # tar xf $(ARCH_XTENSA_OVERLAY_FILE) -C $(@D) --strip-components=1 gcc # endif ################################################################################ + +ifeq ($(BR2_xtensa_dc233c),y) +BR_ARCH_XTENSA_OVERLAY_FILE = https://github.com/jcmvbkbc/xtensa-toolchain-build/raw/95291b7c39e6f790d0b2f062c945a630290f2c81/overlays/xtensa_dc233c.tar.gz +else ifeq ($(BR2_XTENSA_CUSTOM),y) BR_ARCH_XTENSA_OVERLAY_FILE = $(call qstrip,$(BR2_XTENSA_OVERLAY_FILE)) +endif + ifneq ($(filter http://% https://% ftp://% scp://%,$(BR_ARCH_XTENSA_OVERLAY_FILE)),) ARCH_XTENSA_OVERLAY_URL = $(BR_ARCH_XTENSA_OVERLAY_FILE) ARCH_XTENSA_OVERLAY_FILE = $($(PKG)_DL_DIR)/$(notdir $(BR_ARCH_XTENSA_OVERLAY_FILE)) -- 2.37.3 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot