aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-05-29 11:28:20 +0000
committerJohn Crispin <john@openwrt.org>2015-05-29 11:28:20 +0000
commit9927a9a5f86740aee34b730feb810d4292a0ed53 (patch)
treeb8ce9790dac827c74921eff8c1733777f9f6e5d7 /target/linux
parentadbec3f1326210732cdfa3a456cee5fe669f540a (diff)
downloadupstream-9927a9a5f86740aee34b730feb810d4292a0ed53.tar.gz
upstream-9927a9a5f86740aee34b730feb810d4292a0ed53.tar.bz2
upstream-9927a9a5f86740aee34b730feb810d4292a0ed53.zip
octeon: fix imagebuilder
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 45821
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/octeon/image/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/octeon/image/Makefile b/target/linux/octeon/image/Makefile
index a15e87b0c9..e74b06dd4b 100644
--- a/target/linux/octeon/image/Makefile
+++ b/target/linux/octeon/image/Makefile
@@ -7,9 +7,13 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
-define Image/BuildKernel/Template
+define Image/Prepare
# Workaround pre-SDK-1.9.0 u-boot versions not handling the .notes section
- $(TARGET_CROSS)strip -R .notes $(KDIR)/vmlinux.elf -o $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux.64
+ $(TARGET_CROSS)strip -R .notes $(KDIR)/vmlinux.elf -o $(KDIR)/vmlinux.elf.stripped
+endef
+
+define Image/BuildKernel/Template
+ $(CP) $(KDIR)/vmlinux.elf.stripped $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux.64
$(STAGING_DIR_HOST)/bin/patch-cmdline $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux.64 '$(strip $(2))'
md5sum $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux.64 | cut -d " " -f 1 | tee $(BIN_DIR)/$(IMG_PREFIX)-$(1)-vmlinux.64.md5
endef