Skip to contentSkip to conversation

xenomai, linux-xenomai: Remove "Architecture: all" hack for xenomai-kernel-source

PATCH New Jan Kiszka 1 participant 1 message Jan 12, 2022

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 xenomai, linux-xenomai: Remove "Architecture: all" hack for xenomai-kernel-source

From: Jan Kiszka <[email protected]>

The current workaround breaks compat-arch scenarios (32-bit xenomai packages, 64-bit kernel).

Instead, we can achieve the needed tuning for cross-usage of xenomai-kernel-source by appending :native to this dependency of linux-xenomai. This is needed for arm or arm64, because dpkg request the target arch package of xenomai-kernel-source otherwise - for unknown reasons. All this is still a bit weird, but that's how dpkg sometimes is.

---
 recipes-kernel/linux/linux-xenomai.inc | 2 +-
 recipes-xenomai/xenomai/xenomai.inc    | 6 ------
 2 files changed, 1 insertion(+), 7 deletions(-)
recipes-kernel/linux/linux-xenomai.inc +1 -1
index ccc5353..7dba96e 100644
@@ -21,7 +21,7 @@ SRC_URI += "${@'file://${KERNEL_DEFCONFIG}' if d.getVar('KERNEL_DEFCONFIG') == d
 SRC_URI += "${@'file://common_nodbg.cfg' if d.getVar('XENOMAI_DEBUG') == '0' else ''}"
 
 DEPENDS += "xenomai-kernel-source"
-KBUILD_DEPENDS += "xenomai-kernel-source"
+KBUILD_DEPENDS += "xenomai-kernel-source:native"
 
 def get_commit(d):
     try:
recipes-xenomai/xenomai/xenomai.inc +0 -6
index 8f13767..fe84883 100644
@@ -23,12 +23,6 @@ def get_commit(d):
 COMMIT="${@get_commit(d)}"
 
 do_prepare_build() {
-    # The xenomai-kernel-source package is supposed to be generic, but we
-    # build it per architecture in Isar, and those packages happen to be
-    # different in some file so far. Make sure they are pushed into the
-    # target architecture to avoid conflicts.
-    sudo sed -i 's/Architecture: all/Architecture: any/' ${S}/debian/control
-
     # Xenomai currently does not maintain its changelog, plus we want the
     # actual package version in there.
     deb_add_changelog
Signature · 1 line
2.31.1