Skip to contentSkip to conversation

tipspkernel: add extra level to FILESPATH with major version in the name

PATCH In review Denys Dmytriyenko 2 participants 4 messages May 30, 2012 – May 31, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tipspkernel: add extra level to FILESPATH with major version in the name

From: Denys Dmytriyenko <[email protected]>

Add PMV variable to contain major version by extracting first 2 numbers from PV Insert new level to FILESPATH - PN-PV-PR:PN-PV:PN-PMV:PN:files:. Allow keeping patches and configs generic for the series (i.e. 3.2) while incrementing stable releases (i.e. 3.2.18)
Drop use of BP and BPN, as they don't change for the kernel

---
 recipes-kernel/linux/tipspkernel.inc |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)
recipes-kernel/linux/tipspkernel.inc +17 -2
index c23fa57..ba93530 100644
@@ -1,11 +1,26 @@
 # Include this file for kernel recipes that need to handle different defconfigs
 # and apply patches based on "tipspkernel" DISTRO_FEATURES
 
+def get_major_pv(p):
+	import re
+	r = re.compile("([0-9]+\.[0-9]+).*")
+	m = r.match(p);
+	if m:
+		return m.group(1)
+	return None
+
+PMV = "${@get_major_pv(d.getVar('PV', True))}"
+
+# First of all, set own FILESPATH avoiding unnecessary BP and BPN, but adding
+# extra level of major version
+FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}-${PMV}", \
+"${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}"
+
 # We don't want "tipspkernel" to be another OVERRIDE, but rather a new level of
 # FILESPATH with all the OVERRIDES applied to it
 CONFIGS_PSP = "${@base_set_filespath(["${FILE_DIRNAME}/${PF}/tipspkernel", "${FILE_DIRNAME}/${P}/tipspkernel", \
-"${FILE_DIRNAME}/${PN}/tipspkernel", "${FILE_DIRNAME}/${BP}/tipspkernel", "${FILE_DIRNAME}/${BPN}/tipspkernel", \
-"${FILE_DIRNAME}/files/tipspkernel", "${FILE_DIRNAME}/tipspkernel"], d)}:"
+"${FILE_DIRNAME}/${PN}-${PMV}/tipspkernel", "${FILE_DIRNAME}/${PN}/tipspkernel", "${FILE_DIRNAME}/files/tipspkernel", \
+"${FILE_DIRNAME}/tipspkernel"], d)}:"
 
 # When "tipspkernel" is ENABLED, prepend additional set of directories to FILESPATH
 FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}"
Signature · 1 line
1.7.8.6
#1 lore raw

PATCH 2/2 linux-ti33x-psp 3.2: set PV accordingly, when not using tipspkernel

From: Denys Dmytriyenko <[email protected]>

The patchset in PATCHES_OVER_PSP updates the kernel to 3.2.x, so make PV match. This doesn't need PR or MACHINE_KERNEL_PR bumps since both the kernel ABI and file locations remain the same.

---
 recipes-kernel/linux/linux-ti33x-psp_3.2.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +3 -0
index 38202fa..cd10044 100644
@@ -10,6 +10,9 @@ S = "${WORKDIR}/git"
 
 MULTI_CONFIG_BASE_SUFFIX = ""
 
+# the PATCHES_OVER_PSP updates it to 3.2.x, so adjust PV to match
+PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.18", d)}"
+
 BRANCH = "v3.2-staging"
 SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01"
 MACHINE_KERNEL_PR_append = "c+gitr${SRCREV}"
Signature · 1 line
1.7.8.6
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] linux-ti33x-psp 3.2: set PV accordingly, when not using tipspkernel

Op 31 mei 2012, om 00:18 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 7 lines

From: Denys Dmytriyenko <[email protected]>

The patchset in PATCHES_OVER_PSP updates the kernel to 3.2.x, so make PV match. This doesn't need PR or MACHINE_KERNEL_PR bumps since both the kernel ABI and file locations remain the same.

