diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2020-07-02 08:40:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 08:40:10 +0200 |
commit | b75914c3a82148661f4ce36a64e53d5a0d77c324 (patch) | |
tree | c9c09e37480124f85c1f5f93ffd2b86510b9edcb | |
parent | 880788be9be9d826616c32ab0159eed1fb09941d (diff) | |
parent | ceeaa15ad780e330f25bcb085620a872dbeb0acb (diff) | |
download | meta-updater-b75914c3a82148661f4ce36a64e53d5a0d77c324.tar.gz |
Merge pull request #744 from shr-project/jansa/master
ostree-kernel-initramfs: skip recipe when OSTREE_KERNEL is not defined
-rw-r--r-- | recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb b/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb index 1b9c0ad..6159f00 100644 --- a/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb +++ b/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb | |||
@@ -51,3 +51,8 @@ do_install() { | |||
51 | do_install[vardepsexclude] = "KERNEL_VERSION" | 51 | do_install[vardepsexclude] = "KERNEL_VERSION" |
52 | INITRAMFS_IMAGE ?= "" | 52 | INITRAMFS_IMAGE ?= "" |
53 | do_install[depends] = "virtual/kernel:do_deploy ${@['${INITRAMFS_IMAGE}:do_image_complete', ''][d.getVar('INITRAMFS_IMAGE') == '']}" | 53 | do_install[depends] = "virtual/kernel:do_deploy ${@['${INITRAMFS_IMAGE}:do_image_complete', ''][d.getVar('INITRAMFS_IMAGE') == '']}" |
54 | |||
55 | python() { | ||
56 | if not d.getVar('OSTREE_KERNEL'): | ||
57 | raise bb.parse.SkipRecipe('OSTREE_KERNEL is not defined, maybe your MACHINE config does not inherit sota.bbclass?') | ||
58 | } | ||