You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
18 years ago
|
#
|
||
|
# 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
|
||
|
|
||
18 years ago
|
ARCH:=i386
|
||
|
BOARD:=rdc
|
||
18 years ago
|
BOARDNAME:=RDC321x x86
|
||
18 years ago
|
FEATURES:=squashfs jffs2 broken
|
||
18 years ago
|
|
||
18 years ago
|
LINUX_VERSION:=2.6.22.4
|
||
18 years ago
|
|
||
18 years ago
|
define Target/Description
|
||
18 years ago
|
Build firmware images for RDC321x based routers
|
||
|
(e.g. Airlink101 AR525W, Linksys WRT54R, Sitecom WL-153)
|
||
18 years ago
|
endef
|
||
|
|
||
18 years ago
|
include $(INCLUDE_DIR)/kernel-build.mk
|
||
18 years ago
|
|
||
18 years ago
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
||
|
define Kernel/SetInitramfs
|
||
18 years ago
|
echo "r6040 parent=wlan0" > $(TARGET_DIR)/etc/modules.d/99-r6040
|
||
18 years ago
|
$(RM) $(TARGET_DIR)/sbin/init
|
||
18 years ago
|
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
|
||
18 years ago
|
mv $(TARGET_DIR)/init $(TARGET_DIR)/linuxrc
|
||
18 years ago
|
sed -i 's,eth0,eth1,g' $(TARGET_DIR)/etc/config/network
|
||
18 years ago
|
endef
|
||
|
endif
|
||
|
|
||
18 years ago
|
# include the profiles
|
||
|
-include profiles/*.mk
|
||
18 years ago
|
|
||
18 years ago
|
$(eval $(call BuildKernel))
|