summaryrefslogtreecommitdiff
path: root/openwrt/target/image
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-06-26 11:45:23 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-06-26 11:45:23 +0000
commit9fd0b05b294a0b247a9ec3b2001b074297c7b16c (patch)
tree673f741f2b4a36c7a417f8ce807980690af25d11 /openwrt/target/image
parentb33647bf27f5b28c83398e96ad213c24302f5fd8 (diff)
downloadmtk-20170518-9fd0b05b294a0b247a9ec3b2001b074297c7b16c.zip
mtk-20170518-9fd0b05b294a0b247a9ec3b2001b074297c7b16c.tar.gz
mtk-20170518-9fd0b05b294a0b247a9ec3b2001b074297c7b16c.tar.bz2
Merge premilinary Broadcom 63xx support (Livebox, Siemens SE515...) Kernel compiles fine, does not include linux-2.6.8.1 linux-mips specific fixes and neither includes broadcom changes to netfiler Needs testing of course :)
SVN-Revision: 4084
Diffstat (limited to 'openwrt/target/image')
-rw-r--r--openwrt/target/image/brcm63xx/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/openwrt/target/image/brcm63xx/Makefile b/openwrt/target/image/brcm63xx/Makefile
new file mode 100644
index 0000000..19799e8
--- /dev/null
+++ b/openwrt/target/image/brcm63xx/Makefile
@@ -0,0 +1,27 @@
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/image.mk
+
+LOADADDR = 0x8108c8f4 # RAM start + 16M
+KERNEL_ENTRY = 0x80100000 # Default kernel entry in arch/mips/Makefile
+RAMSIZE = 0x01000000 # 64MB
+
+LOADER_MAKEOPTS= \
+ KDIR=$(KDIR) \
+ LOADADDR=$(LOADADDR) \
+ KERNEL_ENTRY=$(KERNEL_ENTRY) \
+ RAMSIZE=$(RAMSIZE)
+
+define Build/Clean
+ $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean
+endef
+
+define Image/Prepare
+ cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
+ $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) compile
+endef
+
+define Image/Build
+ cp $(KDIR)/vmlinux $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).img
+endef
+
+$(eval $(call BuildImage))