* [Buildroot] [PATCH] linux: adding CIP RT
@ 2019-11-25 22:58 Angelo Compagnucci
2019-11-26 11:51 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Angelo Compagnucci @ 2019-11-25 22:58 UTC (permalink / raw)
To: buildroot
This patch adds Linux CIP RT, the PREEMPT_RT realtime variant maintained from
the CIP team.
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
linux/Config.in | 12 ++++++++++++
linux/linux.mk | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/linux/Config.in b/linux/Config.in
index 8c5539c9ab..eacd53dafb 100644
--- a/linux/Config.in
+++ b/linux/Config.in
@@ -53,6 +53,17 @@ config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
https://www.cip-project.org
+config BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION
+ bool "Latest CIP RT SLTS version (4.19.72-cip10-rt4)"
+ help
+ Same as the CIP version, but this is the PREEMPT_RT realtime
+ variant.
+
+ The CIP community plans to maintain 4.19 for security and
+ bug fixes for more than 10 years.
+
+ https://www.cip-project.org
+
config BR2_LINUX_KERNEL_CUSTOM_VERSION
bool "Custom version"
help
@@ -124,6 +135,7 @@ config BR2_LINUX_KERNEL_VERSION
string
default "5.3.8" if BR2_LINUX_KERNEL_LATEST_VERSION
default "4.19.82-cip14" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
+ default "4.19.72-cip10-rt4" if BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
if BR2_LINUX_KERNEL_CUSTOM_VERSION
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
diff --git a/linux/linux.mk b/linux/linux.mk
index c45db4d24f..befad98f2f 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -29,7 +29,7 @@ LINUX_SITE_METHOD = hg
else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_SVN),y)
LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
LINUX_SITE_METHOD = svn
-else ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION),y)
+else ifneq ($(filter $(BR2_LINUX_KERNEL_LATEST_CIP_VERSION) $(BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION),y),)
LINUX_SOURCE = linux-cip-$(LINUX_VERSION).tar.gz
LINUX_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/snapshot
else ifneq ($(findstring -rc,$(LINUX_VERSION)),)
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] linux: adding CIP RT
2019-11-25 22:58 [Buildroot] [PATCH] linux: adding CIP RT Angelo Compagnucci
@ 2019-11-26 11:51 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-11-26 11:51 UTC (permalink / raw)
To: buildroot
Hello,
The .hash file should be updated with the hash of this kernel tarball.
The commit log can be improved, we prefer using imperative sentence
"add <foo>", "fix <bar>" rather than "adding <foo>", "fixing <bar>".
Maybe:
linux: add option to select the CIP real-time kernel
> -else ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION),y)
> +else ifneq ($(filter $(BR2_LINUX_KERNEL_LATEST_CIP_VERSION) $(BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION),y),)
Since it's a choice, this is sufficient:
ifeq ($(BR2_LINUX_KERNEL_LATEST_CIP_VERSION)$(BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION),y)
> LINUX_SOURCE = linux-cip-$(LINUX_VERSION).tar.gz
> LINUX_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/snapshot
> else ifneq ($(findstring -rc,$(LINUX_VERSION)),)
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-26 11:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25 22:58 [Buildroot] [PATCH] linux: adding CIP RT Angelo Compagnucci
2019-11-26 11:51 ` Thomas Petazzoni
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.