summaryrefslogtreecommitdiff
path: root/target/linux/mx2/image
diff options
context:
space:
mode:
authorlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-10 18:37:34 +0000
committerlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-10 18:37:34 +0000
commitd531754b838a68f07dca3e835c385d3201ebc746 (patch)
tree91eacfa598ce84efa4216adfa1a08013967e0ded /target/linux/mx2/image
parentfc6a5146e946d71b799a695540e7f7c444427a3c (diff)
[kernel] Add mx2 target with very basic support for the vp6500 voip phone
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20786 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mx2/image')
-rw-r--r--target/linux/mx2/image/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/mx2/image/Makefile b/target/linux/mx2/image/Makefile
new file mode 100644
index 0000000000..12fbe4ee4f
--- /dev/null
+++ b/target/linux/mx2/image/Makefile
@@ -0,0 +1,22 @@
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/image.mk
+
+JFFS2_BLOCKSIZE=128k 16k
+#JFFS2OPTS += -n -s 2048
+JFFS2OPTS += -n
+
+define Image/BuildKernel
+ mkdir -p $(BIN_DIR)
+ cp $(KDIR)/vmlinuz $(BIN_DIR)/openwrt-$(BOARD)-zImage
+endef
+
+define Image/Prepare
+ cp $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/vmlinuz
+endef
+
+
+define Image/Build/squashfs
+ $(call prepare_generic_squashfs,$(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-root.$(1))
+endef
+
+$(eval $(call BuildImage))