2006-10-16 01:34:22 +02: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-12 00:11:02 +01:00
|
|
|
ARCH:=i386
|
|
|
|
BOARD:=rdc
|
2007-08-07 11:34:39 +02:00
|
|
|
BOARDNAME:=RDC321x x86
|
2007-08-06 20:50:34 +02:00
|
|
|
FEATURES:=squashfs jffs2 broken
|
2006-11-12 00:11:02 +01:00
|
|
|
|
2007-08-21 12:06:01 +02:00
|
|
|
LINUX_VERSION:=2.6.22.4
|
2007-06-28 07:52:00 +02:00
|
|
|
|
2006-11-12 20:11:21 +01:00
|
|
|
define Target/Description
|
2007-08-07 11:34:39 +02:00
|
|
|
Build firmware images for RDC321x based routers
|
|
|
|
(e.g. Airlink101 AR525W, Linksys WRT54R, Sitecom WL-153)
|
2006-11-12 20:11:21 +01:00
|
|
|
endef
|
|
|
|
|
2006-10-16 01:34:22 +02:00
|
|
|
include $(INCLUDE_DIR)/kernel-build.mk
|
2006-12-11 18:55:49 +01:00
|
|
|
|
2007-04-16 23:46:44 +02:00
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|
|
|
define Kernel/SetInitramfs
|
2007-08-07 11:12:09 +02:00
|
|
|
echo "r6040 parent=wlan0" > $(TARGET_DIR)/etc/modules.d/99-r6040
|
2007-08-08 14:01:51 +02:00
|
|
|
$(RM) $(TARGET_DIR)/sbin/init
|
2007-08-07 11:12:09 +02: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 11:34:39 +02:00
|
|
|
mv $(TARGET_DIR)/init $(TARGET_DIR)/linuxrc
|
2007-08-07 11:12:09 +02:00
|
|
|
sed -i 's,eth0,eth1,g' $(TARGET_DIR)/etc/config/network
|
2007-04-16 23:46:44 +02:00
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2007-03-03 00:02:38 +01:00
|
|
|
# include the profiles
|
|
|
|
-include profiles/*.mk
|
2006-12-11 18:55:49 +01:00
|
|
|
|
2006-10-19 08:20:55 +02:00
|
|
|
$(eval $(call BuildKernel))
|