2006-10-15 23:34:22 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-11-11 23:11:02 +00:00
|
|
|
ARCH:=i386
|
|
|
|
BOARD:=rdc
|
2008-04-28 16:28:29 +00:00
|
|
|
BOARDNAME:=RDC 321x
|
2007-10-05 14:00:36 +00:00
|
|
|
FEATURES:=squashfs jffs2 pci
|
2006-11-11 23:11:02 +00:00
|
|
|
|
2008-06-17 12:57:04 +00:00
|
|
|
LINUX_VERSION:=2.6.25.7
|
2007-06-28 05:52:00 +00:00
|
|
|
|
2007-09-08 19:55:42 +00:00
|
|
|
include $(INCLUDE_DIR)/target.mk
|
|
|
|
|
2006-11-12 19:11:21 +00:00
|
|
|
define Target/Description
|
2007-08-07 09:34:39 +00:00
|
|
|
Build firmware images for RDC321x based routers
|
|
|
|
(e.g. Airlink101 AR525W, Linksys WRT54R, Sitecom WL-153)
|
2006-11-12 19:11:21 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-16 21:46:44 +00:00
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
2007-09-08 19:55:42 +00:00
|
|
|
define Kernel/SetInitramfs
|
2007-08-07 09:12:09 +00:00
|
|
|
echo "r6040 parent=wlan0" > $(TARGET_DIR)/etc/modules.d/99-r6040
|
2007-08-08 12:01:51 +00:00
|
|
|
$(RM) $(TARGET_DIR)/sbin/init
|
2007-08-07 09:12:09 +00:00
|
|
|
ln -s /etc/preinit $(TARGET_DIR)/sbin/init
|
|
|
|
sed -i 's,exec /sbin/init,exec /bin/busybox init,g' $(TARGET_DIR)/etc/preinit
|
|
|
|
sed -i 's,/sbin/init,/bin/busybox init,g' $(TARGET_DIR)/init
|
2007-08-07 09:34:39 +00:00
|
|
|
mv $(TARGET_DIR)/init $(TARGET_DIR)/linuxrc
|
2007-08-07 09:12:09 +00:00
|
|
|
sed -i 's,eth0,eth1,g' $(TARGET_DIR)/etc/config/network
|
2007-09-08 19:55:42 +00:00
|
|
|
endef
|
2007-04-16 21:46:44 +00:00
|
|
|
endif
|
|
|
|
|
2007-09-08 19:55:42 +00:00
|
|
|
$(eval $(call BuildTarget))
|