From: claudius.heine.ext@siemens.com
To: isar-users@googlegroups.com
Cc: Claudius Heine <ch@denx.de>
Subject: [PATCH 1/1] meta-isar/isar-image-base: make kernel optional
Date: Thu, 12 Apr 2018 16:36:14 +0200 [thread overview]
Message-ID: <20180412143614.31202-2-claudius.heine.ext@siemens.com> (raw)
In-Reply-To: <20180412143614.31202-1-claudius.heine.ext@siemens.com>
From: Claudius Heine <ch@denx.de>
Isar should also be able to build root file systems without a kernel,
for instance when using it via nfs or on systems where the kernel needs
to be deployed some where else, not as part of the directory tree.
With this patch setting "KERNEL_NAME" to an empty string or not setting
this variable at all, will not cause an error and no kernel will be
installed to the root file system.
Signed-off-by: Claudius Heine <ch@denx.de>
---
meta-isar/recipes-core/images/isar-image-base.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-isar/recipes-core/images/isar-image-base.bb b/meta-isar/recipes-core/images/isar-image-base.bb
index 6b0030b..d39a25e 100644
--- a/meta-isar/recipes-core/images/isar-image-base.bb
+++ b/meta-isar/recipes-core/images/isar-image-base.bb
@@ -16,7 +16,7 @@ PV = "1.0"
inherit image
inherit isar-bootstrap-helper
-IMAGE_INSTALL += "linux-image-${KERNEL_NAME}"
+IMAGE_INSTALL += "${@ ("linux-image-" + d.getVar("KERNEL_NAME", True)) if d.getVar("KERNEL_NAME", True) else ""}"
DEPENDS += "${IMAGE_INSTALL}"
--
2.16.3
next prev parent reply other threads:[~2018-04-12 14:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-12 14:36 [PATCH 0/1] Optional kernel claudius.heine.ext
2018-04-12 14:36 ` claudius.heine.ext [this message]
2018-04-13 10:38 ` [PATCH 1/1] meta-isar/isar-image-base: make kernel optional Baurzhan Ismagulov
2018-04-13 10:45 ` Claudius Heine
2018-04-13 11:23 ` Baurzhan Ismagulov
2018-04-16 7:03 ` Claudius Heine
2018-04-16 7:09 ` Jan Kiszka
2018-04-16 8:27 ` Claudius Heine
2018-05-03 15:58 ` Henning Schild
2018-05-03 16:18 ` Alexander Smirnov
2018-05-03 16:27 ` Henning Schild
2018-05-03 16:30 ` Alexander Smirnov
2018-05-03 18:50 ` Alexander Smirnov
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=20180412143614.31202-2-claudius.heine.ext@siemens.com \
--to=claudius.heine.ext@siemens.com \
--cc=ch@denx.de \
--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