[OpenWrt-Devel] [PATCH 2/4] octeon: prepare elf kernel image and md5sum for usb copying

Roman Yeryomin leroi.lists at gmail.com
Mon Oct 6 11:33:08 EDT 2014


Signed-off-by: Roman Yeryomin <roman at advem.lv>
---
 target/linux/octeon/image/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/octeon/image/Makefile b/target/linux/octeon/image/Makefile
index 25a8149..f06dd6b 100644
--- a/target/linux/octeon/image/Makefile
+++ b/target/linux/octeon/image/Makefile
@@ -12,6 +12,8 @@ define Image/BuildKernel
 	$(TARGET_CROSS)strip -R .notes $(KDIR)/vmlinux.elf -o $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.elf
 	$(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.l7
 	dd if=$(KDIR)/vmlinux.bin.l7 of=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux.lzma bs=65536 conv=sync
+	$(CP) $(KDIR)/vmlinux.elf $(BIN_DIR)/vmlinux.64
+	md5sum  $(BIN_DIR)/vmlinux.64 | cut -d " " -f 1 | tee $(BIN_DIR)/vmlinux.64.md5
 endef
 
 define Image/Build/squashfs
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list