X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/c835235d87d5d6b44dc9e10c117e0313b0e3e709..f4945cfe79ad6c9ac2bfef5c6505e45cae3a709b:/target/linux/rb532/image/Makefile diff --git a/target/linux/rb532/image/Makefile b/target/linux/rb532/image/Makefile index b7849cbda..da4baaa48 100644 --- a/target/linux/rb532/image/Makefile +++ b/target/linux/rb532/image/Makefile @@ -28,8 +28,13 @@ define Image/Prepare $(MAKE) -C $(GENERIC_PLATFORM_DIR)/image/lzma-loader $(LOADER_MAKEOPTS) clean compile endef +VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux-kernel +ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) + VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux-initramfs +endif + define Image/BuildKernel - $(CP) $(KDIR)/loader.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux + $(CP) $(KDIR)/loader.elf $(VMLINUX) endef define Image/cmdline/jffs2-64k @@ -64,9 +69,6 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y) cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma $(MAKE) -C $(GENERIC_PLATFORM_DIR)/image/lzma-loader $(LOADER_MAKEOPTS) clean compile endef - define Image/BuildKernel - $(CP) $(KDIR)/loader.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux - endef endif $(eval $(call BuildImage))