All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Trimarchi <michael@amarulasolutions.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC PATCH] linux: let to work with xenomai in override mode
Date: Wed, 12 Sep 2018 21:58:32 +0200	[thread overview]
Message-ID: <1536782312-12240-1-git-send-email-michael@amarulasolutions.com> (raw)

We would like to patch xenomai in override mode. Xenomai create
symlink in order to build the kernel and those links are absolute
one. The adeos patch is not applied if it is found so we
can change the connect hook from PRE_PATCH to PRE_CONFIGURE.
The xenomi dependence should be explicit set

Change-Id: Idc5189047451bb9ac3019d3f35674d5332159918
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
---
 linux/linux.mk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/linux/linux.mk b/linux/linux.mk
index 675e790..2303923 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -351,6 +351,10 @@ define LINUX_KCONFIG_FIXUP_CMDS
 		$(call KCONFIG_DISABLE_OPT,CONFIG_MXC_GPU_VIV,$(@D)/.config))
 endef
 
+ifneq ($(BR2_LINUX_KERNEL_EXT_XENOMAI_ADEOS_PATCH),)
+LINUX_DEPENDENCIES += xenomai
+endif
+
 ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y)
 # Starting with 4.17, the generated dtc parser code is no longer
 # shipped with the kernel sources, so we need flex and bison. For
@@ -485,7 +489,7 @@ include $(sort $(wildcard linux/linux-ext-*.mk))
 LINUX_PATCH_DEPENDENCIES += $(foreach ext,$(LINUX_EXTENSIONS),\
 	$(if $(BR2_LINUX_KERNEL_EXT_$(call UPPERCASE,$(ext))),$(ext)))
 
-LINUX_PRE_PATCH_HOOKS += $(foreach ext,$(LINUX_EXTENSIONS),\
+LINUX_PRE_CONFIGURE_HOOKS += $(foreach ext,$(LINUX_EXTENSIONS),\
 	$(if $(BR2_LINUX_KERNEL_EXT_$(call UPPERCASE,$(ext))),\
 		$(call UPPERCASE,$(ext))_PREPARE_KERNEL))
 
-- 
2.7.4

             reply	other threads:[~2018-09-12 19:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-12 19:58 Michael Trimarchi [this message]
2018-09-12 20:08 ` [Buildroot] [RFC PATCH] linux: let to work with xenomai in override mode Thomas Petazzoni
2018-09-12 20:15   ` Michael Nazzareno Trimarchi
2018-10-21 16:26     ` Arnout Vandecappelle
2018-10-28 10:25       ` Michael Nazzareno Trimarchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1536782312-12240-1-git-send-email-michael@amarulasolutions.com \
    --to=michael@amarulasolutions.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.