2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 FEATURES
:=squashfs jffs2 broken
14 LINUX_VERSION
:=2.6.22.1
16 define Target
/Description
17 Build firmware images for RDC3211 based routers
18 (e.g. Airlink101 AR525W
, Linksys WRT54R
)
21 include $(INCLUDE_DIR
)/kernel-build.mk
23 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),y
)
24 define Kernel
/SetInitramfs
25 echo
"r6040 parent=wlan0" > $(TARGET_DIR
)/etc
/modules.d
/99-r6040
26 $(RM
) -f
$(TARGET_DIR
)/sbin
/init
27 ln
-s
/etc
/preinit
$(TARGET_DIR
)/sbin
/init
28 sed
-i
's,exec /sbin/init,exec /bin/busybox init,g' $(TARGET_DIR
)/etc
/preinit
29 sed
-i
's,/sbin/init,/bin/busybox init,g' $(TARGET_DIR
)/init
30 sed
-i
's,eth0,eth1,g' $(TARGET_DIR
)/etc
/config
/network
34 # include the profiles
35 -include profiles
/*.mk
37 $(eval
$(call BuildKernel
))