aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2014-04-01 22:21:11 +0000
committerFlorian Fainelli <florian@openwrt.org>2014-04-01 22:21:11 +0000
commitc18cc9aa497d4c6498f3dc8bbe80c59ebf401cb9 (patch)
tree9b0d9c0b8b476e7ddf75aff0c5d00c5b28ad59e4 /target/linux
parent3d0ec6bd0862d0bc8f3b2fcb9c403bff95b76daa (diff)
downloadupstream-c18cc9aa497d4c6498f3dc8bbe80c59ebf401cb9.tar.gz
upstream-c18cc9aa497d4c6498f3dc8bbe80c59ebf401cb9.tar.bz2
upstream-c18cc9aa497d4c6498f3dc8bbe80c59ebf401cb9.zip
orion: create a macro for zImage with machine id
Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 40360
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/orion/image/harddisk.mk23
1 files changed, 11 insertions, 12 deletions
diff --git a/target/linux/orion/image/harddisk.mk b/target/linux/orion/image/harddisk.mk
index 86ee4960da..fb2f351b7f 100644
--- a/target/linux/orion/image/harddisk.mk
+++ b/target/linux/orion/image/harddisk.mk
@@ -5,22 +5,21 @@
# See /LICENSE for more information.
#
+define Image/BuildKernelMachId
+ echo -en "\x$(2)\x1c\xa0\xe3\x$(3)\x10\x81\xe3" > $(KDIR)/$(1)-zImage
+ cat $(LINUX_DIR)/arch/arm/boot/zImage >> $(KDIR)/$(1)-zImage
+ $(STAGING_DIR_HOST)/bin/mkimage -A arm -O linux -T kernel \
+ -C none -a 0x00008000 -e 0x00008000 -n 'Linux-$(LINUX_VERSION)' \
+ -d $(KDIR)/$(1)-zImage $(KDIR)/$(1)-uImage
+ cp $(KDIR)/$(1)-uImage $(BIN_DIR)/openwrt-$(1)-uImage
+endef
+
define Image/BuildKernel
# Orion Kernel uImages
# DT2: mach id 1514 (0x5EA)
- echo -en "\x05\x1c\xa0\xe3\xea\x10\x81\xe3" > $(KDIR)/dt2-zImage
- cat $(LINUX_DIR)/arch/arm/boot/zImage >> $(KDIR)/dt2-zImage
- $(STAGING_DIR_HOST)/bin/mkimage -A arm -O linux -T kernel \
- -C none -a 0x00008000 -e 0x00008000 -n 'Linux-$(LINUX_VERSION)' \
- -d $(KDIR)/dt2-zImage $(KDIR)/dt2-uImage
- cp $(KDIR)/dt2-uImage $(BIN_DIR)/openwrt-dt2-uImage
+ $(call Image/BuildKernelMachId,dt2,05,ea)
# LaCie 2big Network: mach id 2342 (0x926)
- echo -en "\x09\x1c\xa0\xe3\x26\x10\x81\xe3" > $(KDIR)/net2big-zImage
- cat $(LINUX_DIR)/arch/arm/boot/zImage >> $(KDIR)/net2big-zImage
- $(STAGING_DIR_HOST)/bin/mkimage -A arm -O linux -T kernel \
- -C none -a 0x00008000 -e 0x00008000 -n 'Linux-$(LINUX_VERSION)' \
- -d $(KDIR)/net2big-zImage $(KDIR)/net2big-uImage
- cp $(KDIR)/net2big-uImage $(BIN_DIR)/openwrt-net2big-uImage
+ $(call Image/BuildKernelMachId,net2big,09,26)
endef
define Image/Build/Freecom