All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/rtai: remove package
@ 2026-11-01 22:27 Bernd Kuhls
  2026-11-04 22:40 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2026-11-01 22:27 UTC (permalink / raw)
  To: buildroot

Building kernels > 4.19 is broken, for example:

No RTAI patch for your kernel version
make: *** [package/pkg-generic.mk:237:
 /home/autobuild/autobuild/instance-13/output-1/build/linux-6.6.161/.stamp_patched]
 Error 1

In 2023 the maintainer laid out some future plans:
https://www.freelists.org/archive/rtai/05-2023

The last mailing list entries date back to 2024:
https://www.freelists.org/archive/rtai/11-2024

As the future of the project is unclear and the package is broken with
newer kernels we remove the package from buildroot.

Fixes:
https://autobuild.buildroot.net/results/800/800854f679cacdb2f5311dae62f7cd4db4efefa2/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 Config.in.legacy                              | 12 +++++++
 ...ding-packages-linux-kernel-spec-infra.adoc |  4 +--
 linux/Config.ext.in                           | 11 -------
 linux/linux-ext-rtai.mk                       | 30 -----------------
 package/Config.in                             |  1 -
 package/rtai/Config.in                        |  8 -----
 package/rtai/rtai.hash                        |  2 --
 package/rtai/rtai.mk                          | 32 -------------------
 8 files changed, 14 insertions(+), 86 deletions(-)
 delete mode 100644 linux/linux-ext-rtai.mk
 delete mode 100644 package/rtai/Config.in
 delete mode 100644 package/rtai/rtai.hash
 delete mode 100644 package/rtai/rtai.mk

diff --git a/Config.in.legacy b/Config.in.legacy
index 29c9b7f9e7..3765db9778 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -146,6 +146,18 @@ endif
 
 comment "Legacy options removed in 2026.11"
 
+config BR2_PACKAGE_RTAI
+	bool "RTAI userspace has been removed"
+	select BR2_LEGACY
+	help
+	  RTAI is unmaintained and has been removed
+
+config BR2_LINUX_KERNEL_EXT_RTAI
+	bool "RTAI Real-time kernel patch has been removed"
+	select BR2_LEGACY
+	help
+	  RTAI is unmaintained and has been removed
+
 config BR2_PACKAGE_MESA3D_OPENCL
 	bool "Mesa3D OpenCL support is now provided by RustiCL"
 	select BR2_LEGACY
diff --git a/docs/manual/adding-packages-linux-kernel-spec-infra.adoc b/docs/manual/adding-packages-linux-kernel-spec-infra.adoc
index 22ffc5496f..c7fbb6184d 100644
--- a/docs/manual/adding-packages-linux-kernel-spec-infra.adoc
+++ b/docs/manual/adding-packages-linux-kernel-spec-infra.adoc
@@ -98,8 +98,8 @@ the kernel tree, or in the form of new files to be added to the
 tree. The Buildroot's Linux kernel extensions infrastructure provides
 a simple solution to automatically do this, just after the kernel
 sources are extracted and before the kernel patches are
-applied. Examples of extensions packaged using this mechanism are the
-real-time extensions Xenomai and RTAI.
+applied. An example of an extension packaged using this mechanism is the
+real-time extension Xenomai.
 
 Let's look at an example on how to add a new Linux extension +foo+.
 
diff --git a/linux/Config.ext.in b/linux/Config.ext.in
index 3b72d3cf60..86af4c338b 100644
--- a/linux/Config.ext.in
+++ b/linux/Config.ext.in
@@ -44,17 +44,6 @@ comment "xenomai needs a uClibc or glibc toolchain w/ threads"
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_MUSL
 
-#-------------------------------------------------------------------------------
-# RTAI
-config BR2_LINUX_KERNEL_EXT_RTAI
-	bool "RTAI Real-time patch"
-	depends on !BR2_LINUX_KERNEL_LATEST_VERSION
-	depends on !BR2_LINUX_KERNEL_LATEST_CIP_VERSION
-	depends on !BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION
-	select BR2_PACKAGE_RTAI
-	help
-	  RTAI Kernel part.
-
 # kernel extensions from br2-external trees, if any
 source "$BR2_BASE_DIR/.br2-external.in.linux"
 
