Skip to contentSkip to conversation

linux: Add CIP SLTS easy selection option

PATCH Superseded Angelo Compagnucci 2 participants 3 messages Apr 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 linux: Add CIP SLTS easy selection option

This patch adds an easy way to select the CIP project SLTS kernel within the kernel menu.

---
 Config.in       | 20 ++++++++++++++++++++
 linux/Config.in |  4 ++++
 linux/linux.mk  |  3 +++
 3 files changed, 27 insertions(+)
Config.in +20 -0
index bd8f0d1..b089ed8 100644
@@ -261,6 +261,26 @@ config BR2_KERNEL_MIRROR
 	     http://www.XX.kernel.org/pub (XX = country code)
 	     http://mirror.aarnet.edu.au/pub/ftp.kernel.org
 
+config BR2_CIP_KERNEL_REPO_URL
+	string "CIP SLTS (SuperLong Term Support) kernel url"
+	default "git://git.kernel.org/pub/scm/linux/kernel/git/bwh/linux-cip.git"
+	help
+	  CIP launched in the spring of 2016 to address the needs of
+	  organizations in industries such as power generation and
+	  distribution, water, oil and gas, transportation, building
+	  automation and more for reliable and secure Linux-based
+	  embedded systems that can be sustained over a period of
+	  10 to as many as 60 years.
+	  The project's goal is to provide an open source base layer
+	  of industrial-grade software that permits the use and
+	  implementation of software building blocks that meet
+	  these requirements.
+
+	  The CIP community plans to maintain 4.4 for security and
+	  bug fixes for more than 10 years.
+
+	  https://www.cip-project.org
+
 config BR2_GNU_MIRROR
 	string "GNU Software mirror"
 	default "http://ftpmirror.gnu.org"
linux/Config.in +4 -0
index c5565e5..f12d511 100644
@@ -28,6 +28,9 @@ choice
 config BR2_LINUX_KERNEL_LATEST_VERSION
 	bool "Latest version (4.10.8)"
 
+config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
+	bool "Latest CIP SLTS (Super Long Term Support) version (v4.4.55-cip3)"
+
 config BR2_LINUX_KERNEL_CUSTOM_VERSION
 	bool "Custom version"
 	help
@@ -98,6 +101,7 @@ endif
 config BR2_LINUX_KERNEL_VERSION
 	string
 	default "4.10.8" if BR2_LINUX_KERNEL_LATEST_VERSION
+	default "v4.4.55-cip3" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
 	default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
 		if BR2_LINUX_KERNEL_CUSTOM_VERSION
 	default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
linux/linux.mk +3 -0
index f68a3ff..3fa6c15 100644
@@ -30,6 +30,9 @@ 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)
+LINUX_SITE = $(call qstrip,$(BR2_CIP_KERNEL_REPO_URL))
+LINUX_SITE_METHOD = git
 else
 LINUX_SOURCE = linux-$(LINUX_VERSION).tar.xz
 ifeq ($(BR2_LINUX_KERNEL_CUSTOM_VERSION),y)
Signature · 1 line
2.7.4
#1 lore raw

PATCH v3 1/1 linux: Add CIP SLTS easy selection option

Hello,

Quoted 4 lines · Angelo Compagnucci

This patch adds an easy way to select the CIP project SLTS kernel within the kernel menu.

I've applied after doing a few tweaks, see below.

Config.in config BR2_KERNEL_MIRROR · line 266

Quoted 3 lines
Config.in +3 -0
+config BR2_CIP_KERNEL_REPO_URL
+	string "CIP SLTS (SuperLong Term Support) kernel url"
+	default "git://git.kernel.org/pub/scm/linux/kernel/git/bwh/linux-cip.git"

I've completely dropped this option. Indeed, it is already possible without your patch to select a custom Git repository to download the kernel. So having yet another option to do that is useless. If you want to use a custom CIP repository, just use the existing BR2_LINUX_KERNEL_CUSTOM_GIT option.

Quoted 4 lines
Config.in +4 -0
+	help
+	  CIP launched in the spring of 2016 to address the needs of
+	  organizations in industries such as power generation and
+	  distribution, water, oil and gas, transportation, building

Config.in config BR2_KERNEL_MIRROR · line 280

Quoted 10 lines
Config.in +10 -0
+	  automation and more for reliable and secure Linux-based
+	  embedded systems that can be sustained over a period of
+	  10 to as many as 60 years.
+	  The project's goal is to provide an open source base layer
+	  of industrial-grade software that permits the use and
+	  implementation of software building blocks that meet
+	  these requirements.
+
+	  The CIP community plans to maintain 4.4 for security and
+	  bug fixes for more than 10 years.

Since this help text was useful, I've moved it under the BR2_LINUX_KERNEL_LATEST_CIP_VERSION option.

linux/Config.in choice · line 32

Quoted 2 lines
linux/Config.in +2 -0
+config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
+	bool "Latest CIP SLTS (Super Long Term Support) version (v4.4.55-cip3)"

This prompt was too long and didn't fit in the menuconfig window. So I've removed the "(Super Long Term Support)" part of it, which is anyway explained in the help text.

Applied with those two changes. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH v3 1/1 linux: Add CIP SLTS easy selection option

Dear Thomas Petazzoni,

2017-04-06 22:29 GMT+02:00 Thomas Petazzoni <
[email protected]>:

Quoted 43 lines

Hello,

Quoted 4 lines · Angelo Compagnucci

This patch adds an easy way to select the CIP project SLTS kernel within the kernel menu.

I've applied after doing a few tweaks, see below.

Config.in config BR2_KERNEL_MIRROR

Quoted 3 lines
Config.in +3 -0
+config BR2_CIP_KERNEL_REPO_URL
+     string "CIP SLTS (SuperLong Term Support) kernel url"
+     default "git://git.kernel.org/pub/scm/linux/kernel/git/bwh/linux-

cip.git"

I've completely dropped this option. Indeed, it is already possible without your patch to select a custom Git repository to download the kernel. So having yet another option to do that is useless. If you want to use a custom CIP repository, just use the existing BR2_LINUX_KERNEL_CUSTOM_GIT option.

Quoted 4 lines
Config.in +4 -0
+     help
+       CIP launched in the spring of 2016 to address the needs of
+       organizations in industries such as power generation and
+       distribution, water, oil and gas, transportation, building

Config.in config BR2_KERNEL_MIRROR · line 280

Quoted 10 lines
Config.in +10 -0
+       automation and more for reliable and secure Linux-based
+       embedded systems that can be sustained over a period of
+       10 to as many as 60 years.
+       The project's goal is to provide an open source base layer
+       of industrial-grade software that permits the use and
+       implementation of software building blocks that meet
+       these requirements.
+
+       The CIP community plans to maintain 4.4 for security and
+       bug fixes for more than 10 years.

Since this help text was useful, I've moved it under the BR2_LINUX_KERNEL_LATEST_CIP_VERSION option.

Review

Quoted 2 lines
(quoted diff) +2 -0
+config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
+     bool "Latest CIP SLTS (Super Long Term Support) version
Quoted 8 lines

(v4.4.55-cip3)"

This prompt was too long and didn't fit in the menuconfig window. So I've removed the "(Super Long Term Support)" part of it, which is anyway explained in the help text.

Applied with those two changes. Thanks!

I'm super happy! Thank you so much, really appreciated!

Quoted 7 lines

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170406/4d02e95b/attachment.html>