[hardknott] core-image-tiny-initramfs: delete populate_sdk task

Message ID 20211216050940.91694-1-Qi.Chen@windriver.com
State New
Headers show
Series [hardknott] core-image-tiny-initramfs: delete populate_sdk task | expand

Commit Message

ChenQi Dec. 16, 2021, 5:09 a.m. UTC
Currently, if we do `bitbake core-image-tiny-initramfs' and then
install the generated SDK, the following error appears.

  tar: ./sysroots/core2-64-poky-linux/dev/console: Cannot mknod: Operation not permitted

The populate_sdk task does not make much sense for this recipe and
considering the fact the its SDK cannot be installed, we'd better just
delete the task.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-core/images/core-image-tiny-initramfs.bb | 2 ++
 1 file changed, 2 insertions(+)

Comments

Mittal, Anuj Dec. 28, 2021, 4:20 a.m. UTC | #1
On Wed, 2021-12-15 at 21:09 -0800, Chen Qi wrote:
> Currently, if we do `bitbake core-image-tiny-initramfs' and then
> install the generated SDK, the following error appears.
> 
>   tar: ./sysroots/core2-64-poky-linux/dev/console: Cannot mknod:
> Operation not permitted
> 
> The populate_sdk task does not make much sense for this recipe and
> considering the fact the its SDK cannot be installed, we'd better
> just
> delete the task.

Is this not required for master? Is this hardknott specific?

Thanks,

Anuj

> 
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>  meta/recipes-core/images/core-image-tiny-initramfs.bb | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb
> b/meta/recipes-core/images/core-image-tiny-initramfs.bb
> index 47470849ed..66c73e4261 100644
> --- a/meta/recipes-core/images/core-image-tiny-initramfs.bb
> +++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb
> @@ -23,6 +23,8 @@ IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
>  
>  inherit core-image
>  
> +deltask do_populate_sdk
> +
>  IMAGE_ROOTFS_SIZE = "8192"
>  IMAGE_ROOTFS_EXTRA_SPACE = "0"
>  
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#159772):
> https://lists.openembedded.org/g/openembedded-core/message/159772
> Mute This Topic: https://lists.openembedded.org/mt/87761452/3616702
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe:
> https://lists.openembedded.org/g/openembedded-core/unsub [
> anuj.mittal@intel.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
ChenQi Dec. 28, 2021, 5:38 a.m. UTC | #2
Hi Anuj,

It's for both master and hardknott. I sent out two patches, one for master and one for hardknott.

Regards,
Qi

-----Original Message-----
From: Mittal, Anuj <anuj.mittal@intel.com> 
Sent: Tuesday, December 28, 2021 12:20 PM
To: Chen, Qi <Qi.Chen@windriver.com>; openembedded-core@lists.openembedded.org
Subject: Re: [OE-core][hardknott][PATCH] core-image-tiny-initramfs: delete populate_sdk task

On Wed, 2021-12-15 at 21:09 -0800, Chen Qi wrote:
> Currently, if we do `bitbake core-image-tiny-initramfs' and then 
> install the generated SDK, the following error appears.
> 
>   tar: ./sysroots/core2-64-poky-linux/dev/console: Cannot mknod:
> Operation not permitted
> 
> The populate_sdk task does not make much sense for this recipe and 
> considering the fact the its SDK cannot be installed, we'd better just 
> delete the task.

Is this not required for master? Is this hardknott specific?

Thanks,

Anuj

> 
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>  meta/recipes-core/images/core-image-tiny-initramfs.bb | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb
> b/meta/recipes-core/images/core-image-tiny-initramfs.bb
> index 47470849ed..66c73e4261 100644
> --- a/meta/recipes-core/images/core-image-tiny-initramfs.bb
> +++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb
> @@ -23,6 +23,8 @@ IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
>  
>  inherit core-image
>  
> +deltask do_populate_sdk
> +
>  IMAGE_ROOTFS_SIZE = "8192"
>  IMAGE_ROOTFS_EXTRA_SPACE = "0"
>  
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#159772):
> https://lists.openembedded.org/g/openembedded-core/message/159772
> Mute This Topic: https://lists.openembedded.org/mt/87761452/3616702
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe:
> https://lists.openembedded.org/g/openembedded-core/unsub [ 
> anuj.mittal@intel.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

Patch

diff --git a/meta/recipes-core/images/core-image-tiny-initramfs.bb b/meta/recipes-core/images/core-image-tiny-initramfs.bb
index 47470849ed..66c73e4261 100644
--- a/meta/recipes-core/images/core-image-tiny-initramfs.bb
+++ b/meta/recipes-core/images/core-image-tiny-initramfs.bb
@@ -23,6 +23,8 @@  IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
 
 inherit core-image
 
+deltask do_populate_sdk
+
 IMAGE_ROOTFS_SIZE = "8192"
 IMAGE_ROOTFS_EXTRA_SPACE = "0"