add "preinit_regular" diag.sh set_state argument
[openwrt.git] / target / linux / adm5120 / image / Makefile
index f628456..4ca4d48 100644 (file)
@@ -15,6 +15,13 @@ define imgname
 $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(patsubst jffs2-%,jffs2,$(1))
 endef
 
+VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux
+fs_squash:=squashfs-only
+fs_all:=all
+fs_4k:=4k
+fs_64k:=64k
+fs_128k:=128k
+
 define Build/Clean
        $(LOADER_MAKE) clean
 endef
@@ -93,4 +100,13 @@ define Image/Build/Initramfs
        $(call Image/Build/Profile/$(PROFILE),Initramfs)
 endef
 
+define Image/BuildKernel
+       cp $(KDIR)/vmlinux.elf $(VMLINUX).elf
+       cp $(KDIR)/vmlinux $(VMLINUX).bin
+ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
+       cp $(KDIR)/vmlinux-initramfs.elf $(VMLINUX)-initramfs.elf
+       cp $(KDIR)/vmlinux $(VMLINUX)-initramfs.bin
+endif
+endef
+
 $(eval $(call BuildImage))