After further investigation we realized that this change fix host but affects 
target manifest.
Proposed solution is not ok for now.

Regards,
Oleksiy

________________________________________
From: [email protected] 
<[email protected]> on behalf of Oleksiy Obitotskyy via 
lists.openembedded.org <[email protected]>
Sent: Tuesday, December 21, 2021 14:10
To: Richard Purdie; Patches and discussions about the oe-core layer
Subject: Re: [OE-core] Manifest for host (nativesdk) is empty

Something like this helps with host manifest.
It was just a guess - I found similar workaround into 
meta/lib/oe/package_manager/ipk/sdk.py.
If it appropriate I could arrange it as a patch.

diff --git a/meta/lib/oe/package_manager/ipk/__init__.py 
b/meta/lib/oe/package_manager/ipk/__init__.py
index 4cd3963111..37962fb689 100644
--- a/meta/lib/oe/package_manager/ipk/__init__.py
+++ b/meta/lib/oe/package_manager/ipk/__init__.py
@@ -62,6 +62,13 @@ class OpkgIndexer(Indexer):
 class PMPkgsList(PkgsList):
     def __init__(self, d, rootfs_dir):
         super(PMPkgsList, self).__init__(d, rootfs_dir)
+
+        # In sdk_list_installed_packages the call to opkg is hardcoded to
+        # always use IPKGCONF_TARGET and there's no exposed API to change this
+        # so simply override IPKGCONF_TARGET to use this separated config file.
+        ipkgconf_sdk_target = d.getVar("IPKGCONF_SDK")
+        d.setVar("IPKGCONF_TARGET", ipkgconf_sdk_target)
+
         config_file = d.getVar("IPKGCONF_TARGET")

Regards,
Oleksiy

________________________________________
From: [email protected] 
<[email protected]> on behalf of Richard Purdie 
<[email protected]>
Sent: Monday, December 20, 2021 13:20
To: Oleksiy Obitotskyi -X (oobitots - GLOBALLOGIC INC at Cisco); Patches and 
discussions about the oe-core layer
Subject: Re: [OE-core] Manifest for host (nativesdk) is empty

On Sun, 2021-12-19 at 12:16 +0000, Oleksiy Obitotskyy via lists.openembedded.org
wrote:
> Hi All,
>
> I'm working with gatesgarth and after 'bitbake core-image-minimal -c 
> populate_sdk' into .../deploy/sdk
> contains image installer .sh and manifests *.{host/target}.manifest. Host one 
> contains list of nativesdk packages.
>
> In honister target manifest is ok, but host manifest is empty.
> So, my question is it known behavior/done in purpose or not normal behavior?

It is unexpected and needs to be looked into...

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#159970): 
https://lists.openembedded.org/g/openembedded-core/message/159970
Mute This Topic: https://lists.openembedded.org/mt/87834818/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to