* [ptxdist] [PATCH v1] kernel: add vmlinuz support
@ 2018-12-21 22:57 Oleksij Rempel
0 siblings, 0 replies; only message in thread
From: Oleksij Rempel @ 2018-12-21 22:57 UTC (permalink / raw)
To: ptxdist; +Cc: Oleksij Rempel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-12-21 22:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-21 22:57 [ptxdist] [PATCH v1] kernel: add vmlinuz support Oleksij Rempel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox