All of lore.kernel.org
 help / color / mirror / Atom feed
* [pyro][PATCH 0/2] Backports for pyro to fix eSDK / initramfs interaction
@ 2017-09-26 20:42 Paul Eggleton
  2017-09-26 20:42 ` [pyro][PATCH 1/2] image.bbclass: drop initramfs bundle related code Paul Eggleton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paul Eggleton @ 2017-09-26 20:42 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 404a04a862a71a5a0fb1c20b6bc9fc9c8b2bb98c:

  image.bbclass: Sorted ctypes to avoid basehash error (2017-09-22 17:52:58 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib paule/pyro-esdk-initramfs-fix-oe
  http://cgit.openembedded.org/openembedded-core-contrib/log/?h=paule/pyro-esdk-initramfs-fix-oe

Ming Liu (1):
  image.bbclass: drop initramfs bundle related code

Paul Eggleton (1):
  classes: drop image dependencies on TOPDIR variable

 meta/classes/image.bbclass               | 12 ------------
 meta/classes/image_types_wic.bbclass     |  2 +-
 meta/classes/qemuboot.bbclass            |  1 +
 meta/classes/rootfs-postcommands.bbclass |  1 +
 4 files changed, 3 insertions(+), 13 deletions(-)

-- 
2.9.5



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pyro][PATCH 1/2] image.bbclass: drop initramfs bundle related code
  2017-09-26 20:42 [pyro][PATCH 0/2] Backports for pyro to fix eSDK / initramfs interaction Paul Eggleton
@ 2017-09-26 20:42 ` Paul Eggleton
  2017-09-26 20:42 ` [pyro][PATCH 2/2] classes: drop image dependencies on TOPDIR variable Paul Eggleton
  2017-09-27  3:04 ` [pyro][PATCH 0/2] Backports for pyro to fix eSDK / initramfs interaction akuster808
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2017-09-26 20:42 UTC (permalink / raw)
  To: openembedded-core

From: Ming Liu <peter.x.liu@external.atlascopco.com>

The original purpose of this code snippet was to repackage initramfs
bundled kernel images before do_image_complete, to be able to be
included by rootfs, but it's not going to achieve that since the
initramfs bundled kernel images are not even installed to ${D}/boot
after commit a49569e3a7534779bbe3f01a0647fd076c95798d:
[ kernel.bbclass: do not copy bundled initramfs to /boot ]

So there is not a initramfs bundled kernel package at all, we should
drop the code, because it is leading kernel do_initramfs_bundle
unnecessarily rerun and it's very time consuming and hence is impacting
the performance a lot.

(From OE-Core master rev: eca501aeb4f2cc9255fabab14c68f6910367aaf9)

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/image.bbclass | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 9c9f14a..77e10a8 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -184,10 +184,6 @@ python () {
     d.setVar('IMAGE_FEATURES', ' '.join(sorted(list(remain_features))))
 
     check_image_features(d)
-    initramfs_image = d.getVar('INITRAMFS_IMAGE') or ""
-    if initramfs_image != "":
-        d.appendVarFlag('do_build', 'depends', " %s:do_bundle_initramfs" %  d.getVar('PN'))
-        d.appendVarFlag('do_bundle_initramfs', 'depends', " %s:do_image_complete" % initramfs_image)
 }
 
 IMAGE_CLASSES += "image_types"
@@ -609,11 +605,3 @@ do_package_write_ipk[noexec] = "1"
 do_package_write_deb[noexec] = "1"
 do_package_write_rpm[noexec] = "1"
 
