Skip to contentSkip to conversation

linux: copy-defconfig: move create_srcipk task after configure

PATCH In review Jacob Stiffler 2 participants 6 messages Aug 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 linux: copy-defconfig: move create_srcipk task after configure

* With sstate support for the sourceipk class, create_srcipk can no longer be successfully called within another task.
* Move the create_srcipk task after configure so that the build defconfig is included in the src package.

---
 meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc          | 7 +++++--
 .../recipes-kernel/linux/linux-ti-staging-rt_%.bbappend            | 2 +-
 .../recipes-kernel/linux/linux-ti-staging-systest_%.bbappend       | 2 +-
 meta-arago-distro/recipes-kernel/linux/linux-ti-staging_%.bbappend | 2 +-
 4 files changed, 8 insertions(+), 5 deletions(-)
meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc +5 -2
index b9db1ee..46de4a3 100644
@@ -5,7 +5,10 @@ CONFIG_NAME ?= "tisdk_${MACHINE}_defconfig"
 # the function to build the sourceipk again.  This is done as a
 # do_compile_prepend so that we can pick up any changes to the
 # defconfig thay may have been done by the sanitizer code.
-do_compile_prepend() {
+do_configure_append() {
     cp ${B}/.config ${S}/arch/arm/configs/${CONFIG_NAME}
-    sourceipk_do_create_srcipk
 }
+
+# Move create_srcipk task so that the release defconfig is included.
+deltask do_create_srcipk
+addtask create_srcipk after do_configure before do_compile
meta-arago-distro/recipes-kernel/linux/linux-ti-staging-rt_%.bbappend +1 -1
index 7c90ac5..a3241ab 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago0"
+MACHINE_KERNEL_PR_append = ".arago1"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
 
meta-arago-distro/recipes-kernel/linux/linux-ti-staging-systest_%.bbappend +1 -1
index 7c90ac5..a3241ab 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago0"
+MACHINE_KERNEL_PR_append = ".arago1"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
 
meta-arago-distro/recipes-kernel/linux/linux-ti-staging_%.bbappend +1 -1
index 4c50655..6ae4bd7 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago4"
+MACHINE_KERNEL_PR_append = ".arago5"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/3 copy-defconfig: add ARAGO_KERNEL_SUFFIX to defconfig name

---
 meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc +1 -1
index 46de4a3..ffc8b2b 100644
@@ -1,4 +1,4 @@
-CONFIG_NAME ?= "tisdk_${MACHINE}_defconfig"
+CONFIG_NAME ?= "tisdk_${MACHINE}${ARAGO_KERNEL_SUFFIX}_defconfig"
 
 # Copy the configuration file used during the SDK build in Arago to
 # the kernel sources to be packaged into the sourceipk.  Then call
Signature · 1 line
2.7.4
#2 lore raw

PATCH 3/3 ti-tisdk-makefile: update defconfig name

In reply to Jacob Stiffler

* Add ARAGO_KERNEL_SUFFIX to defconfig name

---
 .../recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-tisdk/ti-tisdk-makefile/ti-tisdk-makefile_1.0.bb +2 -2
index 9184568..75f40d2 100644
@@ -48,7 +48,7 @@ SRC_URI = "\
     file://Makefile_linalg-examples \
 "
 
-PR = "r72"
+PR = "r73"
 
 MAKEFILES_MATRIX_GUI = "matrix-gui-browser \
                         refresh-screen \
@@ -187,7 +187,7 @@ KERNEL_DEVICETREE_k2e-evm = "keystone-k2e-evm.dtb"
 KERNEL_DEVICETREE_k2g-evm = "keystone-k2g-evm.dtb"
 KERNEL_DEVICETREE_k2l-evm = "keystone-k2l-evm.dtb"
 
-DEFCONFIG = "tisdk_${MACHINE}_defconfig"
+DEFCONFIG = "tisdk_${MACHINE}${ARAGO_KERNEL_SUFFIX}_defconfig"
 
 AMSDK_DEFCONFIG = "singlecore-omap2plus_defconfig"
 
Signature · 1 line
2.7.4
#3 lore raw
In reply to Jacob Stiffler

Didn't I already submit this last week when Sam reported it?

Quoted 67 lines · Jacob Stiffler

* With sstate support for the sourceipk class, create_srcipk can no longer be successfully called within another task.
* Move the create_srcipk task after configure so that the build defconfig is included in the src package.

---
 meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc          | 7 +++++--
 .../recipes-kernel/linux/linux-ti-staging-rt_%.bbappend            | 2 +-
 .../recipes-kernel/linux/linux-ti-staging-systest_%.bbappend       | 2 +-
 meta-arago-distro/recipes-kernel/linux/linux-ti-staging_%.bbappend | 2 +-
 4 files changed, 8 insertions(+), 5 deletions(-)
meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc +5 -2
index b9db1ee..46de4a3 100644
@@ -5,7 +5,10 @@ CONFIG_NAME ?= "tisdk_${MACHINE}_defconfig"
 # the function to build the sourceipk again.  This is done as a
 # do_compile_prepend so that we can pick up any changes to the
 # defconfig thay may have been done by the sanitizer code.
-do_compile_prepend() {
+do_configure_append() {
     cp ${B}/.config ${S}/arch/arm/configs/${CONFIG_NAME}
-    sourceipk_do_create_srcipk
 }
+
+# Move create_srcipk task so that the release defconfig is included.
+deltask do_create_srcipk
+addtask create_srcipk after do_configure before do_compile
meta-arago-distro/recipes-kernel/linux/linux-ti-staging-rt_%.bbappend +1 -1
index 7c90ac5..a3241ab 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago0"
+MACHINE_KERNEL_PR_append = ".arago1"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
 
meta-arago-distro/recipes-kernel/linux/linux-ti-staging-systest_%.bbappend +1 -1
index 7c90ac5..a3241ab 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago0"
+MACHINE_KERNEL_PR_append = ".arago1"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
 
meta-arago-distro/recipes-kernel/linux/linux-ti-staging_%.bbappend +1 -1
index 4c50655..6ae4bd7 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago4"
+MACHINE_KERNEL_PR_append = ".arago5"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
 
Signature · 6 lines
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#4 lore raw
Quoted 1 line · Denys Dmytriyenko

Didn't I already submit this last week when Sam reported it?

I don't recall seeing it. I just checked patchwork, but I do not see it there either.

Quoted 69 lines · Jacob Stiffler
Quoted 67 lines

* With sstate support for the sourceipk class, create_srcipk can no longer be successfully called within another task.
* Move the create_srcipk task after configure so that the build defconfig is included in the src package.

---
  meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc          | 7 +++++--
  .../recipes-kernel/linux/linux-ti-staging-rt_%.bbappend            | 2 +-
  .../recipes-kernel/linux/linux-ti-staging-systest_%.bbappend       | 2 +-
  meta-arago-distro/recipes-kernel/linux/linux-ti-staging_%.bbappend | 2 +-
  4 files changed, 8 insertions(+), 5 deletions(-)
meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc +5 -2
index b9db1ee..46de4a3 100644
@@ -5,7 +5,10 @@ CONFIG_NAME ?= "tisdk_${MACHINE}_defconfig"
  # the function to build the sourceipk again.  This is done as a
  # do_compile_prepend so that we can pick up any changes to the
  # defconfig thay may have been done by the sanitizer code.
-do_compile_prepend() {
+do_configure_append() {
      cp ${B}/.config ${S}/arch/arm/configs/${CONFIG_NAME}
-    sourceipk_do_create_srcipk
  }
+
+# Move create_srcipk task so that the release defconfig is included.
+deltask do_create_srcipk
+addtask create_srcipk after do_configure before do_compile
meta-arago-distro/recipes-kernel/linux/linux-ti-staging-rt_%.bbappend +1 -1
index 7c90ac5..a3241ab 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago0"
+MACHINE_KERNEL_PR_append = ".arago1"
 
  FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
 
meta-arago-distro/recipes-kernel/linux/linux-ti-staging-systest_%.bbappend +1 -1
index 7c90ac5..a3241ab 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago0"
+MACHINE_KERNEL_PR_append = ".arago1"
 
  FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
 
meta-arago-distro/recipes-kernel/linux/linux-ti-staging_%.bbappend +1 -1
index 4c50655..6ae4bd7 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago4"
+MACHINE_KERNEL_PR_append = ".arago5"
 
  FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
 
Signature · 6 lines
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#5 lore raw
Quoted 7 lines · Jacob Stiffler
Quoted 1 line · Denys Dmytriyenko

Didn't I already submit this last week when Sam reported it?

I don't recall seeing it. I just checked patchwork, but I do not see it there either.

Hmm, it seems the fix got buried in my secure boot work that got me distracted... Nevermind.

Quoted 63 lines
Quoted 62 lines · Jacob Stiffler
Quoted 61 lines

* With sstate support for the sourceipk class, create_srcipk can no longer be successfully called within another task.
* Move the create_srcipk task after configure so that the build defconfig is included in the src package.

---
 meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc          | 7 +++++--
 .../recipes-kernel/linux/linux-ti-staging-rt_%.bbappend            | 2 +-
 .../recipes-kernel/linux/linux-ti-staging-systest_%.bbappend       | 2 +-
 meta-arago-distro/recipes-kernel/linux/linux-ti-staging_%.bbappend | 2 +-
 4 files changed, 8 insertions(+), 5 deletions(-)
meta-arago-distro/recipes-kernel/linux/copy-defconfig.inc +5 -2
index b9db1ee..46de4a3 100644
@@ -5,7 +5,10 @@ CONFIG_NAME ?= "tisdk_${MACHINE}_defconfig"
 # the function to build the sourceipk again.  This is done as a
 # do_compile_prepend so that we can pick up any changes to the
 # defconfig thay may have been done by the sanitizer code.
-do_compile_prepend() {
+do_configure_append() {
     cp ${B}/.config ${S}/arch/arm/configs/${CONFIG_NAME}
-    sourceipk_do_create_srcipk
 }
+
+# Move create_srcipk task so that the release defconfig is included.
+deltask do_create_srcipk
+addtask create_srcipk after do_configure before do_compile
meta-arago-distro/recipes-kernel/linux/linux-ti-staging-rt_%.bbappend +1 -1
index 7c90ac5..a3241ab 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago0"
+MACHINE_KERNEL_PR_append = ".arago1"
 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
meta-arago-distro/recipes-kernel/linux/linux-ti-staging-systest_%.bbappend +1 -1
index 7c90ac5..a3241ab 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago0"
+MACHINE_KERNEL_PR_append = ".arago1"
 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
meta-arago-distro/recipes-kernel/linux/linux-ti-staging_%.bbappend +1 -1
index 4c50655..6ae4bd7 100644
@@ -1,4 +1,4 @@
-MACHINE_KERNEL_PR_append = ".arago4"
+MACHINE_KERNEL_PR_append = ".arago5"
 FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:"
Signature · 6 lines
2.7.4

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago