openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
From: Andrej Valek <andrej.valek@siemens.com>
To: openembedded-core@lists.openembedded.org
Cc: Abdellatif.ElKhlifi@arm.com,
	Andrej Valek <andrej.valek@siemens.com>,
	Walter Schweizer <walter.schweizer@siemens.com>
Subject: [OE-core][PATCH 2/2] kernel-fitimage: use correct kernel image
Date: Tue,  5 Oct 2021 22:22:56 +0200	[thread overview]
Message-ID: <20211005202256.54023-2-andrej.valek@siemens.com> (raw)
In-Reply-To: <20211005202256.54023-1-andrej.valek@siemens.com>

Even if initramfs_bundle_path was used, kernel compression was not
reflected in output its image. Use linux.bin as kernel compressed output
image. File is correctly created from vmlinux which includes a right
initramfs image.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Walter Schweizer <walter.schweizer@siemens.com>
---
 meta/classes/kernel-fitimage.bbclass | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 22b77f1858..7969c89f1a 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -495,22 +495,7 @@ fitimage_assemble() {
 	fitimage_emit_section_maint $1 imagestart
 
 	uboot_prep_kimage
-
-	if [ "${INITRAMFS_IMAGE_BUNDLE}" = "1" ]; then
-		initramfs_bundle_path="arch/"${UBOOT_ARCH}"/boot/"${KERNEL_IMAGETYPE_REPLACEMENT}".initramfs"
-		if [ -e "$initramfs_bundle_path" ]; then
-
-			#
-			# Include the kernel/rootfs bundle.
-			#
-
-			fitimage_emit_section_kernel $1 $kernelcount "$initramfs_bundle_path" "$linux_comp"
-		else
-			bbwarn "$initramfs_bundle_pat not found."
-		fi
-	else
-		fitimage_emit_section_kernel $1 $kernelcount linux.bin "$linux_comp"
-	fi
+	fitimage_emit_section_kernel $1 $kernelcount linux.bin "$linux_comp"
 
 	#
 	# Step 2: Prepare a DTB image section
-- 
2.31.1



  reply	other threads:[~2021-10-05 20:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-05 20:22 [OE-core][PATCH 1/2] featimage: refactor style Andrej Valek
2021-10-05 20:22 ` Andrej Valek [this message]
2021-10-06  7:00 ` [OE-core][PATCH v2 " Andrej Valek
2021-10-06  7:00 ` [OE-core][PATCH v2 2/2] kernel-fitimage: use correct kernel image Andrej Valek
2021-10-13  9:57   ` Alexandre Belloni
2021-10-13 12:06 ` [OE-core][PATCH v3 1/2] featimage: refactor style Andrej Valek
2021-10-13 12:06 ` [OE-core][PATCH v3 2/2] kernel-fitimage: use correct kernel image Andrej Valek
2021-10-16 10:47   ` Alexandre Belloni
2021-10-16 20:01 ` [OE-core][PATCH v4 1/2] featimage: refactor style Andrej Valek
2021-10-16 20:01 ` [OE-core][PATCH v4 2/2] kernel-fitimage: use correct kernel image Andrej Valek

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=20211005202256.54023-2-andrej.valek@siemens.com \
    --to=andrej.valek@siemens.com \
    --cc=Abdellatif.ElKhlifi@arm.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=walter.schweizer@siemens.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;
as well as URLs for NNTP newsgroup(s).