Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 00/11] Add ColdFire MCF5441x (m68k) support
@ 2026-04-24 13:23 Jean-Michel Hautbois
  2026-04-24 13:23 ` [Buildroot] [PATCH 01/11] arch/Config.in.m68k: add ColdFire MCF5441x support Jean-Michel Hautbois
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Jean-Michel Hautbois @ 2026-04-24 13:23 UTC (permalink / raw)
  To: buildroot
  Cc: Bernd Kuhls, Jean-Michel Hautbois, Fabrice Fontaine,
	Thomas Petazzoni, Giulio Benetti, Ismael Luceno, Romain Naour

This series adds support for the NXP ColdFire MCF5441x family (m68k/cf
subarch) in Buildroot, and fixes a set of package build and runtime
issues that surface when targeting this CPU.

MCF5441x (MMU, ColdFire V4e core, typically 250 MHz, no hardware FPU, no
SMP, no TLS, no atomic builtins) is not well exercised by the existing
m68k coverage. Building a minimal userland (busybox, openssl, nginx,
dropbear, ntp) on top of uClibc-ng exposed the fixes gathered in this
series.

The series can be grouped as follows:

 * Arch and global flags
   - arch/Config.in.m68k: new BR2_m68k_cf5441x subarch entry
   - package/gcc: force --with-arch=cf on MCF5441x so internal
     multilibs are driven by the ColdFire ISA, not m68k-classic
   - package/Makefile.in: add ColdFire workaround flags (mxgot, etc.)
     consumed by multiple packages

 * Toolchain companions
   - package/gdb: use static libgcc on ColdFire to avoid runtime
     libgcc_s ABI mismatch
   - package/gmp: disable C++ bindings on ColdFire (libstdc++ is not
     available on this target flavour)

 * Network stack
   - package/libopenssl: extend ColdFire handling (OPENSSL_NO_ATOMICS,
     OPENSSL_NO_ASM, OPENSSL_SMALL_FOOTPRINT, mxgot)
   - package/dropbear: disable ML-KEM768 which triggers an ICE in gcc
     14 on m68k
   - package/ntp: link libatomic when the toolchain provides it, so
     64 bit atomics resolve at link time
   - package/nginx: propagate ColdFire TLS/atomic settings

 * Misc
   - package/mawk: create the awk symlink on install so scripts relying
     on /usr/bin/awk keep working
   - package/libglib2: add ColdFire conditional tweaks needed for the
     target build

The series has been validated on real hardware (Freescale/NXP MCF54418
based ColdFire V4e board, 250 MHz, 256 MiB DDR, uClibc-ng) via a
buildroot initramfs image: kernel boot, openssl, nginx, dropbear and
ntpd all start cleanly with the compiled flags visible in
"openssl version -a" (mxgot, OPENSSL_NO_ATOMICS, OPENSSL_NO_ASM).

The series applies cleanly on top of current master. No regressions
expected on other m68k variants (mcf5208, q800) or other arches; the
changes are all guarded by BR2_m68k_cf or MCF5441x conditionals.

Thanks for the review.

Jean-Michel Hautbois (11):
  arch/Config.in.m68k: add ColdFire MCF5441x support
  package/gcc: force --with-arch=cf on m68k MCF5441x
  package/Makefile.in: add global ColdFire workaround flags
  package/gmp: disable C++ bindings on m68k ColdFire
  package/gdb: use static libgcc on m68k ColdFire
  package/libopenssl: extend m68k ColdFire support
  package/dropbear: disable ML-KEM768 on m68k
  package/ntp: Link libatomic when available
  package/nginx: add m68k ColdFire TLS support
  package/mawk: create awk symlink on install
  package/libglib2: add m68k ColdFire support

 arch/Config.in.m68k              |  7 +++++++
 package/Makefile.in              |  4 ++++
 package/dropbear/dropbear.mk     |  7 +++++++
 package/gcc/gcc.mk               |  4 ++++
 package/gdb/gdb.mk               |  5 +++++
 package/gmp/gmp.mk               |  4 +++-
 package/libglib2/libglib2.mk     | 11 ++++++++++-
 package/libopenssl/libopenssl.mk |  3 +++
 package/mawk/mawk.mk             |  6 ++++++
 package/nginx/nginx.mk           |  6 ++++++
 package/ntp/ntp.mk               |  5 +++++
 11 files changed, 60 insertions(+), 2 deletions(-)

-- 
2.39.5

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-04-29  6:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-24 13:23 [Buildroot] [PATCH 00/11] Add ColdFire MCF5441x (m68k) support Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 01/11] arch/Config.in.m68k: add ColdFire MCF5441x support Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 02/11] package/gcc: force --with-arch=cf on m68k MCF5441x Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 03/11] package/Makefile.in: add global ColdFire workaround flags Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 04/11] package/gmp: disable C++ bindings on m68k ColdFire Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 05/11] package/gdb: use static libgcc " Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 06/11] package/libopenssl: extend m68k ColdFire support Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 07/11] package/dropbear: disable ML-KEM768 on m68k Jean-Michel Hautbois
2026-04-24 14:11   ` Baruch Siach via buildroot
2026-04-29  5:53     ` Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 08/11] package/ntp: Link libatomic when available Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 09/11] package/nginx: add m68k ColdFire TLS support Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 10/11] package/mawk: create awk symlink on install Jean-Michel Hautbois
2026-04-24 13:23 ` [Buildroot] [PATCH 11/11] package/libglib2: add m68k ColdFire support Jean-Michel Hautbois

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox