[OE-core] [PATCH] core-image-minimal-initramfs: add libgcc into the initramfs image

Zhixiong Chi zhixiong.chi at windriver.com
Thu Mar 7 10:00:21 UTC 2019


It's not for dependency of the package in the initramfs image,

just for the multithread application while the customer use initramfs image.

Since we use PACKAGE_INSTALL to override the rootfs in the initramfs bb 
file,

so we couldn't use the IMAGE_INSTALL_append to add the package in the 
local.conf.

Did you think if it should be added into the image? :-)

I know the initramfs is just to bootup the system. If the customer want 
to support the

multithread app, they can use the other types of the image.

Thanks.


On 2019年03月07日 17:05, Burton, Ross wrote:
> Wouldn't it be better to add that dependency to the packages which need it?
>
> Ross
>
> On Thu, 7 Mar 2019 at 06:53, Zhixiong Chi <zhixiong.chi at windriver.com> wrote:
>> Add the libgcc package into the initramfs image to avoid multithread
>> function error in the userspace(eg: pthread_cancel).
>>
>> Signed-off-by: Zhixiong Chi <zhixiong.chi at windriver.com>
>> ---
>>   meta/recipes-core/images/core-image-minimal-initramfs.bb | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-core/images/core-image-minimal-initramfs.bb b/meta/recipes-core/images/core-image-minimal-initramfs.bb
>> index 7df8ab1ebd..3cf2c7b01f 100644
>> --- a/meta/recipes-core/images/core-image-minimal-initramfs.bb
>> +++ b/meta/recipes-core/images/core-image-minimal-initramfs.bb
>> @@ -11,7 +11,7 @@ INITRAMFS_SCRIPTS ?= "\
>>                         initramfs-module-install-efi \
>>                        "
>>
>> -PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} udev base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
>> +PACKAGE_INSTALL = "${INITRAMFS_SCRIPTS} ${VIRTUAL-RUNTIME_base-utils} udev base-passwd libgcc ${ROOTFS_BOOTSTRAP_INSTALL}"
>>
>>   # Do not pollute the initrd image with rootfs features
>>   IMAGE_FEATURES = ""
>> --
>> 2.17.1
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core at lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core

-- 
---------------------
Thanks,
Zhixiong Chi
Tel: +86-10-8477-7036



More information about the Openembedded-core mailing list