-# Allow the kernel to be repacked with the initramfs and boot image file as a single file
-do_bundle_initramfs[depends] += "virtual/kernel:do_bundle_initramfs"
-do_bundle_initramfs[nostamp] = "1"
-do_bundle_initramfs[noexec] = "1"
-do_bundle_initramfs () {
-	:
-}
-addtask bundle_initramfs after do_image_complete
-- 
2.9.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [pyro][PATCH 2/2] classes: drop image dependencies on TOPDIR variable
  2017-09-26 20:42 [pyro][PATCH 0/2] Backports for pyro to fix eSDK / initramfs interaction Paul Eggleton
  2017-09-26 20:42 ` [pyro][PATCH 1/2] image.bbclass: drop initramfs bundle related code Paul Eggleton
@ 2017-09-26 20:42 ` Paul Eggleton
  2017-09-27  3:04 ` [pyro][PATCH 0/2] Backports for pyro to fix eSDK / initramfs interaction akuster808
  2 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2017-09-26 20:42 UTC (permalink / raw)
  To: openembedded-core

We don't need a dependency on this variable changing, and having one
causes locked signature warnings during eSDK installation if you have
INITRAMFS_IMAGE_* set (since TOPDIR will always be different between
the eSDK and the environment in which it was built).

Relates to [YOCTO #12102].

(From OE-Core master rev: 073610af04be326f9245ca91714526b390fb72cd)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/image_types_wic.bbclass     | 2 +-
 meta/classes/qemuboot.bbclass            | 1 +
 meta/classes/rootfs-postcommands.bbclass | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/image_types_wic.bbclass b/meta/classes/image_types_wic.bbclass
index 4711c24..68f251c 100644
--- a/meta/classes/image_types_wic.bbclass
+++ b/meta/classes/image_types_wic.bbclass
@@ -33,7 +33,7 @@ IMAGE_CMD_wic () {
 	mv "$out/$(basename "${wks%.wks}")"*.direct "$out${IMAGE_NAME_SUFFIX}.wic"
 	rm -rf "$out/"
 }
-IMAGE_CMD_wic[vardepsexclude] = "WKS_FULL_PATH WKS_FILES"
+IMAGE_CMD_wic[vardepsexclude] = "WKS_FULL_PATH WKS_FILES TOPDIR"
 
 # Rebuild when the wks file or vars in WICVARS change
 USING_WIC = "${@bb.utils.contains_any('IMAGE_FSTYPES', 'wic ' + ' '.join('wic.%s' % c for c in '${CONVERSIONTYPES}'.split()), '1', '', d)}"
diff --git a/meta/classes/qemuboot.bbclass b/meta/classes/qemuboot.bbclass
index 86b3060..3468d1c 100644
--- a/meta/classes/qemuboot.bbclass
+++ b/meta/classes/qemuboot.bbclass
@@ -79,6 +79,7 @@ def qemuboot_vars(d):
     return build_vars + [k for k in d.keys() if k.startswith('QB_')]
 
 do_write_qemuboot_conf[vardeps] += "${@' '.join(qemuboot_vars(d))}"
+do_write_qemuboot_conf[vardepsexclude] += "TOPDIR"
 python do_write_qemuboot_conf() {
     import configparser
 
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index 2503d89..31f2560 100644
--- a/meta/classes/rootfs-postcommands.bbclass
+++ b/meta/classes/rootfs-postcommands.bbclass
@@ -305,6 +305,7 @@ python write_image_test_data() {
            os.remove(testdata_link)
         os.symlink(os.path.basename(testdata), testdata_link)
 }
+write_image_test_data[vardepsexclude] += "TOPDIR"
 
 # Check for unsatisfied recommendations (RRECOMMENDS)
 python rootfs_log_check_recommends() {
-- 
2.9.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [pyro][PATCH 0/2] Backports for pyro to fix eSDK / initramfs interaction
  2017-09-26 20:42 [pyro][PATCH 0/2] Backports for pyro to fix eSDK / initramfs interaction Paul Eggleton
  2017-09-26 20:42 ` [pyro][PATCH 1/2] image.bbclass: drop initramfs bundle related code Paul Eggleton
  2017-09-26 20:42 ` [pyro][PATCH 2/2] classes: drop image dependencies on TOPDIR variable Paul Eggleton
@ 2017-09-27  3:04 ` akuster808
  2 siblings, 0 replies; 4+ messages in thread
From: akuster808 @ 2017-09-27  3:04 UTC (permalink / raw)
  To: openembedded-core

paul,


On 09/26/2017 01:42 PM, Paul Eggleton wrote:
> The following changes since commit 404a04a862a71a5a0fb1c20b6bc9fc9c8b2bb98c:
>
>   image.bbclass: Sorted ctypes to avoid basehash error (2017-09-22 17:52:58 +0100)
>
> are available in the git repository at:
>
>   git://git.openembedded.org/openembedded-core-contrib paule/pyro-esdk-initramfs-fix-oe
>   http://cgit.openembedded.org/openembedded-core-contrib/log/?h=paule/pyro-esdk-initramfs-fix-oe

thanks,
merged to staging.
- armin
> Ming Liu (1):
>   image.bbclass: drop initramfs bundle related code
>
> Paul Eggleton (1):
>   classes: drop image dependencies on TOPDIR variable
>
>  meta/classes/image.bbclass               | 12 ------------
>  meta/classes/image_types_wic.bbclass     |  2 +-
>  meta/classes/qemuboot.bbclass            |  1 +
>  meta/classes/rootfs-postcommands.bbclass |  1 +
>  4 files changed, 3 insertions(+), 13 deletions(-)
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-27  3:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-26 20:42 [pyro][PATCH 0/2] Backports for pyro to fix eSDK / initramfs interaction Paul Eggleton
2017-09-26 20:42 ` [pyro][PATCH 1/2] image.bbclass: drop initramfs bundle related code Paul Eggleton
2017-09-26 20:42 ` [pyro][PATCH 2/2] classes: drop image dependencies on TOPDIR variable Paul Eggleton
2017-09-27  3:04 ` [pyro][PATCH 0/2] Backports for pyro to fix eSDK / initramfs interaction akuster808

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.