mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Oleksij Rempel <o.rempel@pengutronix.de>
Subject: [ptxdist] [PATCH v1] kernel: add vmlinuz support
Date: Fri, 21 Dec 2018 23:57:11 +0100	[thread overview]
Message-ID: <20181221225711.7935-1-o.rempel@pengutronix.de> (raw)

it is compressed ELF image. Mostly interesting for MIPS platforms.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 platforms/kernel.in | 8 ++++++++
 rules/kernel.make   | 3 ++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/platforms/kernel.in b/platforms/kernel.in
index fc89c9aaf..f7a2613d3 100644
--- a/platforms/kernel.in
+++ b/platforms/kernel.in
@@ -161,6 +161,13 @@ choice
 		 This is the target to get the kernel image as an ELF. Mostly
 		 used for debugging purposes.
 
+	config KERNEL_IMAGE_VMLINUZ
+		bool
+		prompt "vmlinuz"
+		help
+		 This is the target to get the compressed kernel image as an ELF.
+		 Mostly used for debugging purposes or for MIPS.
+
 	config KERNEL_IMAGE_RAW
 		bool
 		prompt "Image"
@@ -208,6 +215,7 @@ config KERNEL_IMAGE
 	default "uImage"  if KERNEL_IMAGE_U
 	default "vmImage" if KERNEL_IMAGE_VM
 	default "vmlinux" if KERNEL_IMAGE_VMLINUX
+	default "vmlinuz" if KERNEL_IMAGE_VMLINUZ
 	default "Image"   if KERNEL_IMAGE_RAW
 	default "simpleImage.${PTXCONF_KERNEL_IMAGE_SIMPLE_TARGET}.elf" if KERNEL_IMAGE_SIMPLE
 
diff --git a/rules/kernel.make b/rules/kernel.make
index aee16792a..b888ffe67 100644
--- a/rules/kernel.make
+++ b/rules/kernel.make
@@ -77,8 +77,9 @@ KERNEL_IMAGE := $(call remove_quotes, $(PTXCONF_KERNEL_IMAGE))
 # these are sane default
 KERNEL_IMAGE_PATH_y := $(KERNEL_DIR)/arch/$(PTXCONF_KERNEL_ARCH_STRING)/boot/$(KERNEL_IMAGE)
 
-# vmlinux is special
+# vmlinux and vmlinuz are special
 KERNEL_IMAGE_PATH_$(PTXCONF_KERNEL_IMAGE_VMLINUX) := $(KERNEL_DIR)/vmlinux
+KERNEL_IMAGE_PATH_$(PTXCONF_KERNEL_IMAGE_VMLINUZ) := $(KERNEL_DIR)/vmlinuz
 # avr32 is also special
 KERNEL_IMAGE_PATH_$(PTXCONF_ARCH_AVR32) := $(KERNEL_DIR)/arch/$(PTXCONF_KERNEL_ARCH_STRING)/boot/images/$(KERNEL_IMAGE)
 
-- 
2.19.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2018-12-21 22:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20181221225711.7935-1-o.rempel@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /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