Skip to contentSkip to conversation

package/rtai: remove package

PATCH In review Bernd Kuhls 2 participants 2 messages Nov 1 – Nov 4

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/rtai: remove package

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/

---
 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
Config.in.legacy +12 -0
index 29c9b7f9e7..3765db9778 100644
@@ -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
docs/manual/adding-packages-linux-kernel-spec-infra.adoc +2 -2
index 22ffc5496f..c7fbb6184d 100644
@@ -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+.
 
linux/Config.ext.in +0 -11
index 3b72d3cf60..86af4c338b 100644
@@ -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"
 
linux/linux-ext-rtai.mk deleted +0 -30
deleted file mode 100644
index 50f79f8d50..0000000000
@@ -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
package/Config.in +0 -1
index d3bef2d5f0..06ea65c6f4 100644
@@ -2733,7 +2733,6 @@ comment "-------------------------------------------------------"
 endmenu
 
 menu "Real-Time"
-	source "package/rtai/Config.in"
 	source "package/xenomai/Config.in"
 endmenu
 
package/rtai/Config.in deleted +0 -8
deleted file mode 100644
index 14b1854837..0000000000
@@ -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
package/rtai/rtai.hash deleted +0 -2
deleted file mode 100644
index f2eb7f33ad..0000000000
@@ -1,2 +0,0 @@
-# Locally computed
-sha256  57acd3ad46cc8f1e01dc21089a24587c59e7328cbac06abb62bb0152de0b9df7  rtai-5.3.tar.bz2
package/rtai/rtai.mk deleted +0 -32
deleted file mode 100644
index 6e189bf27b..0000000000
@@ -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))
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 9 lines · Bernd Kuhls

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

In this e-mail from 2023, the maintainer said he was 79 years old! We're 3 years later, so it means that he is at least 82 years old by now. Not surprising that he has other things to worry about than maintaining RTAI.

Therefore: applied to master, thanks!

Best regards,

Thomas Petazzoni

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot