All of lore.kernel.org
 help / color / mirror / Atom feed
* [xenomai-images][PATCH] xenomai, linux-xenomai: Remove "Architecture: all" hack for xenomai-kernel-source
@ 2022-01-12 18:13 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2022-01-12 18:13 UTC (permalink / raw)
  To: Xenomai

From: Jan Kiszka <jan.kiszka@siemens.com>

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.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
  recipes-kernel/linux/linux-xenomai.inc | 2 +-
  recipes-xenomai/xenomai/xenomai.inc    | 6 ------
  2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/recipes-kernel/linux/linux-xenomai.inc b/recipes-kernel/linux/linux-xenomai.inc
index ccc5353..7dba96e 100644
--- a/recipes-kernel/linux/linux-xenomai.inc
+++ b/recipes-kernel/linux/linux-xenomai.inc
@@ -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:
diff --git a/recipes-xenomai/xenomai/xenomai.inc b/recipes-xenomai/xenomai/xenomai.inc
index 8f13767..fe84883 100644
--- a/recipes-xenomai/xenomai/xenomai.inc
+++ b/recipes-xenomai/xenomai/xenomai.inc
@@ -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
-- 
2.31.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-12 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 18:13 [xenomai-images][PATCH] xenomai, linux-xenomai: Remove "Architecture: all" hack for xenomai-kernel-source Jan Kiszka

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.