Skip to contentSkip to conversation

package/xenomai: download from gitlab.com

PATCH New Yegor Yefremov via buildroot 1 participant 2 messages Nov 18

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/xenomai: download from gitlab.com

The Xenomai project has moved its repositories from source.denx.de to gitlab.com, and source.denx.de now regularly answers with errors:

HTTP request sent, awaiting response... 502 Bad Gateway ERROR 502: Bad Gateway.

Download the tarball from the new location. The archive generated by gitlab.com is identical to the one from source.denx.de, so the hash doesn't change.

This issue has been present since commit 44fafcc41aca ("package/xenomai:
bump to version 3.2.5"), which switched the download to source.denx.de. It therefore affects 2024.11 and later, and 2025.02.x.

Fixes:
https://autobuild.buildroot.org/results/1c4e9be7bd0b27ecedefdfcb29560279c53688c9

Fixes 44fafcc41aca4c32ecd937c4b7ae93b7a713d9f2 ("package/xenomai: bump to version 3.2.5")
Assisted-by Claude:claude-opus-5-5
---
 package/xenomai/xenomai.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/xenomai/xenomai.mk +1 -1
index fabd18fed0..6779e907cf 100644
@@ -14,7 +14,7 @@ XENOMAI_SITE = $(call qstrip,$(BR2_PACKAGE_XENOMAI_REPOSITORY))
 XENOMAI_SITE_METHOD = git
 else
 XENOMAI_SOURCE = xenomai-$(XENOMAI_VERSION).tar.bz2
-XENOMAI_SITE = https://source.denx.de/Xenomai/xenomai/-/archive/v$(XENOMAI_VERSION)
+XENOMAI_SITE = https://gitlab.com/xenomai/xenomai3/xenomai/-/archive/v$(XENOMAI_VERSION)
 endif
 # The source archive does not have the autoconf/automake material generated.
 XENOMAI_AUTORECONF = YES
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 linux: switch the xenomai extension to Dovetail

Since 3.3, Xenomai only supports the Dovetail interrupt pipeline:
Adeos/I-pipe support was removed, and prepare-kernel.sh now rejects the --adeos option:

prepare-kernel.sh: unknown flag: --adeos=...

Replace BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH with BR2_LINUX_KERNEL_EXT_XENOMAI_DOVETAIL_PATCH, passed to prepare-kernel.sh with --dovetail, which Xenomai 3.2.x already supports. The option can be left empty when the kernel already contains Dovetail, e.g. when it is built from the linux-dovetail tree. As an I-pipe patch can't be used as a Dovetail patch, the old option is not migrated, but added to Config.in.legacy.

Drop --default too: it only made prepare-kernel.sh skip the questions about the kernel tree and architecture, which are always passed, and is a no-op since Xenomai 3.3.

Also update the help texts that still mention Adeos.

This is a preparation for the bump to Xenomai 3.3.3.

Assisted-by Claude:claude-opus-5-5
---
 Config.in.legacy           | 12 ++++++++++++
 linux/Config.ext.in        | 31 +++++++++++++------------------
 linux/linux-ext-xenomai.mk | 26 ++++++++++++--------------
 package/xenomai/Config.in  | 10 +++++-----
 4 files changed, 42 insertions(+), 37 deletions(-)
Config.in.legacy +12 -0
index 0ee4d04751..f2f78798e7 100644
@@ -146,6 +146,18 @@ endif
 
 comment "Legacy options removed in 2026.11"
 
+config BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH
+	string "Adeos/I-pipe patch for Xenomai has been removed"
+	help
+	  Xenomai 3.3 only supports the Dovetail interrupt pipeline,
+	  so the Adeos/I-pipe patch option has been replaced by
+	  BR2_LINUX_KERNEL_EXT_XENOMAI_DOVETAIL_PATCH.
+
+config BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH_WRAP
+	bool
+	default y if BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH != ""
+	select BR2_LEGACY
+
 config BR2_KERNEL_HEADERS_7_2
 	bool "kernel headers version 7.2.x are no longer supported"
 	select BR2_LEGACY
linux/Config.ext.in +13 -18
index 86af4c338b..513570cf4d 100644
@@ -3,7 +3,7 @@ menu "Linux Kernel Extensions"
 #-------------------------------------------------------------------------------
 # Xenomai
 config BR2_LINUX_KERNEL_EXT_XENOMAI
-	bool "Adeos/Xenomai Real-time patch"
+	bool "Xenomai/Dovetail Real-time patch"
 	depends on BR2_PACKAGE_XENOMAI_COBALT_ARCH_SUPPORTS
 	depends on BR2_USE_MMU # xenomai
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # xenomai
@@ -14,28 +14,23 @@ config BR2_LINUX_KERNEL_EXT_XENOMAI
 	  Xenomai is split in two parts: a kernel part and a userspace
 	  part. Enabling this option automatically selects the Xenomai
 	  package and helps in patching the Linux kernel built by
-	  Buildroot with the Xenomai kernel part (ie Adeos/Ipipe).
+	  Buildroot with the Xenomai kernel part (Cobalt).
 
-	  You can find the currently supported kernel versions by
-	  looking at the available patches in the Xenomai sources
-	  tree: ksrc/arch/$(ARCH)/patches
+	  Cobalt requires a kernel with the Dovetail interrupt
+	  pipeline. Either build a kernel from the linux-dovetail
+	  tree, or provide a Dovetail patch matching your kernel
+	  version below:
 
-	  However, it is recommended to use the latest version of the
-	  Adeos/Ipipe patch available at
-	  https://xenomai.org/downloads/ipipe/
+	  https://gitlab.com/Xenomai/linux-dovetail
 
-	  Xenomai is know to support Blackfin, SH4, x86, ARM, NIOS2
-	  and PowerPC architectures.
-
-config BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH
-	string "Path/URL for Adeos patch file"
+config BR2_LINUX_KERNEL_EXT_XENOMAI_DOVETAIL_PATCH
+	string "Path/URL for Dovetail patch file"
 	depends on BR2_LINUX_KERNEL_EXT_XENOMAI
 	help
-	  Optionally, explicitly specify where to find the Adeos
-	  patch to use.
-	  Examples:
-	  https://xenomai.org/downloads/ipipe/v4.x/arm/ipipe-core-4.19.33-arm-2.patch
-	  or /home/foo/ipipe-core-4.19.33-arm-2.patch
+	  Optionally, explicitly specify where to find the Dovetail
+	  patch to use. Leave empty if the kernel already contains
+	  Dovetail, e.g. when it is built from the linux-dovetail
+	  tree.
 	  Please verify that your kernel version in Buildroot matches.
 
 comment "xenomai needs a uClibc or glibc toolchain w/ threads"
linux/linux-ext-xenomai.mk +12 -14
index 5ec6891bbf..f67ecd6de9 100644
@@ -1,28 +1,26 @@
 ################################################################################
 #
-# Patch the linux kernel with Adeos/Xenomai extension
+# Patch the linux kernel with Xenomai/Dovetail extension
 #
 ################################################################################
 
 LINUX_EXTENSIONS += xenomai
 
-# Adeos patch version
-XENOMAI_ADEOS_PATCH = $(call qstrip,$(BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH))
+# Dovetail patch
+XENOMAI_DOVETAIL_PATCH = $(call qstrip,$(BR2_LINUX_KERNEL_EXT_XENOMAI_DOVETAIL_PATCH))
 
-ifneq ($(filter ftp://% http://% https://%,$(XENOMAI_ADEOS_PATCH)),)
-XENOMAI_ADEOS_PATCH_NAME = $(notdir $(XENOMAI_ADEOS_PATCH))
-XENOMAI_ADEOS_PATCH_PATH = $(LINUX_DL_DIR)/$(XENOMAI_ADEOS_PATCH_NAME)
+ifneq ($(filter ftp://% http://% https://%,$(XENOMAI_DOVETAIL_PATCH)),)
+XENOMAI_DOVETAIL_PATCH_NAME = $(notdir $(XENOMAI_DOVETAIL_PATCH))
+XENOMAI_DOVETAIL_PATCH_PATH = $(LINUX_DL_DIR)/$(XENOMAI_DOVETAIL_PATCH_NAME)
 # check-package TypoInPackageVariable
-LINUX_EXTRA_DOWNLOADS += $(XENOMAI_ADEOS_PATCH)
-BR_NO_CHECK_HASH_FOR += $(XENOMAI_ADEOS_PATCH_NAME)
+LINUX_EXTRA_DOWNLOADS += $(XENOMAI_DOVETAIL_PATCH)
+BR_NO_CHECK_HASH_FOR += $(XENOMAI_DOVETAIL_PATCH_NAME)
 else
-XENOMAI_ADEOS_PATCH_PATH = $(XENOMAI_ADEOS_PATCH)
+XENOMAI_DOVETAIL_PATCH_PATH = $(XENOMAI_DOVETAIL_PATCH)
 endif
 
-ifeq ($(XENOMAI_ADEOS_PATCH),)
-XENOMAI_ADEOS_OPTS = --default
-else
-XENOMAI_ADEOS_OPTS = --adeos=$(XENOMAI_ADEOS_PATCH_PATH)
+ifneq ($(XENOMAI_DOVETAIL_PATCH),)
+XENOMAI_DOVETAIL_OPTS = --dovetail=$(XENOMAI_DOVETAIL_PATCH_PATH)
 endif
 
 # Prepare kernel patch
@@ -30,6 +28,6 @@ define XENOMAI_PREPARE_KERNEL
 	$(XENOMAI_DIR)/scripts/prepare-kernel.sh \
 		--linux=$(LINUX_DIR) \
 		--arch=$(KERNEL_ARCH) \
-		$(XENOMAI_ADEOS_OPTS) \
+		$(XENOMAI_DOVETAIL_OPTS) \
 		--verbose
 endef
package/xenomai/Config.in +5 -5
index 13a273a960..6c209219c5 100644
@@ -45,10 +45,10 @@ if BR2_PACKAGE_XENOMAI
 choice
 	bool "Xenomai version"
 	help
-	  Make sure that the selected version has a patch for your
-	  selected Linux kernel. If it does not, download and select a
-	  patch manually with BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH,
-	  in the Linux Kernel -> Linux Kernel Extensions menu.
+	  Make sure that the selected version supports the Dovetail
+	  version of your Linux kernel. A Dovetail patch can be
+	  selected with BR2_LINUX_KERNEL_EXT_XENOMAI_DOVETAIL_PATCH, in
+	  the Linux Kernel -> Linux Kernel Extensions menu.
 
 config BR2_PACKAGE_XENOMAI_LATEST_VERSION
 	bool "Latest version (3.2.x)"
@@ -115,7 +115,7 @@ config BR2_PACKAGE_XENOMAI_COBALT
 	  Linux kernel.
 
 	  If you want to use Cobalt core, your kernel must have
-	  the Adeos and Xenomai patches applied to it. You can
+	  the Dovetail and Xenomai patches applied to it. You can
 	  add these through the BR2_LINUX_KERNEL_EXT_XENOMAI option
 	  in the Linux Kernel Extensions menu.
 endchoice
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot