Skip to contentSkip to conversation

archiver.bbclass: Fix for do_populate_sdk

PATCH In review Robert Yang 2 participants 4 messages May 15, 2020

lore
Share & tools
lore
#0 lore raw

cover archiver.bbclass: Fix for do_populate_sdk

The following changes since commit ce6c50ea68c34e02b487d54fdd9288e04833cdef:

wayland: fix condition for strndup detection (2020-05-14 14:13:50 +0100)

are available in the Git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/archiver
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/archiver

Robert Yang (1):
archiver.bbclass: Fix for do_populate_sdk

 meta/classes/archiver.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
Signature · 1 line
2.21.0
#1 lore raw

PATCH 1/1 archiver.bbclass: Fix for do_populate_sdk

Fixed:

$ bitbake core-image-minimal -cpopulate_sdk

Check tmp-glibc/deploy/sources, no source is archived, this patch fixes the problem.

---
 meta/classes/archiver.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
meta/classes/archiver.bbclass +4 -0
index 48b4913a9f..49f96bdce6 100644
@@ -592,4 +592,8 @@ python () {
     # gets added or removed (by adding or removing archiver.bbclass).
     if bb.data.inherits_class('kernel-yocto', d):
         bb.build.addtask('do_kernel_configme', 'do_configure', 'do_unpack_and_patch', d)
+
+    # For populate_sdk
+    if bb.data.inherits_class('image', d):
+        d.appendVarFlag('do_populate_sdk', 'recrdeptask', ' do_deploy_archives')
 }
Signature · 1 line
2.21.0
#2 lore raw

Robert,

I recommend we use the following patch instead as it's simpler:
https://lists.openembedded.org/g/openembedded-core/message/136168

Thanks,
Paul

Quoted 31 lines · Robert Yang

Fixed:

$ bitbake core-image-minimal -cpopulate_sdk

Check tmp-glibc/deploy/sources, no source is archived, this patch fixes the problem.

---
 meta/classes/archiver.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
meta/classes/archiver.bbclass +4 -0
index 48b4913a9f..49f96bdce6 100644
@@ -592,4 +592,8 @@ python () {
     # gets added or removed (by adding or removing archiver.bbclass).
     if bb.data.inherits_class('kernel-yocto', d):
         bb.build.addtask('do_kernel_configme', 'do_configure',
 'do_unpack_and_patch', d)
+
+    # For populate_sdk
+    if bb.data.inherits_class('image', d):
+        d.appendVarFlag('do_populate_sdk', 'recrdeptask', '

do_deploy_archives')
}
--
2.21.0

#3 lore raw
Quoted 3 lines · Paul Barker

Robert,

I recommend we use the following patch instead as it's simpler: https://lists.openembedded.org/g/openembedded-core/message/136168

Yes, that looks better, then please ignore my patch.

// Robert

Quoted 38 lines

Thanks,
Paul

On Fri, 15 May 2020 at 10:31, Robert Yang <[email protected] <mailto:[email protected]>> wrote:

Fixed:
$ bitbake core-image-minimal -cpopulate_sdk

Check tmp-glibc/deploy/sources, no source is archived, this patch fixes the problem.

<mailto:[email protected]>>
---
 meta/classes/archiver.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 48b4913a9f..49f96bdce6 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -592,4 +592,8 @@ python () {
     # gets added or removed (by adding or removing archiver.bbclass). if bb.data.inherits_class('kernel-yocto', d):
         bb.build.addtask('do_kernel_configme', 'do_configure',
'do_unpack_and_patch', d)
+
+    # For populate_sdk
+    if bb.data.inherits_class('image', d):
+        d.appendVarFlag('do_populate_sdk', 'recrdeptask', ' do_deploy_archives')
 }
--
2.21.0