Quoted 25 lines

---
recipes-kernel/linux/linux-ti33x-psp_3.2.bb | 3 +++

1 files changed, 3 insertions(+), 0 deletions(-)
recipes-kernel/linux/linux-ti33x-psp_3.2.bb +0 -0
index 38202fa..cd10044 100644
@@ -10,6 +10,9 @@ S = "${WORKDIR}/git"
 

MULTI_CONFIG_BASE_SUFFIX = ""

recipes-kernel/linux/linux-ti33x-psp_3.2.bb +3 -0
+# the PATCHES_OVER_PSP updates it to 3.2.x, so adjust PV to match
+PV = "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "3.2", "3.2.18", d)}"
+

BRANCH = "v3.2-staging"
SRCREV = "720e07b4c1f687b61b147b31c698cb6816d72f01" MACHINE_KERNEL_PR_append = "c+gitr${SRCREV}"

Signature · 6 lines
1.7.8.6

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
Acked-by on v1 1/2
#3 lore raw
In reply to Denys Dmytriyenko

Op 31 mei 2012, om 00:18 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 9 lines

From: Denys Dmytriyenko <[email protected]>

Add PMV variable to contain major version by extracting first 2 numbers from PV Insert new level to FILESPATH - PN-PV-PR:PN-PV:PN-PMV:PN:files:. Allow keeping patches and configs generic for the series (i.e. 3.2) while incrementing stable releases (i.e. 3.2.18)
Drop use of BP and BPN, as they don't change for the kernel

Quoted 44 lines

---
recipes-kernel/linux/tipspkernel.inc | 19 +++++++++++++++++--

1 files changed, 17 insertions(+), 2 deletions(-)
recipes-kernel/linux/tipspkernel.inc +17 -2
index c23fa57..ba93530 100644
@@ -1,11 +1,26 @@
 # Include this file for kernel recipes that need to handle different defconfigs
 # and apply patches based on "tipspkernel" DISTRO_FEATURES
 
+def get_major_pv(p):
+	import re
+	r = re.compile("([0-9]+\.[0-9]+).*")
+	m = r.match(p);
+	if m:
+		return m.group(1)
+	return None
+
+PMV = "${@get_major_pv(d.getVar('PV', True))}"
+
+# First of all, set own FILESPATH avoiding unnecessary BP and BPN, but adding
+# extra level of major version
+FILESPATH = "${@base_set_filespath([ "${FILE_DIRNAME}/${PF}", "${FILE_DIRNAME}/${P}", "${FILE_DIRNAME}/${PN}-${PMV}", \
+"${FILE_DIRNAME}/${PN}", "${FILE_DIRNAME}/files", "${FILE_DIRNAME}" ], d)}"
+
 # We don't want "tipspkernel" to be another OVERRIDE, but rather a new level of
 # FILESPATH with all the OVERRIDES applied to it
 CONFIGS_PSP = "${@base_set_filespath(["${FILE_DIRNAME}/${PF}/tipspkernel", "${FILE_DIRNAME}/${P}/tipspkernel", \
-"${FILE_DIRNAME}/${PN}/tipspkernel", "${FILE_DIRNAME}/${BP}/tipspkernel", "${FILE_DIRNAME}/${BPN}/tipspkernel", \
-"${FILE_DIRNAME}/files/tipspkernel", "${FILE_DIRNAME}/tipspkernel"], d)}:"
+"${FILE_DIRNAME}/${PN}-${PMV}/tipspkernel", "${FILE_DIRNAME}/${PN}/tipspkernel", "${FILE_DIRNAME}/files/tipspkernel", \
+"${FILE_DIRNAME}/tipspkernel"], d)}:"
 
 # When "tipspkernel" is ENABLED, prepend additional set of directories to FILESPATH

FILESPATH =. "${@base_contains('DISTRO_FEATURES', 'tipspkernel', "${CONFIGS_PSP}", "", d)}"

Signature · 6 lines
1.7.8.6

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti