Skip to contentSkip to conversation

Custom SDK generation from YoctoSDK #sdk

DISCUSSION Praveen 2 participants 3 messages Jan 24, 2022 – Jan 28, 2022 1 message not in the archive

lore
Share & tools
lore

Praveen

author
#0 lore raw

I am looking for Custom SDK with filtered Header files/libraries based on some rules/approvals. It means not all files from YoctoSDK will be packaged in the CustomSDK.

What is the mechanism or approach where we can pull only those approved header files & libraries from YoctoSDK and package as Customized SDK tar?

Is there a way we can fetch those approved header files from YOCTO SDK and filter it?

I am thinking like creating subset versioned module recipe and specify those approved header files and package only those files. Is there any better mechanism on packaging or filtering the SDK based on some rules to filter some header files?

Like for example in YoctoSDK, we have 2 modules moduleA (A1.h, A2.h,A3.h and libA.so), moduleB ( B1.h, B2.h, B3.h and libB.so) Lets say A3.h & B3.h are not approved in my Custom SDK, then in final Customer SDK we will only package moduleA (A1.h, A2.h and libA.so), moduleB (B1.h, B2.h, and libB.so)

I want to keep YoctoSDK without any filters, so that A3.h/B3.h can be used for internal purposes without any issue.

#1 lore raw
Quoted 11 lines · Praveen

I am looking for Custom SDK with filtered Header files/libraries based on some rules/approvals. It means not all files from YoctoSDK will be packaged in the CustomSDK. What is the mechanism or approach where we can pull only those approved header files & libraries from YoctoSDK and package as Customized SDK tar? Is there a way we can fetch those approved header files from YOCTO SDK and filter it?

I am thinking like creating subset versioned module recipe and specify those approved header files and package only those files. Is there any better mechanism on packaging or filtering the SDK based on some rules to filter some header files?

Like for example in YoctoSDK, we have 2 modules moduleA (A1.h, A2.h,A3.h and libA.so <https://urldefense.com/v3/__http://libA.so__;!!AjveYdw8EvQ!NJIRn0lCb9eoyJygfXfowA7XvdWxDgtIrC7DDYfcN_EBy5g_VTxv7frpiLP-2nwfTBvYzQ$>), moduleB (B1.h, B2.h, B3.h and libB.so <https://urldefense.com/v3/__http://libB.so__;!!AjveYdw8EvQ!NJIRn0lCb9eoyJygfXfowA7XvdWxDgtIrC7DDYfcN_EBy5g_VTxv7frpiLP-2nxZDrg-zw$>)
Lets say A3.h & B3.h are not approved in my Custom SDK, then in final Customer SDK we will only package
moduleA (A1.h, A2.h and libA.so <https://urldefense.com/v3/__http://libA.so__;!!AjveYdw8EvQ!NJIRn0lCb9eoyJygfXfowA7XvdWxDgtIrC7DDYfcN_EBy5g_VTxv7frpiLP-2nwfTBvYzQ$>), moduleB (B1.h, B2.h, and libB.so <https://urldefense.com/v3/__http://libB.so__;!!AjveYdw8EvQ!NJIRn0lCb9eoyJygfXfowA7XvdWxDgtIrC7DDYfcN_EBy5g_VTxv7frpiLP-2nxZDrg-zw$>)

I want to keep YoctoSDK without any filters, so that A3.h/B3.h can be used for internal purposes without any issue.

Hi Praveen,

I'm not aware of anyone else doing that.

For libraries/recipes, you could just omit certain packages from the eSDK but you don't seem to want to do that.

What is your goal in filtering headers and libraries rather than say generating two SDKs:
one that is unrestricted and the other with limited APIs ?

../Randy

Quoted 10 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55956):https://lists.yoctoproject.org/g/yocto/message/55956 Mute This Topic:https://lists.yoctoproject.org/mt/88653143/3616765
Mute #sdk:https://lists.yoctoproject.org/g/yocto/mutehashtag/sdk
Group Owner:[email protected] Unsubscribe:https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
# Randy MacLeod
# Wind River Linux

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 16 lines · Randy MacLeod
Quoted 6 lines · Praveen

I am looking for Custom SDK with filtered Header files/libraries based on some rules/approvals. It means not all files from YoctoSDK will be packaged in the CustomSDK. What is the mechanism or approach where we can pull only those approved header files & libraries from YoctoSDK and package as Customized SDK tar? Is there a way we can fetch those approved header files from YOCTO SDK and filter it?

I am thinking like creating subset versioned module recipe and specify those approved header files and package only those files. Is there any better mechanism on packaging or filtering the SDK based on some rules to filter some header files?

Quoted 8 lines

Like for example in YoctoSDK, we have 2 modules
moduleA (A1.h, A2.h,A3.h and libA.so <https://urldefense.com/v3/__http://libA.so__;!!AjveYdw8EvQ!NJIRn0lCb9eoyJygfXfowA7XvdWxDgtIrC7DDYfcN_EBy5g_VTxv7frpiLP-2nwfTBvYzQ$>),

moduleB (B1.h, B2.h, B3.h and libB.so <https://urldefense.com/v3/__http://libB.so__;!!AjveYdw8EvQ!NJIRn0lCb9eoyJygfXfowA7XvdWxDgtIrC7DDYfcN_EBy5g_VTxv7frpiLP-2nxZDrg-zw$>)
Lets say A3.h & B3.h are not approved in my Custom SDK, then in final Customer SDK we will only package
moduleA (A1.h, A2.h and libA.so <https://urldefense.com/v3/__http://libA.so__;!!AjveYdw8EvQ!NJIRn0lCb9eoyJygfXfowA7XvdWxDgtIrC7DDYfcN_EBy5g_VTxv7frpiLP-2nwfTBvYzQ$>), moduleB (B1.h, B2.h, and libB.so <https://urldefense.com/v3/__http://libB.so__;!!AjveYdw8EvQ!NJIRn0lCb9eoyJygfXfowA7XvdWxDgtIrC7DDYfcN_EBy5g_VTxv7frpiLP-2nxZDrg-zw$>)

I want to keep YoctoSDK without any filters, so that A3.h/B3.h can be used for internal purposes without any issue.

Quoted 9 lines

Hi Praveen,

I'm not aware of anyone else doing that.

For libraries/recipes, you could just omit certain packages from the eSDK but you don't seem to want to do that.

What is your goal in filtering headers and libraries rather than say generating two SDKs:
one that is unrestricted and the other with limited APIs ?

That is, can you not package each moduleA as moduleA and moduleA-private using Yocto's packaging

mechanism with the *3.h files being in the private packages?

I don't work with the SDK very much so I could be out in left field but if I am, hopefully someone will reply and straighten us both out!

../Randy

Quoted 17 lines

../Randy

Quoted 1 line
Signature · 11 lines
# Randy MacLeod
# Wind River Linux

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#56011):https://lists.yoctoproject.org/g/yocto/message/56011
Mute This Topic:https://lists.yoctoproject.org/mt/88653143/3616765
Mute #sdk:https://lists.yoctoproject.org/g/yocto/mutehashtag/sdk
Group Owner:[email protected]
Unsubscribe:https://lists.yoctoproject.org/g/yocto/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 2 lines
# Randy MacLeod
# Wind River Linux