From 793574f5718fb9a8557c40bb621efd7b9abc8325 Mon Sep 17 00:00:00 2001 From: juhosg Date: Thu, 28 Jul 2011 10:56:30 +0000 Subject: ramips: rt305x: add support for the Asus RT-G32 B1 board Based on a patch by: Sergiy git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27812 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/image/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'target/linux/ramips/image') diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index dde5ca89a..22eaaa088 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -115,6 +115,17 @@ define Image/Build/Profile/DIR300B1 $(call Image/Build/Template/DIR300B1,$(1),dir-600-b2,DIR-600-B2,wrgn23_dlwbr_dir600b) endef +mtdlayout_rtg32b1=mtdparts=spi0.0:192k(u-boot)ro,64k(devdata)ro,64k(devconf)ro,832k(kernel),2944k(rootfs),3776k@0x50000(firmware) +mtd_rtg32b1_kernel_part_size=851968 +mtd_rtg32b1_rootfs_part_size=3014656 +define Image/Build/Template/RTG32B1 + $(call BuildFirmware/Generic,$(1),$(2),board=$(3),mtdlayout_rtg32b1,$(mtd_rtg32b1_kernel_part_size),$(mtd_rtg32b1_rootfs_part_size)) +endef + +define Image/Build/Profile/RTG32B1 + $(call Image/Build/Template/RTG32B1,$(1),rt-g32-b1,RT-G32-B1) +endef + define Image/Build/Profile/FONERA20N $(call Image/Build/Template/GENERIC_8M,$(1),fonera20n,FONERA20N) endef @@ -175,6 +186,7 @@ endef ifeq ($(CONFIG_RALINK_RT305X),y) define Image/Build/Profile/Default $(call Image/Build/Profile/DIR300B1,$(1)) + $(call Image/Build/Profile/RTG32B1,$(1)) $(call Image/Build/Profile/FONERA20N,$(1)) $(call Image/Build/Profile/V22RW2X2,$(1)) $(call Image/Build/Profile/PWH2004,$(1)) -- cgit v1.2.3