Skip to contentSkip to conversation

kernel: use olddefconfig as the primary target for KERNEL_CONFIG_COMMAND

PATCH In review Bruce Ashfield 3 participants 4 messages Oct 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 kernel: use olddefconfig as the primary target for KERNEL_CONFIG_COMMAND

As was warned by commit 312ee68752fa [kconfig: announce removal of oldnoconfig if used], oldnoconfig has been removed from the 4.20 kernel.

So we switch our default mode to olddefconfig.

commit fb16d8912 [kconfig: replace 'oldnoconfig' with 'olddefconfig', and keep the old name as an alias] introduced olddefconfig in the 3.10 kernel, we shuffle oldnoconfig to the fallback target.

The fallback mode allows kernels between 3.10 and the currently listed oldest kernel of 3.2 to continue to configure.

---

v3: dropped 'yes' from the pipeline

v2: Tweaked to add a fallback mode as suggested by Andre McCurdy

Not for the release, just wanted to get this in the queue for when master reopens so we'll be ready for 4.20+ kernel versions

Tested by configuring linux-yocto*

Bruce

 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +1 -1
index e04d2fe00434..880c5ef17283 100644
@@ -492,7 +492,7 @@ sysroot_stage_all () {
 	:
 }
 
-KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} oldnoconfig"
+KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig || oe_runmake -C ${S} O=${B} CC="${KERNEL_CC}" oldnoconfig"
 
 python check_oldest_kernel() {
     oldest_kernel = d.getVar('OLDEST_KERNEL')
Signature · 1 line
2.5.0
#1 lore raw

✗ patchtest: failure for kernel: use olddefconfig as the primary target for KERNEL_CONFIG_COMMAND (rev2)

== Series Details ==

Series: kernel: use olddefconfig as the primary target for KERNEL_CONFIG_COMMAND (rev2)
Revision: 2
URL : https://patchwork.openembedded.org/series/14712/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master-next (currently at 6ab561af7e)

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
#2 lore raw
In reply to Bruce Ashfield
Quoted 36 lines · Bruce Ashfield

As was warned by commit 312ee68752fa [kconfig: announce removal of oldnoconfig if used], oldnoconfig has been removed from the 4.20 kernel.

So we switch our default mode to olddefconfig.

commit fb16d8912 [kconfig: replace 'oldnoconfig' with 'olddefconfig', and keep the old name as an alias] introduced olddefconfig in the 3.10 kernel, we shuffle oldnoconfig to the fallback target.

The fallback mode allows kernels between 3.10 and the currently listed oldest kernel of 3.2 to continue to configure.

---

v3: dropped 'yes' from the pipeline

v2: Tweaked to add a fallback mode as suggested by Andre McCurdy

Not for the release, just wanted to get this in the queue for when master reopens so we'll be ready for 4.20+ kernel versions

Tested by configuring linux-yocto*

Bruce

 meta/classes/kernel.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +0 -0
index e04d2fe00434..880c5ef17283 100644

meta/classes/kernel.bbclass sysroot_stage_all () { · line 495

Quoted 5 lines
meta/classes/kernel.bbclass +1 -1
@@ -492,7 +492,7 @@ sysroot_stage_all () {
        :
 }
 
-KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} oldnoconfig"
+KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig || oe_runmake -C ${S} O=${B} CC="${KERNEL_CC}" oldnoconfig"

Apart from inexplicably swapping the positions of the O= and CC= options on the fallback command line (?!?), this version looks good.

Quoted 10 lines
meta/classes/kernel.bbclass +0 -1
 python check_oldest_kernel() {
     oldest_kernel = d.getVar('OLDEST_KERNEL')
--

2.5.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw
Quoted 41 lines · Andre McCurdy
Quoted 39 lines · Bruce Ashfield

As was warned by commit 312ee68752fa [kconfig: announce removal of oldnoconfig if used], oldnoconfig has been removed from the 4.20 kernel.

So we switch our default mode to olddefconfig.

commit fb16d8912 [kconfig: replace 'oldnoconfig' with 'olddefconfig', and keep the old name as an alias] introduced olddefconfig in the 3.10 kernel, we shuffle oldnoconfig to the fallback target.

The fallback mode allows kernels between 3.10 and the currently listed oldest kernel of 3.2 to continue to configure.

---

v3: dropped 'yes' from the pipeline

v2: Tweaked to add a fallback mode as suggested by Andre McCurdy

Not for the release, just wanted to get this in the queue for when master reopens so we'll be ready for 4.20+ kernel versions

Tested by configuring linux-yocto*

Bruce

  meta/classes/kernel.bbclass | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel.bbclass +0 -0
index e04d2fe00434..880c5ef17283 100644
@@ -492,7 +492,7 @@ sysroot_stage_all () {
         :
  }
 
Quoted 5 lines

meta/classes/kernel.bbclass sysroot_stage_all () { · line 495

Quoted 2 lines
meta/classes/kernel.bbclass +1 -1
-KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} oldnoconfig"
+KERNEL_CONFIG_COMMAND ?= "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig || oe_runmake -C ${S} O=${B} CC="${KERNEL_CC}" oldnoconfig"

Apart from inexplicably swapping the positions of the O= and CC= options on the fallback command line (?!?), this version looks good.

never noticed :) I just cut and pasted it differently. I'll spare everyone a v4 for that!

Bruce

Quoted 11 lines
Quoted 11 lines
meta/classes/kernel.bbclass +0 -1
  python check_oldest_kernel() {
      oldest_kernel = d.getVar('OLDEST_KERNEL')
--

2.5.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core