Skip to contentSkip to conversation

linux: add support for vmlinuz.bin kernel image format

PATCH New yegorslists at googlemail.com 2 participants 2 messages Dec 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux: add support for vmlinuz.bin kernel image format

From: Yegor Yefremov <[email protected]>

Linux for MIPS supports raw binary zboot image (vmlinuz.bin). Add it to the "Kernel binary format" list.

---
 linux/Config.in | 4 ++++
 linux/linux.mk  | 4 ++++
 2 files changed, 8 insertions(+)
linux/Config.in +4 -0
index 57b3490..8b29b71 100644
@@ -249,6 +249,10 @@ config BR2_LINUX_KERNEL_VMLINUZ
 	bool "vmlinuz"
 	depends on BR2_mips || BR2_mipsel
 
+config BR2_LINUX_KERNEL_VMLINUZ_BIN
+	bool "vmlinuz.bin"
+	depends on BR2_mips || BR2_mipsel
+
 config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
 	bool "custom target"
 	help
linux/linux.mk +4 -0
index dd2cc49..f95bc58 100644
@@ -139,6 +139,8 @@ else ifeq ($(BR2_LINUX_KERNEL_VMLINUX),y)
 LINUX_IMAGE_NAME = vmlinux
 else ifeq ($(BR2_LINUX_KERNEL_VMLINUZ),y)
 LINUX_IMAGE_NAME = vmlinuz
+else ifeq ($(BR2_LINUX_KERNEL_VMLINUZ_BIN),y)
+LINUX_IMAGE_NAME = vmlinuz.bin
 endif
 # The if-else blocks above are all the image types we know of, and all
 # come from a Kconfig choice, so we know we have LINUX_IMAGE_NAME set
@@ -167,6 +169,8 @@ ifeq ($(BR2_LINUX_KERNEL_VMLINUX),y)
 LINUX_IMAGE_PATH = $(LINUX_DIR)/$(LINUX_IMAGE_NAME)
 else ifeq ($(BR2_LINUX_KERNEL_VMLINUZ),y)
 LINUX_IMAGE_PATH = $(LINUX_DIR)/$(LINUX_IMAGE_NAME)
+else ifeq ($(BR2_LINUX_KERNEL_VMLINUZ_BIN),y)
+LINUX_IMAGE_PATH = $(LINUX_DIR)/$(LINUX_IMAGE_NAME)
 else
 LINUX_IMAGE_PATH = $(KERNEL_ARCH_PATH)/boot/$(LINUX_IMAGE_NAME)
 endif # BR2_LINUX_KERNEL_VMLINUX
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 linux: add support for vmlinuz.bin kernel image format

Yegor,

Quoted 10 lines · yegorslists at googlemail.com

From: Yegor Yefremov <[email protected]>

Linux for MIPS supports raw binary zboot image (vmlinuz.bin). Add it to the "Kernel binary format" list.

---
 linux/Config.in | 4 ++++
 linux/linux.mk  | 4 ++++
 2 files changed, 8 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com