public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Srinuvasan Arjunan <srinuvasanasv@gmail.com>
To: isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] wic: bootimg-efi-isar: use static method for _copy_additional_files
Date: Mon, 25 Mar 2024 06:54:44 -0700 (PDT)	[thread overview]
Message-ID: <100dc56f-97eb-4be8-82e1-2ba250891434n@googlegroups.com> (raw)
In-Reply-To: <b99d8a70-5dae-4aa7-91b5-f9aaca28dbe2@siemens.com>


[-- Attachment #1.1: Type: text/plain, Size: 1570 bytes --]



On Monday, March 25, 2024 at 7:00:51 PM UTC+5:30 Jan Kiszka wrote:

On 25.03.24 09:49, srinuvasan.a via isar-users wrote: 
> From: Srinuvasan A <srinuv...@siemens.com> 
> 
> Presently we uses classmethod decorator for _copy_additional_files 
> method, and actually this not needed becuase we are not accessing any 
> class variable or method in this function. 
> 
> Change to static method for the below reason 
> - We are performing the generic functionality 
> - Moreover this should be initialized only once 
> 
> Signed-off-by: Srinuvasan A <srinuv...@siemens.com> 
> --- 
> meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py | 4 ++-- 
> 1 file changed, 2 insertions(+), 2 deletions(-) 
> 
> diff --git a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py 
b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py 
> index 4bfb70a0..5fe9bcb0 100644 
> --- a/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py 
> +++ b/meta/scripts/lib/wic/plugins/source/bootimg-efi-isar.py 
> @@ -40,8 +40,8 @@ class BootimgEFIPlugin(SourcePlugin): 
> 
> name = 'bootimg-efi-isar' 
> 
> - @classmethod 
> - def _copy_additional_files(cls, hdddir, initrd, dtb): 
> + @staticmethod 
> + def _copy_additional_files(hdddir, initrd, dtb): 
> bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE") 
> if not bootimg_dir: 
> raise WicError("Couldn't find DEPLOY_DIR_IMAGE, exiting") 

This is not Isar-specific. Please address this in OE first.


   Sure, thanks. 



Jan 

-- 
Siemens AG, Technology 
Linux Expert Center 


[-- Attachment #1.2: Type: text/html, Size: 2302 bytes --]

      reply	other threads:[~2024-03-25 13:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-25  8:49 srinuvasan.a
2024-03-25 13:30 ` Jan Kiszka
2024-03-25 13:54   ` Srinuvasan Arjunan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=100dc56f-97eb-4be8-82e1-2ba250891434n@googlegroups.com \
    --to=srinuvasanasv@gmail.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox