aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimon Ulrich <t.ulrich@anapur.de>2020-07-07 11:25:11 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-08 10:37:08 +0100
commit1217ddf070261c5fe523729b2a833bd38f1e4ccd (patch)
tree9f16d8fd267208688c73a073b5bd7e1ffab4b01b
parent74d24b5b895198898944260136d05e991a203c11 (diff)
downloadopenembedded-core-contrib-1217ddf070261c5fe523729b2a833bd38f1e4ccd.tar.gz
openembedded-core-contrib-1217ddf070261c5fe523729b2a833bd38f1e4ccd.tar.bz2
openembedded-core-contrib-1217ddf070261c5fe523729b2a833bd38f1e4ccd.zip
kernel.bbclass: make dependency on lzop-native conditional
a native lzop is only needed when an lzo compressed initramfs is actually present Signed-off-by: Timon Ulrich <t.ulrich@anapur.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 46479e245cf..cf43a5d604e 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -4,7 +4,8 @@ KERNEL_PACKAGE_NAME ??= "kernel"
KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else d.getVar("KERNEL_PACKAGE_NAME") }"
PROVIDES += "${@ "virtual/kernel" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else "" }"
-DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native bc-native lzop-native bison-native"
+DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native bc-native bison-native"
+DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.lzo", "lzop-native", "", d)}"
DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.lz4", "lz4-native", "", d)}"
PACKAGE_WRITE_DEPS += "depmodwrapper-cross"