2006-10-16 07:34:22 +08: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 07:11:02 +08:00
|
|
|
ARCH:=i386
|
|
|
|
BOARD:=rdc
|
|
|
|
BOARDNAME:=RDC x86
|
2007-08-07 02:48:58 +08:00
|
|
|
FEATURES:=squashfs jffs2
|
2006-11-12 07:11:02 +08:00
|
|
|
|
2007-07-25 17:16:20 +08:00
|
|
|
LINUX_VERSION:=2.6.22.1
|
2007-06-28 13:52:00 +08:00
|
|
|
|
2006-11-13 03:11:21 +08:00
|
|
|
define Target/Description
|
|
|
|
Build firmware images for RDC3211 based routers
|
2007-04-17 05:46:44 +08:00
|
|
|
(e.g. Airlink101 AR525W, Linksys WRT54R)
|
2006-11-13 03:11:21 +08:00
|
|
|
endef
|
|
|
|
|
2006-10-16 07:34:22 +08:00
|
|
|
include $(INCLUDE_DIR)/kernel-build.mk
|
2006-12-12 01:55:49 +08:00
|
|
|
|
2007-04-17 05:46:44 +08:00
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|
|
|
define Kernel/SetInitramfs
|
2007-08-07 02:48:58 +08:00
|
|
|
echo "r6040 parent=wlan0" > $(BUILD_DIR)/root/etc/modules.d/99-r6040
|
2007-04-17 05:46:44 +08:00
|
|
|
rm -f $(BUILD_DIR)/root/sbin/init
|
2007-04-18 02:38:43 +08:00
|
|
|
ln -s /etc/preinit $(BUILD_DIR)/root/sbin/init
|
2007-07-25 17:16:20 +08:00
|
|
|
sed -i 's,exec /sbin/init,exec /bin/busybox init,g' $(BUILD_DIR)/root/etc/preinit
|
2007-08-03 15:28:43 +08:00
|
|
|
sed -i 's,/sbin/init,/bin/busybox init,g' $(BUILD_DIR)/root/init
|
2007-08-07 02:48:58 +08:00
|
|
|
sed -i 's,eth0,eth1,g' $(BUILD_DIR)/root/etc/config/network
|
2007-04-17 05:46:44 +08:00
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
2007-03-03 07:02:38 +08:00
|
|
|
# include the profiles
|
|
|
|
-include profiles/*.mk
|
2006-12-12 01:55:49 +08:00
|
|
|
|
2006-10-19 14:20:55 +08:00
|
|
|
$(eval $(call BuildKernel))
|