summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorTimon Ulrich <t.ulrich@anapur.de>2020-07-03 12:39:40 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-07-16 21:28:40 (GMT)
commit6dc71f2de7674b4cf9681b2bfd21c91983352f9b (patch)
treef7835890b2c77dbe803bf070a42e6d81f10946be /meta/classes
parente531b16b658cd97c1f03254735dd7e3e27708deb (diff)
downloadpoky-6dc71f2de7674b4cf9681b2bfd21c91983352f9b.tar.gz
kernel.bbclass: add lz4 dependency and fix the call to lz4
If the initramfs image is type lz4, then a native lz4 is needed. Additionally an output filename needs to be specified when calling lz4, otherwise STDOUT will be used implicitly. (From OE-Core rev: 589b2d7e902125199377d5f1550597bcb38a1bf6) Signed-off-by: Timon Ulrich <t.ulrich@anapur.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit c83a7aec59defbbc049d44ba34a7a409ada4fa19) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 6d07b29..9e3c34a 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -5,6 +5,7 @@ KERNEL_DEPLOYSUBDIR ??= "${@ "" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel")
5 5
6PROVIDES += "${@ "virtual/kernel" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else "" }" 6PROVIDES += "${@ "virtual/kernel" if (d.getVar("KERNEL_PACKAGE_NAME") == "kernel") else "" }"
7DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native bc-native lzop-native bison-native" 7DEPENDS += "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}gcc kmod-native bc-native lzop-native bison-native"
8DEPENDS += "${@bb.utils.contains("INITRAMFS_FSTYPES", "cpio.lz4", "lz4-native", "", d)}"
8PACKAGE_WRITE_DEPS += "depmodwrapper-cross" 9PACKAGE_WRITE_DEPS += "depmodwrapper-cross"
9 10
10do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot" 11do_deploy[depends] += "depmodwrapper-cross:do_populate_sysroot"
@@ -210,7 +211,7 @@ copy_initramfs() {
210 ;; 211 ;;
211 *lz4) 212 *lz4)
212 echo "lz4 decompressing image" 213 echo "lz4 decompressing image"
213 lz4 -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img 214 lz4 -df ${B}/usr/${INITRAMFS_IMAGE_NAME}.$img ${B}/usr/${INITRAMFS_IMAGE_NAME}.cpio
214 break 215 break
215 ;; 216 ;;
216 *lzo) 217 *lzo)