Skip to contentSkip to conversation

Auto-remove empty package from rootfs

DISCUSSION Vignesh Rajendran (RBEI/ECF3) 2 participants 2 messages Sep 20, 2019

lore
Share & tools
lore
#0 lore raw

Hello All,

I have a feeling that the empty packages are really not useful inside rootfs/sysroot either dependency with other packages, isn't it?

Is there already a way in Yocto to remove/avoid empty packages from rootfs?

PACKAGE_EXCLUDE would do that, but looking for a better option which can automatically exclude the empty packages without harming package dependency.

Appreciate your answer.

Best regards,

Rajendran Vignesh
RBEI/ECF3

Tel. +91 422 676-5103 | Threema Work<threemawork://add/?id=+914226765103>: +914226765103

#1 lore raw
Quoted 5 lines · On 20/09/2019 07:12, Vignesh Rajendran (RBEI/ECF3) wrote:

Hello All,

I have a feeling that the empty packages are really not useful inside rootfs/sysroot either dependency with other packages, isn’t it?

Is there already a way in Yocto to remove/avoid empty packages from rootfs?

An empty package by definition doesn't have any impact on the rootfs, because it's empty. The majority of empty packages are used for their dependency management: package groups are just empty packages which have dependencies.

If you know of any empty packages which have no dependencies, feel free to submit a patch to remove them from the metadata.

Ross