From patchwork Wed Apr 10 17:12:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Michel Hautbois X-Patchwork-Id: 1922179 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (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 4VF8h76y0rz1yY8 for ; Thu, 11 Apr 2024 03:19:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C5A4D605E8; Wed, 10 Apr 2024 17:19:16 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id RX-LYh3K83IG; Wed, 10 Apr 2024 17:19:14 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org E7F8F60BFB Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id E7F8F60BFB; Wed, 10 Apr 2024 17:19:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7A87A1BF32A for ; Wed, 10 Apr 2024 17:19:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 6397941713 for ; Wed, 10 Apr 2024 17:19:09 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 9haJEvkgpYYI for ; Wed, 10 Apr 2024 17:19:08 +0000 (UTC) Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=217.70.178.240; helo=mslow1.mail.gandi.net; envelope-from=jeanmichel.hautbois@yoseli.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 5007441709 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 5007441709 Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) by smtp2.osuosl.org (Postfix) with ESMTPS id 5007441709 for ; Wed, 10 Apr 2024 17:19:07 +0000 (UTC) Received: from relay2-d.mail.gandi.net (unknown [217.70.183.194]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 76E92C28DD for ; Wed, 10 Apr 2024 17:12:24 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 14FA040004; Wed, 10 Apr 2024 17:12:20 +0000 (UTC) From: Jean-Michel Hautbois To: buildroot@buildroot.org Date: Wed, 10 Apr 2024 19:12:09 +0200 Message-Id: <20240410171211.1633127-2-jeanmichel.hautbois@yoseli.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240410171211.1633127-1-jeanmichel.hautbois@yoseli.org> References: <20240410171211.1633127-1-jeanmichel.hautbois@yoseli.org> MIME-Version: 1.0 X-GND-Sasl: jeanmichel.hautbois@yoseli.org X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoseli.org; s=gm1; t=1712769140; 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=RBnsnoAQUY0stdYGhGLeLU0QRd5SsdvlsUTcoOoC0kc=; b=JwfXIk8C9VD6o6M/x2D99iT6kG7lGzmRSXXv8ATlEbjoWxnHp5laeTYvtmsGizeUok1ivZ s5Rs98KZhFhdX3acJqob0Q/f9L5/EXfxLB8u+/HlHekWHpaoTUfeeYgsSLqlthePwDuZvQ B+MidYGTuvdxS5lWNdd2Z3EuaOEyQEaeJsA/bS2oz7/eJ18KKjlfEDXhKr2o43Bqj3hDrA uBXJT8q+QjNJQjQ7ArAtQFwR9vdkdX4Skr8z/ORHfWUrR0qNlTV4k7AmVErBo3zq1S4+b2 ltsYSrvZ1bUCpev1SkTpSgpoE/YvqcC+wojFD+1r9YLAWusMQ1fbIRHwF25pRA== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=none (p=none dis=none) header.from=yoseli.org X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=yoseli.org header.i=@yoseli.org header.a=rsa-sha256 header.s=gm1 header.b=JwfXIk8C Subject: [Buildroot] [PATCH v2 1/3] arch: add support for mcf5441x Colfdire 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: Romain Naour , Jean-Michel Hautbois , Giulio Benetti , Thomas Petazzoni , yann.morin.1998@free.fr Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The m68k family ony has one Coldfire variant, namely the 5208. Add the support for the MCF5441x CPU family in the configuration file. This covers MCF54410, MCF54415, MCF54416, MCF54417 and MCF54418. Commit [1] removed the GCC ARCH configuration which was used to determine if the architecture is "m68k" or "cf". I have re-introduced this configuration here, only for the MCF5441x case. It has been tested as an external toolchain too. [1]: eda11417be m68k: remove BR2_GCC_TARGET_ARCH Signed-off-by: Jean-Michel Hautbois --- arch/Config.in.m68k | 10 ++++++++++ toolchain/Config.in | 1 + 2 files changed, 11 insertions(+) diff --git a/arch/Config.in.m68k b/arch/Config.in.m68k index 9fd22aaf1e..c707276e9c 100644 --- a/arch/Config.in.m68k +++ b/arch/Config.in.m68k @@ -33,11 +33,21 @@ config BR2_m68k_cf5208 select BR2_m68k_cf select BR2_SOFT_FLOAT +config BR2_m68k_cf5441x + bool "5441x" + select BR2_m68k_cf + select BR2_USE_MMU + select BR2_SOFT_FLOAT + endchoice config BR2_GCC_TARGET_CPU default "68040" if BR2_m68k_68040 default "5208" if BR2_m68k_cf5208 + default "54455" if BR2_m68k_cf5441x + +config BR2_GCC_TARGET_ARCH + default "cf" if BR2_m68k_cf5441x config BR2_READELF_ARCH_NAME default "MC68000" diff --git a/toolchain/Config.in b/toolchain/Config.in index e8b3db64fb..782b9944d5 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -100,6 +100,7 @@ config BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS depends on !BR2_ARM_CPU_ARMV5 depends on !BR2_sparc_v8 depends on !BR2_m68k_cf5208 + depends on !BR2_m68k_cf5441x # GCC uses thunk functions to adjust the 'this' pointer when calling # C++ member functions in classes derived with multiple inheritance.