diff --git a/linux/linux-ext-rtai.mk b/linux/linux-ext-rtai.mk
deleted file mode 100644
index 50f79f8d50..0000000000
--- a/linux/linux-ext-rtai.mk
+++ /dev/null
@@ -1,30 +0,0 @@
-################################################################################
-#
-# Patch the linux kernel with RTAI extension
-#
-################################################################################
-
-LINUX_EXTENSIONS += rtai
-
-ifeq ($(KERNEL_ARCH),i386)
-RTAI_ARCH = x86
-else ifeq ($(KERNEL_ARCH),x86_64)
-RTAI_ARCH = x86
-else ifeq ($(KERNEL_ARCH),powerpc)
-RTAI_ARCH = ppc
-else
-RTAI_ARCH = $(KERNEL_ARCH)
-endif
-
-# Prepare kernel patch
-define RTAI_PREPARE_KERNEL
-	kver=`$(MAKE) $(LINUX_MAKE_FLAGS) -C $(LINUX_DIR) --no-print-directory -s kernelversion` ; \
-	if test -f $(RTAI_DIR)/base/arch/$(RTAI_ARCH)/patches/hal-linux-$${kver}-*patch ; then \
-		$(APPLY_PATCHES) $(LINUX_DIR) \
-			$(RTAI_DIR)/base/arch/$(RTAI_ARCH)/patches/ \
-			hal-linux-$${kver}-*patch ; \
-	else \
-		echo "No RTAI patch for your kernel version" ; \
-		exit 1 ; \
-	fi
-endef
diff --git a/package/Config.in b/package/Config.in
index d3bef2d5f0..06ea65c6f4 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2733,7 +2733,6 @@ comment "-------------------------------------------------------"
 endmenu
 
 menu "Real-Time"
-	source "package/rtai/Config.in"
 	source "package/xenomai/Config.in"
 endmenu
 
diff --git a/package/rtai/Config.in b/package/rtai/Config.in
deleted file mode 100644
index 14b1854837..0000000000
--- a/package/rtai/Config.in
+++ /dev/null
@@ -1,8 +0,0 @@
-config BR2_PACKAGE_RTAI
-	bool "rtai"
-	depends on BR2_LINUX_KERNEL_EXT_RTAI
-	select BR2_LINUX_NEEDS_MODULES # not using kernel-module infra
-	help
-	  RTAI - the RealTime Application Interface for Linux.
-
-	  http://www.rtai.org
diff --git a/package/rtai/rtai.hash b/package/rtai/rtai.hash
deleted file mode 100644
index f2eb7f33ad..0000000000
--- a/package/rtai/rtai.hash
+++ /dev/null
@@ -1,2 +0,0 @@
-# Locally computed
-sha256  57acd3ad46cc8f1e01dc21089a24587c59e7328cbac06abb62bb0152de0b9df7  rtai-5.3.tar.bz2
diff --git a/package/rtai/rtai.mk b/package/rtai/rtai.mk
deleted file mode 100644
index 6e189bf27b..0000000000
--- a/package/rtai/rtai.mk
+++ /dev/null
@@ -1,32 +0,0 @@
-################################################################################
-#
-# rtai
-#
-################################################################################
-
-RTAI_VERSION = 5.3
-RTAI_SOURCE = rtai-$(RTAI_VERSION).tar.bz2
-RTAI_SITE = https://raw.githubusercontent.com/mmorandi/RTAI/cb3c52f056559c9aaa54d0e1c8c0b47467ae5f3e/userfiles/downloads/RTAI
-RTAI_INSTALL_STAGING = YES
-
-# The <pkg>_CONFIG_SCRIPTS cannot apply here to the specificities of rtai-config
-define RTAI_POST_PATCH_FIXUP
-	$(SED) 's%^staging=.*%staging=$(STAGING_DIR)%' $(STAGING_DIR)/usr/bin/rtai-config
-endef
-
-RTAI_POST_INSTALL_STAGING_HOOKS += RTAI_POST_PATCH_FIXUP
-
-RTAI_DEPENDENCIES = linux
-
-RTAI_CONF_OPTS = \
-	--includedir=/usr/include/rtai \
-	--with-linux-dir=$(LINUX_DIR) \
-	--disable-leds \
-	--enable-usi \
-	--enable-align-priority \
-	--disable-rtailab \
-	--with-module-dir=/lib/modules/$(LINUX_VERSION_PROBED)/rtai
-
-RTAI_MAKE = $(MAKE1)
-
-$(eval $(autotools-package))
-- 
2.47.3

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

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

end of thread, other threads:[~2026-11-04 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-01 22:27 [Buildroot] [PATCH 1/1] package/rtai: remove package Bernd Kuhls
2026-11-04 22:40 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.