All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heghedus Razvan <razvan.heghedus@ni.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 2/2] kernel: user defined KERNEL_VERSION_PKG_NAME
Date: Wed, 21 Jun 2017 15:00:03 +0300	[thread overview]
Message-ID: <20170621120003.6440-2-razvan.heghedus@ni.com> (raw)
In-Reply-To: <20170621120003.6440-1-razvan.heghedus@ni.com>

Add possibility to set KERNEL_VERSION_PKG_NAME to a user
defined value.

Signed-off-by: Heghedus Razvan <razvan.heghedus@ni.com>
---
 meta/classes/kernel.bbclass | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 605c101e62..02728d5a86 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -28,12 +28,16 @@ INITRAMFS_IMAGE_BUNDLE ?= ""
 # LINUX_VERSION which is a constant.
 KERNEL_VERSION_NAME = "${@d.getVar('KERNEL_VERSION') or ""}"
 KERNEL_VERSION_NAME[vardepvalue] = "${LINUX_VERSION}"
-KERNEL_VERSION_PKG_NAME = "${@legitimize_package_name(d.getVar('KERNEL_VERSION'))}"
-KERNEL_VERSION_PKG_NAME[vardepvalue] = "${LINUX_VERSION}"
 
 python __anonymous () {
     import re
 
+    if d.getVar('USER_KERNEL_VERSION_PKG') is None :
+        d.setVar('KERNEL_VERSION_PKG_NAME', "${@legitimize_package_name(d.getVar('KERNEL_VERSION'))}")
+        d.setVar('KERNEL_VERSION_PKG_NAME[vardepvalue]', "${LINUX_VERSION}")
+    else:
+        d.setVar('KERNEL_VERSION_PKG_NAME', "${@legitimize_package_name(d.getVar('USER_KERNEL_VERSION_PKG'))}")
+
     # Merge KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE into KERNEL_IMAGETYPES
     type = d.getVar('KERNEL_IMAGETYPE') or ""
     alttype = d.getVar('KERNEL_ALT_IMAGETYPE') or ""
-- 
2.13.1



  reply	other threads:[~2017-06-21 11:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-21 12:00 [PATCH 1/2] kernel: add package version in dependencies for kernel packages Heghedus Razvan
2017-06-21 12:00 ` Heghedus Razvan [this message]
2017-06-26 15:52   ` [PATCH 2/2] kernel: user defined KERNEL_VERSION_PKG_NAME Bruce Ashfield
2017-06-27  9:15     ` Razvan Heghedus
2017-06-28  1:29       ` Bruce Ashfield
2017-06-29  9:10         ` Razvan Heghedus
2017-06-29 13:06           ` Bruce Ashfield
2017-07-03 14:36             ` Razvan Heghedus
2017-07-10 12:51               ` Bruce Ashfield
2017-06-26 15:50 ` [PATCH 1/2] kernel: add package version in dependencies for kernel packages Bruce Ashfield
2017-06-27  8:51   ` Razvan Heghedus
2017-06-28  1:10     ` Bruce Ashfield
2017-06-29  8:54       ` Razvan Heghedus
2017-06-29 13:07         ` Bruce Ashfield
     [not found] <20170621104942.5601-1-razvan.heghedus@ni.com>
2017-06-21 10:49 ` [PATCH 2/2] kernel: user defined KERNEL_VERSION_PKG_NAME Heghedus Razvan

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=20170621120003.6440-2-razvan.heghedus@ni.com \
    --to=razvan.heghedus@ni.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.