Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mike Crowe <mac@mcrowe.com>
To: openembedded-core@lists.openembedded.org
Cc: Mike Crowe <mac@mcrowe.com>
Subject: [PATCH] kernel: Permit overriding of KERNEL_IMAGETYPE_FOR_MAKE
Date: Thu,  5 Nov 2015 14:47:40 +0000	[thread overview]
Message-ID: <1446734860-6091-1-git-send-email-mac@mcrowe.com> (raw)

Commit a1690131691507bbf5853540229b3ad775b836bf removed the ability of
recipes to set KERNEL_IMAGETYPE_FOR_MAKE. This can be fixed by only
setting KERNEL_IMAGETYPE_FOR_MAKE if it doesn't already have a
value. This should hopefully be a good enough approximation to the
behaviour prior to that commit to keep such recipes working.

Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
 meta/classes/kernel.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 5e8b6cf..8d780c3 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -21,7 +21,8 @@ python __anonymous () {
 
     kerneltype = d.getVar('KERNEL_IMAGETYPE', True)
 
-    d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", re.sub(r'\.gz$', '', kerneltype))
+    if not d.getVar("KERNEL_IMAGETYPE_FOR_MAKE", False):
+        d.setVar("KERNEL_IMAGETYPE_FOR_MAKE", re.sub(r'\.gz$', '', kerneltype))
 
     image = d.getVar('INITRAMFS_IMAGE', True)
     if image:
-- 
2.1.4



             reply	other threads:[~2015-11-05 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05 14:47 Mike Crowe [this message]
2016-10-11 14:04 ` [PATCH] kernel: Permit overriding of KERNEL_IMAGETYPE_FOR_MAKE Phil Blundell
2016-10-11 16:42   ` Burton, Ross
  -- strict thread matches above, loose matches on Subject: below --
2018-05-02 16:02 Mike Crowe

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=1446734860-6091-1-git-send-email-mac@mcrowe.com \
    --to=mac@mcrowe.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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